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

  ],
  "composite": false,
  "composite_hqmf_set_id": null,
  "cql_libraries": [
    {
      "cql": "library DepressionUtilizationofthePHQ9Tool version '6.1.001'\r\n\r\nusing QDM version '5.3'\r\n\r\ncodesystem \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\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 \"Face to Face Interaction - No ED\": 'urn:oid:2.16.840.1.113762.1.4.1080.1'\r\nvalueset \"Major Depression Including Remission\": 'urn:oid:2.16.840.113883.3.67.1.101.3.2444'\r\nvalueset \"Office Visit\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001'\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 \"PHQ-9 Tool\": 'urn:oid:2.16.840.1.113883.3.67.1.101.11.723'\r\nvalueset \"Psych Visit\": 'urn:oid:2.16.840.113883.3.67.1.101.3.2445'\r\nvalueset \"Palliative care encounter\": 'urn:oid:2.16.840.1.113883.3.600.1.1575'\r\n\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 \"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 \"Initial Population 1\":\r\n\tAgeInYearsAt(start of \"Measurement Period\")>= 18\r\n\t\tand ( exists ( \"Depression Office Visit Encounter 1\" )\r\n\t\t\t\tor exists ( \"Depression Behavioral Health Encounter 1\" )\r\n\t\t\t\tor exists ( \"Depression Face to Face Encounter 1\" )\r\n\t\t)\r\n\r\ndefine \"Initial Population 2\":\r\n\tAgeInYearsAt(start of \"Measurement Period\")>= 18\r\n\t\tand ( exists ( \"Depression Office Visit Encounter 2\" )\r\n\t\t\t\tor exists ( \"Depression Behavioral Health Encounter 2\" )\r\n\t\t\t\tor exists ( \"Depression Face to Face Encounter 2\" )\r\n\t\t)\r\n\r\ndefine \"Initial Population 3\":\r\n\tAgeInYearsAt(start of \"Measurement Period\")>= 18\r\n\t\tand ( exists ( \"Depression Office Visit Encounter 3\" )\r\n\t\t\t\tor exists ( \"Depression Behavioral Health Encounter 3\" )\r\n\t\t\t\tor exists ( \"Depression Face to Face Encounter 3\" )\r\n\t\t)\r\n\r\ndefine \"Palliative Care Order\":\r\n\t[\"Intervention, Order\": \"Palliative Care\"] OrderedPalliativeCare\r\n\t\twhere OrderedPalliativeCare.authorDatetime 1 year or less before end of \"Measurement Period\"\r\n\r\ndefine \"Long Term Care\":\r\n\t[\"Encounter, Performed\": \"Care Services in Long-Term Residential Facility\"] EncounterLongTermCare\r\n\t\twhere EncounterLongTermCare.relevantPeriod starts 1 year or less before end of \"Measurement Period\"\r\n\r\ndefine \"Expired\":\r\n\t[\"Patient Characteristic Expired\": \"Dead\"] Deceased\r\n\t\twhere Deceased.expiredDatetime before end of \"Measurement Period\"\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 \"Denominator Exclusion 1\":\r\n\t\"Denominator Exclusions\"\r\n\r\ndefine \"Denominator Exclusion 2\":\r\n\t\"Denominator Exclusions\"\r\n\r\ndefine \"Denominator Exclusion 3\":\r\n\t\"Denominator Exclusions\"\r\n\r\ndefine \"Encounter Palliative Care\":\r\n\t[\"Encounter, Performed\": \"Palliative care encounter\"] PalliativeCareEncounter\r\n\t\twhere PalliativeCareEncounter.relevantPeriod starts 1 year or less before end of \"Measurement Period\"\r\n\r\ndefine \"Depression Behavioral Health Encounter 2\":\r\n\t[\"Encounter, Performed\": \"Psych Visit\"] BehaviorHealthEncounter2\r\n\t\twhere ( BehaviorHealthEncounter2.principalDiagnosis in \"Major Depression Including Remission\"\r\n\t\t\t\tor BehaviorHealthEncounter2.principalDiagnosis in \"Dysthymia\"\r\n\t\t)\r\n\t\t\tand BehaviorHealthEncounter2.relevantPeriod ends 8 months or less after start of \"Measurement Period\"\r\n\t\t\tand difference in months between end of BehaviorHealthEncounter2.relevantPeriod and ( start of \"Measurement Period\" + 8 months ) <= 4\r\n\r\ndefine \"Numerator 2\":\r\n\texists ( [\"Assessment, Performed\": \"PHQ-9 Tool\"] DepressionAssessment2\r\n\t\t\twhere DepressionAssessment2.result is not null\r\n\t\t\t\tand DepressionAssessment2.authorDatetime 8 months or less after start of \"Measurement Period\"\r\n\t\t\t\tand difference in months between DepressionAssessment2.authorDatetime and ( start of \"Measurement Period\" + 8 months ) <= 4\r\n\t)\r\n\r\ndefine \"Depression Behavioral Health Encounter 3\":\r\n\t[\"Encounter, Performed\": \"Psych Visit\"] BehaviorHealthEncounter3\r\n\t\twhere ( BehaviorHealthEncounter3.principalDiagnosis in \"Major Depression Including Remission\"\r\n\t\t\t\tor BehaviorHealthEncounter3.principalDiagnosis in \"Dysthymia\"\r\n\t\t)\r\n\t\t\tand BehaviorHealthEncounter3.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\tand difference in months between start of \"Measurement Period\" and end of BehaviorHealthEncounter3.relevantPeriod <= 3\r\n\r\ndefine \"Depression Behavioral Health Encounter 1\":\r\n\t[\"Encounter, Performed\": \"Psych Visit\"] BehaviorHealthEncounter1\r\n\t\twhere ( BehaviorHealthEncounter1.principalDiagnosis in \"Major Depression Including Remission\"\r\n\t\t\t\tor BehaviorHealthEncounter1.principalDiagnosis in \"Dysthymia\"\r\n\t\t)\r\n\t\t\tand BehaviorHealthEncounter1.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\tand difference in months between end of BehaviorHealthEncounter1.relevantPeriod and end of \"Measurement Period\" <= 3\r\n\r\ndefine \"Depression Diagnoses\":\r\n\t( [\"Diagnosis\": \"Major Depression Including Remission\"]\r\n\t\tunion [\"Diagnosis\": \"Dysthymia\"] ) Diagnoses\r\n\t\twhere Diagnoses.prevalencePeriod is not null\r\n\r\ndefine \"Disorder Diagnoses\":\r\n\t( [\"Diagnosis\": \"Bipolar Disorder\"]\r\n\t\tunion [\"Diagnosis\": \"Personality Disorder\"] ) DisorderDiagnoses\r\n\t\twhere DisorderDiagnoses.prevalencePeriod starts before end of \"Measurement Period\"\r\n\r\ndefine \"Depression Face to Face Encounter 1\":\r\n\t[\"Encounter, Performed\": \"Face to Face Interaction - No ED\"] FacetoFaceEncounter1\r\n\t\twith \"Depression Diagnoses\" Diagnoses\r\n\t\t\tsuch that FacetoFaceEncounter1.relevantPeriod overlaps Diagnoses.prevalencePeriod\r\n\t\t\t\tand FacetoFaceEncounter1.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\t\tand difference in months between end of FacetoFaceEncounter1.relevantPeriod and end of \"Measurement Period\" <= 3\r\n\r\ndefine \"Depression Face to Face Encounter 2\":\r\n\t[\"Encounter, Performed\": \"Face to Face Interaction - No ED\"] FacetoFaceEncounter2\r\n\t\twith \"Depression Diagnoses\" Diagnoses\r\n\t\t\tsuch that FacetoFaceEncounter2.relevantPeriod overlaps Diagnoses.prevalencePeriod\r\n\t\t\t\tand FacetoFaceEncounter2.relevantPeriod ends 8 months or less after start of \"Measurement Period\"\r\n\t\t\t\tand difference in months between end of FacetoFaceEncounter2.relevantPeriod and ( start of \"Measurement Period\" + 8 months ) <= 4\r\n\r\ndefine \"Depression Face to Face Encounter 3\":\r\n\t[\"Encounter, Performed\": \"Face to Face Interaction - No ED\"] FacetoFaceEncounter3\r\n\t\twith \"Depression Diagnoses\" Diagnoses\r\n\t\t\tsuch that FacetoFaceEncounter3.relevantPeriod overlaps Diagnoses.prevalencePeriod\r\n\t\t\t\tand FacetoFaceEncounter3.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\t\tand difference in months between start of \"Measurement Period\" and end of FacetoFaceEncounter3.relevantPeriod <= 3\r\n\r\ndefine \"Depression Office Visit Encounter 1\":\r\n\t[\"Encounter, Performed\": \"Office Visit\"] OfficeVisitEncounter1\r\n\t\twith \"Depression Diagnoses\" Diagnoses\r\n\t\t\tsuch that OfficeVisitEncounter1.relevantPeriod overlaps Diagnoses.prevalencePeriod\r\n\t\t\t\tand OfficeVisitEncounter1.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\t\tand difference in months between end of OfficeVisitEncounter1.relevantPeriod and end of \"Measurement Period\" <= 3\r\n\r\ndefine \"Depression Office Visit Encounter 2\":\r\n\t[\"Encounter, Performed\": \"Office Visit\"] OfficeVisitEncounter2\r\n\t\twith \"Depression Diagnoses\" Diagnoses\r\n\t\t\tsuch that OfficeVisitEncounter2.relevantPeriod overlaps Diagnoses.prevalencePeriod\r\n\t\t\t\tand OfficeVisitEncounter2.relevantPeriod ends 8 months or less after start of \"Measurement Period\"\r\n\t\t\t\tand difference in months between end of OfficeVisitEncounter2.relevantPeriod and ( start of \"Measurement Period\" + 8 months ) <= 4\r\n\r\ndefine \"Depression Office Visit Encounter 3\":\r\n\t[\"Encounter, Performed\": \"Office Visit\"] OfficeVisitEncounter3\r\n\t\twith \"Depression Diagnoses\" Diagnoses\r\n\t\t\tsuch that OfficeVisitEncounter3.relevantPeriod overlaps Diagnoses.prevalencePeriod\r\n\t\t\t\tand OfficeVisitEncounter3.relevantPeriod ends during \"Measurement Period\"\r\n\t\t\t\tand difference in months between start of \"Measurement Period\" and end of OfficeVisitEncounter3.relevantPeriod <= 3\r\n\r\ndefine \"Numerator 1\":\r\n\texists ( [\"Assessment, Performed\": \"PHQ-9 Tool\"] DepressionAssessment1\r\n\t\t\twhere DepressionAssessment1.result is not null\r\n\t\t\t\tand DepressionAssessment1.authorDatetime during \"Measurement Period\"\r\n\t\t\t\tand difference in months between DepressionAssessment1.authorDatetime and end of \"Measurement Period\" <= 3\r\n\t)\r\n\r\ndefine \"Denominator Exclusions\":\r\n\texists ( \"Palliative Care Order\" )\r\n\t\tor exists ( \"Encounter Palliative Care\" )\r\n\t\tor exists ( \"Long Term Care\" )\r\n\t\tor exists ( \"Expired\" )\r\n\t\tor exists ( \"Disorder Diagnoses\" )\r\n\r\ndefine \"Numerator 3\":\r\n\texists ( [\"Assessment, Performed\": \"PHQ-9 Tool\"] DepressionAssessment3\r\n\t\t\twhere DepressionAssessment3.result is not null\r\n\t\t\t\tand DepressionAssessment3.authorDatetime during \"Measurement Period\"\r\n\t\t\t\tand difference in months between start of \"Measurement Period\" and DepressionAssessment3.authorDatetime <= 3\r\n\t)\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "DepressionUtilizationofthePHQ9Tool",
            "version": "6.1.001"
          },
          "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": "22",
                "locator": "25:1-25:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "21",
                  "locator": "25:32-25:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "20",
                    "locator": "25:41-25:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "2",
                "locator": "5:1-5:97",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2016-03",
                "accessLevel": "Public"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "3",
                "locator": "7:1-7:68",
                "name": "ONC Administrative Sex",
                "id": "2.16.840.1.113762.1.4.1",
                "accessLevel": "Public"
              },
              {
                "localId": "4",
                "locator": "8:1-8:53",
                "name": "Race",
                "id": "2.16.840.1.114222.4.11.836",
                "accessLevel": "Public"
              },
              {
                "localId": "5",
                "locator": "9:1-9:58",
                "name": "Ethnicity",
                "id": "2.16.840.1.114222.4.11.837",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "locator": "10:1-10:55",
                "name": "Payer",
                "id": "2.16.840.1.114222.4.11.3591",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "locator": "11:1-11:73",
                "name": "Bipolar Disorder",
                "id": "2.16.840.1.113883.3.67.1.101.1.128",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "locator": "12:1-12:110",
                "name": "Care Services in Long-Term Residential Facility",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1014",
                "accessLevel": "Public"
              },
              {
                "localId": "9",
                "locator": "13:1-13:66",
                "name": "Dysthymia",
                "id": "2.16.840.1.113883.3.67.1.101.1.254",
                "accessLevel": "Public"
              },
              {
                "localId": "10",
                "locator": "14:1-14:83",
                "name": "Face to Face Interaction - No ED",
                "id": "2.16.840.1.113762.1.4.1080.1",
                "accessLevel": "Public"
              },
              {
                "localId": "11",
                "locator": "15:1-15:92",
                "name": "Major Depression Including Remission",
                "id": "2.16.840.113883.3.67.1.101.3.2444",
                "accessLevel": "Public"
              },
              {
                "localId": "12",
                "locator": "16:1-16:75",
                "name": "Office Visit",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1001",
                "accessLevel": "Public"
              },
              {
                "localId": "13",
                "locator": "17:1-17:68",
                "name": "Palliative Care",
                "id": "2.16.840.1.113883.3.600.1.1579",
                "accessLevel": "Public"
              },
              {
                "localId": "14",
                "locator": "18:1-18:77",
                "name": "Personality Disorder",
                "id": "2.16.840.1.113883.3.67.1.101.1.246",
                "accessLevel": "Public"
              },
              {
                "localId": "15",
                "locator": "19:1-19:68",
                "name": "PHQ-9 Tool",
                "id": "2.16.840.1.113883.3.67.1.101.11.723",
                "accessLevel": "Public"
              },
              {
                "localId": "16",
                "locator": "20:1-20:67",
                "name": "Psych Visit",
                "id": "2.16.840.113883.3.67.1.101.3.2445",
                "accessLevel": "Public"
              },
              {
                "localId": "17",
                "locator": "21:1-21:78",
                "name": "Palliative care encounter",
                "id": "2.16.840.1.113883.3.600.1.1575",
                "accessLevel": "Public"
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "19",
                "locator": "23:1-23:63",
                "name": "Dead",
                "id": "419099009",
                "display": "Dead",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "18",
                  "locator": "23:31-23:48",
                  "name": "SNOMEDCT:2016-03"
                }
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "27:1-27:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "27:1-27:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "24",
                "locator": "29:1-30: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": "30:2-30:50",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicEthnicity",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Ethnicity",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "26",
                "locator": "32:1-33: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": "33:2-33:42",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicPayer",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Payer",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "28",
                "locator": "35:1-36: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": "36:2-36:40",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicRace",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Race",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "30",
                "locator": "38:1-39: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": "39:2-39:57",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicSex",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "ONC Administrative Sex",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "46",
                "locator": "124:1-127:46",
                "name": "Depression Diagnoses",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "46",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Diagnoses\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "45",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "41",
                                  "s": [
                                    {
                                      "r": "40",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "40",
                                          "s": [
                                            {
                                              "r": "38",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Diagnosis\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Major Depression Including Remission\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\tunion "
                                              ]
                                            },
                                            {
                                              "r": "39",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Diagnosis\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Dysthymia\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "44",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "44",
                                  "s": [
                                    {
                                      "r": "43",
                                      "s": [
                                        {
                                          "r": "42",
                                          "s": [
                                            {
                                              "value": [
                                                "Diagnoses"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "43",
                                          "s": [
                                            {
                                              "value": [
                                                "prevalencePeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " is not null"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "45",
                  "locator": "125:2-127:46",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "41",
                      "locator": "125:2-126:46",
                      "alias": "Diagnoses",
                      "expression": {
                        "localId": "40",
                        "locator": "125:2-126:36",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "38",
                            "locator": "125:4-125:56",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Major Depression Including Remission",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "39",
                            "locator": "126:9-126:34",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Dysthymia",
                              "type": "ValueSetRef"
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "44",
                    "locator": "127:3-127:46",
                    "type": "Not",
                    "operand": {
                      "locator": "127:9-127:46",
                      "type": "IsNull",
                      "operand": {
                        "localId": "43",
                        "locator": "127:9-127:34",
                        "path": "prevalencePeriod",
                        "scope": "Diagnoses",
                        "type": "Property"
                      }
                    }
                  }
                }
              },
              {
                "localId": "70",
                "locator": "155:2-160:117",
                "name": "Depression Office Visit Encounter 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "70",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Office Visit Encounter 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "69",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "37",
                                  "s": [
                                    {
                                      "r": "36",
                                      "s": [
                                        {
                                          "r": "36",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Office Visit\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "OfficeVisitEncounter1"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "68",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "48",
                                  "s": [
                                    {
                                      "r": "47",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Depression Diagnoses\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "67",
                                  "s": [
                                    {
                                      "r": "58",
                                      "s": [
                                        {
                                          "r": "53",
                                          "s": [
                                            {
                                              "r": "50",
                                              "s": [
                                                {
                                                  "r": "49",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "OfficeVisitEncounter1"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "50",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "overlaps",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "52",
                                              "s": [
                                                {
                                                  "r": "51",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Diagnoses"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "52",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "57",
                                          "s": [
                                            {
                                              "r": "55",
                                              "s": [
                                                {
                                                  "r": "54",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "OfficeVisitEncounter1"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "55",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "ends during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "56",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Measurement Period\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "66",
                                      "s": [
                                        {
                                          "r": "64",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "61",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "60",
                                                  "s": [
                                                    {
                                                      "r": "59",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "OfficeVisitEncounter1"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "60",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "63",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "62",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "3"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "69",
                  "locator": "156:2-160:117",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "37",
                      "locator": "156:2-156:63",
                      "alias": "OfficeVisitEncounter1",
                      "expression": {
                        "localId": "36",
                        "locator": "156:2-156:41",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Office Visit",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "68",
                      "locator": "157:3-160:117",
                      "alias": "Diagnoses",
                      "type": "With",
                      "expression": {
                        "localId": "47",
                        "locator": "157:8-157:29",
                        "name": "Depression Diagnoses",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "67",
                        "locator": "158:14-160:117",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "58",
                            "locator": "158:14-159:77",
                            "type": "And",
                            "operand": [
                              {
                                "localId": "53",
                                "locator": "158:14-158:85",
                                "type": "Overlaps",
                                "operand": [
                                  {
                                    "localId": "50",
                                    "locator": "158:14-158:49",
                                    "path": "relevantPeriod",
                                    "scope": "OfficeVisitEncounter1",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "52",
                                    "locator": "158:60-158:85",
                                    "path": "prevalencePeriod",
                                    "scope": "Diagnoses",
                                    "type": "Property"
                                  }
                                ]
                              },
                              {
                                "localId": "57",
                                "locator": "159:9-159:77",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "159:46-159:49",
                                    "type": "End",
                                    "operand": {
                                      "localId": "55",
                                      "locator": "159:9-159:44",
                                      "path": "relevantPeriod",
                                      "scope": "OfficeVisitEncounter1",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "56",
                                    "locator": "159:58-159:77",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "66",
                            "locator": "160:9-160:117",
                            "type": "LessOrEqual",
                            "operand": [
                              {
                                "localId": "64",
                                "locator": "160:9-160:112",
                                "precision": "Month",
                                "type": "DifferenceBetween",
                                "operand": [
                                  {
                                    "localId": "61",
                                    "locator": "160:38-160:80",
                                    "type": "End",
                                    "operand": {
                                      "localId": "60",
                                      "locator": "160:45-160:80",
                                      "path": "relevantPeriod",
                                      "scope": "OfficeVisitEncounter1",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "63",
                                    "locator": "160:86-160:112",
                                    "type": "End",
                                    "operand": {
                                      "localId": "62",
                                      "locator": "160:93-160:112",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "65",
                                "locator": "160:117",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "3",
                                "type": "Literal"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "99",
                "locator": "116:1-122:119",
                "name": "Depression Behavioral Health Encounter 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "99",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Behavioral Health Encounter 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "98",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "74",
                                  "s": [
                                    {
                                      "r": "73",
                                      "s": [
                                        {
                                          "r": "73",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Psych Visit\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "BehaviorHealthEncounter1"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "97",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "97",
                                  "s": [
                                    {
                                      "r": "88",
                                      "s": [
                                        {
                                          "r": "83",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "83",
                                              "s": [
                                                {
                                                  "r": "78",
                                                  "s": [
                                                    {
                                                      "r": "76",
                                                      "s": [
                                                        {
                                                          "r": "75",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BehaviorHealthEncounter1"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "76",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "principalDiagnosis"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "77",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Major Depression Including Remission\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\tor "
                                                  ]
                                                },
                                                {
                                                  "r": "82",
                                                  "s": [
                                                    {
                                                      "r": "80",
                                                      "s": [
                                                        {
                                                          "r": "79",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BehaviorHealthEncounter1"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "80",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "principalDiagnosis"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "81",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Dysthymia\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t)"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "87",
                                          "s": [
                                            {
                                              "r": "85",
                                              "s": [
                                                {
                                                  "r": "84",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "BehaviorHealthEncounter1"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "85",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "ends during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "86",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Measurement Period\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "96",
                                      "s": [
                                        {
                                          "r": "94",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "91",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "90",
                                                  "s": [
                                                    {
                                                      "r": "89",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "BehaviorHealthEncounter1"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "90",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "93",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "92",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "3"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "98",
                  "locator": "117:2-122:119",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "74",
                      "locator": "117:2-117:65",
                      "alias": "BehaviorHealthEncounter1",
                      "expression": {
                        "localId": "73",
                        "locator": "117:2-117:40",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Psych Visit",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "97",
                    "locator": "118:3-122:119",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "88",
                        "locator": "118:9-121:79",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "83",
                            "locator": "118:9-120:3",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "78",
                                "locator": "118:11-118:95",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "76",
                                  "locator": "118:11-118:53",
                                  "path": "principalDiagnosis",
                                  "scope": "BehaviorHealthEncounter1",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "77",
                                  "locator": "118:58-118:95",
                                  "name": "Major Depression Including Remission"
                                }
                              },
                              {
                                "localId": "82",
                                "locator": "119:8-119:65",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "80",
                                  "locator": "119:8-119:50",
                                  "path": "principalDiagnosis",
                                  "scope": "BehaviorHealthEncounter1",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "81",
                                  "locator": "119:55-119:65",
                                  "name": "Dysthymia"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "87",
                            "locator": "121:8-121:79",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "121:48-121:51",
                                "type": "End",
                                "operand": {
                                  "localId": "85",
                                  "locator": "121:8-121:46",
                                  "path": "relevantPeriod",
                                  "scope": "BehaviorHealthEncounter1",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "86",
                                "locator": "121:60-121:79",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "96",
                        "locator": "122:8-122:119",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "94",
                            "locator": "122:8-122:114",
                            "precision": "Month",
                            "type": "DifferenceBetween",
                            "operand": [
                              {
                                "localId": "91",
                                "locator": "122:37-122:82",
                                "type": "End",
                                "operand": {
                                  "localId": "90",
                                  "locator": "122:44-122:82",
                                  "path": "relevantPeriod",
                                  "scope": "BehaviorHealthEncounter1",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "93",
                                "locator": "122:88-122:114",
                                "type": "End",
                                "operand": {
                                  "localId": "92",
                                  "locator": "122:95-122:114",
                                  "name": "Measurement Period",
                                  "type": "ParameterRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "95",
                            "locator": "122:119",
                            "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                            "value": "3",
                            "type": "Literal"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "128",
                "locator": "134:1-139:116",
                "name": "Depression Face to Face Encounter 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "128",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Face to Face Encounter 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "127",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "104",
                                  "s": [
                                    {
                                      "r": "103",
                                      "s": [
                                        {
                                          "r": "103",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Face to Face Interaction - No ED\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "FacetoFaceEncounter1"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "126",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "106",
                                  "s": [
                                    {
                                      "r": "105",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Depression Diagnoses\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "125",
                                  "s": [
                                    {
                                      "r": "116",
                                      "s": [
                                        {
                                          "r": "111",
                                          "s": [
                                            {
                                              "r": "108",
                                              "s": [
                                                {
                                                  "r": "107",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FacetoFaceEncounter1"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "108",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "overlaps",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "110",
                                              "s": [
                                                {
                                                  "r": "109",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Diagnoses"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "110",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "115",
                                          "s": [
                                            {
                                              "r": "113",
                                              "s": [
                                                {
                                                  "r": "112",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FacetoFaceEncounter1"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "113",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "ends during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "114",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Measurement Period\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "124",
                                      "s": [
                                        {
                                          "r": "122",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "119",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "118",
                                                  "s": [
                                                    {
                                                      "r": "117",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "FacetoFaceEncounter1"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "118",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "121",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "120",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "3"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "127",
                  "locator": "135:2-139:116",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "104",
                      "locator": "135:2-135:82",
                      "alias": "FacetoFaceEncounter1",
                      "expression": {
                        "localId": "103",
                        "locator": "135:2-135:61",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Face to Face Interaction - No ED",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "126",
                      "locator": "136:3-139:116",
                      "alias": "Diagnoses",
                      "type": "With",
                      "expression": {
                        "localId": "105",
                        "locator": "136:8-136:29",
                        "name": "Depression Diagnoses",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "125",
                        "locator": "137:14-139:116",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "116",
                            "locator": "137:14-138:76",
                            "type": "And",
                            "operand": [
                              {
                                "localId": "111",
                                "locator": "137:14-137:84",
                                "type": "Overlaps",
                                "operand": [
                                  {
                                    "localId": "108",
                                    "locator": "137:14-137:48",
                                    "path": "relevantPeriod",
                                    "scope": "FacetoFaceEncounter1",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "110",
                                    "locator": "137:59-137:84",
                                    "path": "prevalencePeriod",
                                    "scope": "Diagnoses",
                                    "type": "Property"
                                  }
                                ]
                              },
                              {
                                "localId": "115",
                                "locator": "138:9-138:76",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "138:45-138:48",
                                    "type": "End",
                                    "operand": {
                                      "localId": "113",
                                      "locator": "138:9-138:43",
                                      "path": "relevantPeriod",
                                      "scope": "FacetoFaceEncounter1",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "114",
                                    "locator": "138:57-138:76",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "124",
                            "locator": "139:9-139:116",
                            "type": "LessOrEqual",
                            "operand": [
                              {
                                "localId": "122",
                                "locator": "139:9-139:111",
                                "precision": "Month",
                                "type": "DifferenceBetween",
                                "operand": [
                                  {
                                    "localId": "119",
                                    "locator": "139:38-139:79",
                                    "type": "End",
                                    "operand": {
                                      "localId": "118",
                                      "locator": "139:45-139:79",
                                      "path": "relevantPeriod",
                                      "scope": "FacetoFaceEncounter1",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "121",
                                    "locator": "139:85-139:111",
                                    "type": "End",
                                    "operand": {
                                      "localId": "120",
                                      "locator": "139:92-139:111",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "123",
                                "locator": "139:116",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "3",
                                "type": "Literal"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "133",
                "locator": "41:1-45:56",
                "name": "Initial Population 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "133",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Initial Population 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "132",
                          "s": [
                            {
                              "r": "35",
                              "s": [
                                {
                                  "r": "33",
                                  "s": [
                                    {
                                      "value": [
                                        "AgeInYearsAt",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "32",
                                      "s": [
                                        {
                                          "value": [
                                            "start of "
                                          ]
                                        },
                                        {
                                          "r": "31",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " ",
                                    ">=",
                                    " ",
                                    "18"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t    and "
                              ]
                            },
                            {
                              "r": "131",
                              "s": [
                                {
                                  "value": [
                                    "("
                                  ]
                                },
                                {
                                  "r": "131",
                                  "s": [
                                    {
                                      "r": "102",
                                      "s": [
                                        {
                                          "r": "72",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "71",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "71",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Depression Office Visit Encounter 1\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t    or "
                                          ]
                                        },
                                        {
                                          "r": "101",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "100",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "100",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Depression Behavioral Health Encounter 1\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t    or "
                                      ]
                                    },
                                    {
                                      "r": "130",
                                      "s": [
                                        {
                                          "value": [
                                            "exists "
                                          ]
                                        },
                                        {
                                          "r": "129",
                                          "s": [
                                            {
                                              "value": [
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "129",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Depression Face to Face Encounter 1\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "132",
                  "locator": "42:2-45:56",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "35",
                      "locator": "42:2-42:50",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "33",
                          "locator": "42:2-42:44",
                          "precision": "Year",
                          "type": "CalculateAgeAt",
                          "operand": [
                            {
                              "path": "birthDatetime",
                              "type": "Property",
                              "source": {
                                "name": "Patient",
                                "type": "ExpressionRef"
                              }
                            },
                            {
                              "localId": "32",
                              "locator": "42:15-42:43",
                              "type": "Start",
                              "operand": {
                                "localId": "31",
                                "locator": "42:24-42:43",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "34",
                          "locator": "42:49-42:50",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "18",
                          "type": "Literal"
                        }
                      ]
                    },
                    {
                      "localId": "131",
                      "locator": "43:11-45:56",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "102",
                          "locator": "43:12-44:60",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "72",
                              "locator": "43:12-43:57",
                              "type": "Exists",
                              "operand": {
                                "localId": "71",
                                "locator": "43:19-43:57",
                                "name": "Depression Office Visit Encounter 1",
                                "type": "ExpressionRef"
                              }
                            },
                            {
                              "localId": "101",
                              "locator": "44:10-44:60",
                              "type": "Exists",
                              "operand": {
                                "localId": "100",
                                "locator": "44:17-44:60",
                                "name": "Depression Behavioral Health Encounter 1",
                                "type": "ExpressionRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "130",
                          "locator": "45:10-45:55",
                          "type": "Exists",
                          "operand": {
                            "localId": "129",
                            "locator": "45:17-45:55",
                            "name": "Depression Face to Face Encounter 1",
                            "type": "ExpressionRef"
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "localId": "168",
                "locator": "162:1-167:134",
                "name": "Depression Office Visit Encounter 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "168",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Office Visit Encounter 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "167",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "140",
                                  "s": [
                                    {
                                      "r": "139",
                                      "s": [
                                        {
                                          "r": "139",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Office Visit\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "OfficeVisitEncounter2"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "166",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "142",
                                  "s": [
                                    {
                                      "r": "141",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Depression Diagnoses\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "165",
                                  "s": [
                                    {
                                      "r": "154",
                                      "s": [
                                        {
                                          "r": "147",
                                          "s": [
                                            {
                                              "r": "144",
                                              "s": [
                                                {
                                                  "r": "143",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "OfficeVisitEncounter2"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "144",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "overlaps",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "146",
                                              "s": [
                                                {
                                                  "r": "145",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Diagnoses"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "146",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "153",
                                          "s": [
                                            {
                                              "r": "149",
                                              "s": [
                                                {
                                                  "r": "148",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "OfficeVisitEncounter2"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "149",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "153",
                                              "s": [
                                                {
                                                  "value": [
                                                    "ends "
                                                  ]
                                                },
                                                {
                                                  "r": "152",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "8 ",
                                                        "months"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " or less after"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "151",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "150",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "164",
                                      "s": [
                                        {
                                          "r": "162",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "157",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "156",
                                                  "s": [
                                                    {
                                                      "r": "155",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "OfficeVisitEncounter2"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "156",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "161",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "161",
                                                  "s": [
                                                    {
                                                      "r": "159",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "158",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " + "
                                                      ]
                                                    },
                                                    {
                                                      "r": "160",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "8 ",
                                                            "months"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "4"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "167",
                  "locator": "163:2-167:134",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "140",
                      "locator": "163:2-163:63",
                      "alias": "OfficeVisitEncounter2",
                      "expression": {
                        "localId": "139",
                        "locator": "163:2-163:41",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Office Visit",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "166",
                      "locator": "164:3-167:134",
                      "alias": "Diagnoses",
                      "type": "With",
                      "expression": {
                        "localId": "141",
                        "locator": "164:8-164:29",
                        "name": "Depression Diagnoses",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "165",
                        "locator": "165:14-167:134",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "154",
                            "locator": "165:14-166:102",
                            "type": "And",
                            "operand": [
                              {
                                "localId": "147",
                                "locator": "165:14-165:85",
                                "type": "Overlaps",
                                "operand": [
                                  {
                                    "localId": "144",
                                    "locator": "165:14-165:49",
                                    "path": "relevantPeriod",
                                    "scope": "OfficeVisitEncounter2",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "146",
                                    "locator": "165:60-165:85",
                                    "path": "prevalencePeriod",
                                    "scope": "Diagnoses",
                                    "type": "Property"
                                  }
                                ]
                              },
                              {
                                "localId": "153",
                                "locator": "166:9-166:102",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "166:46-166:49",
                                    "type": "End",
                                    "operand": {
                                      "localId": "149",
                                      "locator": "166:9-166:44",
                                      "path": "relevantPeriod",
                                      "scope": "OfficeVisitEncounter2",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "166:51-166:66",
                                    "lowClosed": false,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "localId": "151",
                                      "locator": "166:74-166:102",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "150",
                                        "locator": "166:83-166:102",
                                        "name": "Measurement Period",
                                        "type": "ParameterRef"
                                      }
                                    },
                                    "high": {
                                      "locator": "166:74-166:102",
                                      "type": "Add",
                                      "operand": [
                                        {
                                          "localId": "151",
                                          "locator": "166:74-166:102",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "150",
                                            "locator": "166:83-166:102",
                                            "name": "Measurement Period",
                                            "type": "ParameterRef"
                                          }
                                        },
                                        {
                                          "localId": "152",
                                          "locator": "166:51-166:58",
                                          "value": 8,
                                          "unit": "months",
                                          "type": "Quantity"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "164",
                            "locator": "167:9-167:134",
                            "type": "LessOrEqual",
                            "operand": [
                              {
                                "localId": "162",
                                "locator": "167:9-167:129",
                                "precision": "Month",
                                "type": "DifferenceBetween",
                                "operand": [
                                  {
                                    "localId": "157",
                                    "locator": "167:38-167:80",
                                    "type": "End",
                                    "operand": {
                                      "localId": "156",
                                      "locator": "167:45-167:80",
                                      "path": "relevantPeriod",
                                      "scope": "OfficeVisitEncounter2",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "161",
                                    "locator": "167:86-167:129",
                                    "type": "Add",
                                    "operand": [
                                      {
                                        "localId": "159",
                                        "locator": "167:88-167:116",
                                        "type": "Start",
                                        "operand": {
                                          "localId": "158",
                                          "locator": "167:97-167:116",
                                          "name": "Measurement Period",
                                          "type": "ParameterRef"
                                        }
                                      },
                                      {
                                        "localId": "160",
                                        "locator": "167:120-167:127",
                                        "value": 8,
                                        "unit": "months",
                                        "type": "Quantity"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "localId": "163",
                                "locator": "167:134",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "4",
                                "type": "Literal"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "201",
                "locator": "93:1-99:136",
                "name": "Depression Behavioral Health Encounter 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "201",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Behavioral Health Encounter 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "200",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "172",
                                  "s": [
                                    {
                                      "r": "171",
                                      "s": [
                                        {
                                          "r": "171",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Psych Visit\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "BehaviorHealthEncounter2"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "199",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "199",
                                  "s": [
                                    {
                                      "r": "188",
                                      "s": [
                                        {
                                          "r": "181",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "181",
                                              "s": [
                                                {
                                                  "r": "176",
                                                  "s": [
                                                    {
                                                      "r": "174",
                                                      "s": [
                                                        {
                                                          "r": "173",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BehaviorHealthEncounter2"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "174",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "principalDiagnosis"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "175",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Major Depression Including Remission\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\tor "
                                                  ]
                                                },
                                                {
                                                  "r": "180",
                                                  "s": [
                                                    {
                                                      "r": "178",
                                                      "s": [
                                                        {
                                                          "r": "177",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BehaviorHealthEncounter2"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "178",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "principalDiagnosis"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "179",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Dysthymia\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t)"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "187",
                                          "s": [
                                            {
                                              "r": "183",
                                              "s": [
                                                {
                                                  "r": "182",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "BehaviorHealthEncounter2"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "183",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "187",
                                              "s": [
                                                {
                                                  "value": [
                                                    "ends "
                                                  ]
                                                },
                                                {
                                                  "r": "186",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "8 ",
                                                        "months"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " or less after"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "185",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "184",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "198",
                                      "s": [
                                        {
                                          "r": "196",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "191",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "190",
                                                  "s": [
                                                    {
                                                      "r": "189",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "BehaviorHealthEncounter2"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "190",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "195",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "195",
                                                  "s": [
                                                    {
                                                      "r": "193",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "192",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " + "
                                                      ]
                                                    },
                                                    {
                                                      "r": "194",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "8 ",
                                                            "months"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "4"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "200",
                  "locator": "94:2-99:136",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "172",
                      "locator": "94:2-94:65",
                      "alias": "BehaviorHealthEncounter2",
                      "expression": {
                        "localId": "171",
                        "locator": "94:2-94:40",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Psych Visit",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "199",
                    "locator": "95:3-99:136",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "188",
                        "locator": "95:9-98:104",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "181",
                            "locator": "95:9-97:3",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "176",
                                "locator": "95:11-95:95",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "174",
                                  "locator": "95:11-95:53",
                                  "path": "principalDiagnosis",
                                  "scope": "BehaviorHealthEncounter2",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "175",
                                  "locator": "95:58-95:95",
                                  "name": "Major Depression Including Remission"
                                }
                              },
                              {
                                "localId": "180",
                                "locator": "96:8-96:65",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "178",
                                  "locator": "96:8-96:50",
                                  "path": "principalDiagnosis",
                                  "scope": "BehaviorHealthEncounter2",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "179",
                                  "locator": "96:55-96:65",
                                  "name": "Dysthymia"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "187",
                            "locator": "98:8-98:104",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "98:48-98:51",
                                "type": "End",
                                "operand": {
                                  "localId": "183",
                                  "locator": "98:8-98:46",
                                  "path": "relevantPeriod",
                                  "scope": "BehaviorHealthEncounter2",
                                  "type": "Property"
                                }
                              },
                              {
                                "locator": "98:53-98:68",
                                "lowClosed": false,
                                "highClosed": true,
                                "type": "Interval",
                                "low": {
                                  "localId": "185",
                                  "locator": "98:76-98:104",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "184",
                                    "locator": "98:85-98:104",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                },
                                "high": {
                                  "locator": "98:76-98:104",
                                  "type": "Add",
                                  "operand": [
                                    {
                                      "localId": "185",
                                      "locator": "98:76-98:104",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "184",
                                        "locator": "98:85-98:104",
                                        "name": "Measurement Period",
                                        "type": "ParameterRef"
                                      }
                                    },
                                    {
                                      "localId": "186",
                                      "locator": "98:53-98:60",
                                      "value": 8,
                                      "unit": "months",
                                      "type": "Quantity"
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "198",
                        "locator": "99:8-99:136",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "196",
                            "locator": "99:8-99:131",
                            "precision": "Month",
                            "type": "DifferenceBetween",
                            "operand": [
                              {
                                "localId": "191",
                                "locator": "99:37-99:82",
                                "type": "End",
                                "operand": {
                                  "localId": "190",
                                  "locator": "99:44-99:82",
                                  "path": "relevantPeriod",
                                  "scope": "BehaviorHealthEncounter2",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "195",
                                "locator": "99:88-99:131",
                                "type": "Add",
                                "operand": [
                                  {
                                    "localId": "193",
                                    "locator": "99:90-99:118",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "192",
                                      "locator": "99:99-99:118",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  },
                                  {
                                    "localId": "194",
                                    "locator": "99:122-99:129",
                                    "value": 8,
                                    "unit": "months",
                                    "type": "Quantity"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "197",
                            "locator": "99:136",
                            "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                            "value": "4",
                            "type": "Literal"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "234",
                "locator": "141:1-146:133",
                "name": "Depression Face to Face Encounter 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "234",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Face to Face Encounter 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "233",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "206",
                                  "s": [
                                    {
                                      "r": "205",
                                      "s": [
                                        {
                                          "r": "205",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Face to Face Interaction - No ED\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "FacetoFaceEncounter2"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "232",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "208",
                                  "s": [
                                    {
                                      "r": "207",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Depression Diagnoses\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "231",
                                  "s": [
                                    {
                                      "r": "220",
                                      "s": [
                                        {
                                          "r": "213",
                                          "s": [
                                            {
                                              "r": "210",
                                              "s": [
                                                {
                                                  "r": "209",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FacetoFaceEncounter2"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "210",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "overlaps",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "212",
                                              "s": [
                                                {
                                                  "r": "211",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Diagnoses"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "212",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "219",
                                          "s": [
                                            {
                                              "r": "215",
                                              "s": [
                                                {
                                                  "r": "214",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FacetoFaceEncounter2"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "215",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "219",
                                              "s": [
                                                {
                                                  "value": [
                                                    "ends "
                                                  ]
                                                },
                                                {
                                                  "r": "218",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "8 ",
                                                        "months"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " or less after"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "217",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "216",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "230",
                                      "s": [
                                        {
                                          "r": "228",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "223",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "222",
                                                  "s": [
                                                    {
                                                      "r": "221",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "FacetoFaceEncounter2"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "222",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "227",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "227",
                                                  "s": [
                                                    {
                                                      "r": "225",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "224",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " + "
                                                      ]
                                                    },
                                                    {
                                                      "r": "226",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "8 ",
                                                            "months"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "4"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "233",
                  "locator": "142:2-146:133",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "206",
                      "locator": "142:2-142:82",
                      "alias": "FacetoFaceEncounter2",
                      "expression": {
                        "localId": "205",
                        "locator": "142:2-142:61",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Face to Face Interaction - No ED",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "232",
                      "locator": "143:3-146:133",
                      "alias": "Diagnoses",
                      "type": "With",
                      "expression": {
                        "localId": "207",
                        "locator": "143:8-143:29",
                        "name": "Depression Diagnoses",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "231",
                        "locator": "144:14-146:133",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "220",
                            "locator": "144:14-145:101",
                            "type": "And",
                            "operand": [
                              {
                                "localId": "213",
                                "locator": "144:14-144:84",
                                "type": "Overlaps",
                                "operand": [
                                  {
                                    "localId": "210",
                                    "locator": "144:14-144:48",
                                    "path": "relevantPeriod",
                                    "scope": "FacetoFaceEncounter2",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "212",
                                    "locator": "144:59-144:84",
                                    "path": "prevalencePeriod",
                                    "scope": "Diagnoses",
                                    "type": "Property"
                                  }
                                ]
                              },
                              {
                                "localId": "219",
                                "locator": "145:9-145:101",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "145:45-145:48",
                                    "type": "End",
                                    "operand": {
                                      "localId": "215",
                                      "locator": "145:9-145:43",
                                      "path": "relevantPeriod",
                                      "scope": "FacetoFaceEncounter2",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "locator": "145:50-145:65",
                                    "lowClosed": false,
                                    "highClosed": true,
                                    "type": "Interval",
                                    "low": {
                                      "localId": "217",
                                      "locator": "145:73-145:101",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "216",
                                        "locator": "145:82-145:101",
                                        "name": "Measurement Period",
                                        "type": "ParameterRef"
                                      }
                                    },
                                    "high": {
                                      "locator": "145:73-145:101",
                                      "type": "Add",
                                      "operand": [
                                        {
                                          "localId": "217",
                                          "locator": "145:73-145:101",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "216",
                                            "locator": "145:82-145:101",
                                            "name": "Measurement Period",
                                            "type": "ParameterRef"
                                          }
                                        },
                                        {
                                          "localId": "218",
                                          "locator": "145:50-145:57",
                                          "value": 8,
                                          "unit": "months",
                                          "type": "Quantity"
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "230",
                            "locator": "146:9-146:133",
                            "type": "LessOrEqual",
                            "operand": [
                              {
                                "localId": "228",
                                "locator": "146:9-146:128",
                                "precision": "Month",
                                "type": "DifferenceBetween",
                                "operand": [
                                  {
                                    "localId": "223",
                                    "locator": "146:38-146:79",
                                    "type": "End",
                                    "operand": {
                                      "localId": "222",
                                      "locator": "146:45-146:79",
                                      "path": "relevantPeriod",
                                      "scope": "FacetoFaceEncounter2",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "227",
                                    "locator": "146:85-146:128",
                                    "type": "Add",
                                    "operand": [
                                      {
                                        "localId": "225",
                                        "locator": "146:87-146:115",
                                        "type": "Start",
                                        "operand": {
                                          "localId": "224",
                                          "locator": "146:96-146:115",
                                          "name": "Measurement Period",
                                          "type": "ParameterRef"
                                        }
                                      },
                                      {
                                        "localId": "226",
                                        "locator": "146:119-146:126",
                                        "value": 8,
                                        "unit": "months",
                                        "type": "Quantity"
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "localId": "229",
                                "locator": "146:133",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "4",
                                "type": "Literal"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "239",
                "locator": "47:1-51:56",
                "name": "Initial Population 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "239",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Initial Population 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "238",
                          "s": [
                            {
                              "r": "138",
                              "s": [
                                {
                                  "r": "136",
                                  "s": [
                                    {
                                      "value": [
                                        "AgeInYearsAt",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "135",
                                      "s": [
                                        {
                                          "value": [
                                            "start of "
                                          ]
                                        },
                                        {
                                          "r": "134",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " ",
                                    ">=",
                                    " ",
                                    "18"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t    and "
                              ]
                            },
                            {
                              "r": "237",
                              "s": [
                                {
                                  "value": [
                                    "("
                                  ]
                                },
                                {
                                  "r": "237",
                                  "s": [
                                    {
                                      "r": "204",
                                      "s": [
                                        {
                                          "r": "170",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "169",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "169",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Depression Office Visit Encounter 2\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t    or "
                                          ]
                                        },
                                        {
                                          "r": "203",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "202",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "202",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Depression Behavioral Health Encounter 2\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t    or "
                                      ]
                                    },
                                    {
                                      "r": "236",
                                      "s": [
                                        {
                                          "value": [
                                            "exists "
                                          ]
                                        },
                                        {
                                          "r": "235",
                                          "s": [
                                            {
                                              "value": [
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "235",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Depression Face to Face Encounter 2\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "238",
                  "locator": "48:2-51:56",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "138",
                      "locator": "48:2-48:50",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "136",
                          "locator": "48:2-48:44",
                          "precision": "Year",
                          "type": "CalculateAgeAt",
                          "operand": [
                            {
                              "path": "birthDatetime",
                              "type": "Property",
                              "source": {
                                "name": "Patient",
                                "type": "ExpressionRef"
                              }
                            },
                            {
                              "localId": "135",
                              "locator": "48:15-48:43",
                              "type": "Start",
                              "operand": {
                                "localId": "134",
                                "locator": "48:24-48:43",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "137",
                          "locator": "48:49-48:50",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "18",
                          "type": "Literal"
                        }
                      ]
                    },
                    {
                      "localId": "237",
                      "locator": "49:11-51:56",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "204",
                          "locator": "49:12-50:60",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "170",
                              "locator": "49:12-49:57",
                              "type": "Exists",
                              "operand": {
                                "localId": "169",
                                "locator": "49:19-49:57",
                                "name": "Depression Office Visit Encounter 2",
                                "type": "ExpressionRef"
                              }
                            },
                            {
                              "localId": "203",
                              "locator": "50:10-50:60",
                              "type": "Exists",
                              "operand": {
                                "localId": "202",
                                "locator": "50:17-50:60",
                                "name": "Depression Behavioral Health Encounter 2",
                                "type": "ExpressionRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "236",
                          "locator": "51:10-51:55",
                          "type": "Exists",
                          "operand": {
                            "localId": "235",
                            "locator": "51:17-51:55",
                            "name": "Depression Face to Face Encounter 2",
                            "type": "ExpressionRef"
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "localId": "270",
                "locator": "169:1-174:119",
                "name": "Depression Office Visit Encounter 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "270",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Office Visit Encounter 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "269",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "246",
                                  "s": [
                                    {
                                      "r": "245",
                                      "s": [
                                        {
                                          "r": "245",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Office Visit\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "OfficeVisitEncounter3"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "268",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "248",
                                  "s": [
                                    {
                                      "r": "247",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Depression Diagnoses\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "267",
                                  "s": [
                                    {
                                      "r": "258",
                                      "s": [
                                        {
                                          "r": "253",
                                          "s": [
                                            {
                                              "r": "250",
                                              "s": [
                                                {
                                                  "r": "249",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "OfficeVisitEncounter3"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "250",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "overlaps",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "252",
                                              "s": [
                                                {
                                                  "r": "251",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Diagnoses"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "252",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "257",
                                          "s": [
                                            {
                                              "r": "255",
                                              "s": [
                                                {
                                                  "r": "254",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "OfficeVisitEncounter3"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "255",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "ends during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "256",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Measurement Period\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "266",
                                      "s": [
                                        {
                                          "r": "264",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "260",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "259",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "263",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "262",
                                                  "s": [
                                                    {
                                                      "r": "261",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "OfficeVisitEncounter3"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "262",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "3"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "269",
                  "locator": "170:2-174:119",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "246",
                      "locator": "170:2-170:63",
                      "alias": "OfficeVisitEncounter3",
                      "expression": {
                        "localId": "245",
                        "locator": "170:2-170:41",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Office Visit",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "268",
                      "locator": "171:3-174:119",
                      "alias": "Diagnoses",
                      "type": "With",
                      "expression": {
                        "localId": "247",
                        "locator": "171:8-171:29",
                        "name": "Depression Diagnoses",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "267",
                        "locator": "172:14-174:119",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "258",
                            "locator": "172:14-173:77",
                            "type": "And",
                            "operand": [
                              {
                                "localId": "253",
                                "locator": "172:14-172:85",
                                "type": "Overlaps",
                                "operand": [
                                  {
                                    "localId": "250",
                                    "locator": "172:14-172:49",
                                    "path": "relevantPeriod",
                                    "scope": "OfficeVisitEncounter3",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "252",
                                    "locator": "172:60-172:85",
                                    "path": "prevalencePeriod",
                                    "scope": "Diagnoses",
                                    "type": "Property"
                                  }
                                ]
                              },
                              {
                                "localId": "257",
                                "locator": "173:9-173:77",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "173:46-173:49",
                                    "type": "End",
                                    "operand": {
                                      "localId": "255",
                                      "locator": "173:9-173:44",
                                      "path": "relevantPeriod",
                                      "scope": "OfficeVisitEncounter3",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "256",
                                    "locator": "173:58-173:77",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "266",
                            "locator": "174:9-174:119",
                            "type": "LessOrEqual",
                            "operand": [
                              {
                                "localId": "264",
                                "locator": "174:9-174:114",
                                "precision": "Month",
                                "type": "DifferenceBetween",
                                "operand": [
                                  {
                                    "localId": "260",
                                    "locator": "174:38-174:66",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "259",
                                      "locator": "174:47-174:66",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  },
                                  {
                                    "localId": "263",
                                    "locator": "174:72-174:114",
                                    "type": "End",
                                    "operand": {
                                      "localId": "262",
                                      "locator": "174:79-174:114",
                                      "path": "relevantPeriod",
                                      "scope": "OfficeVisitEncounter3",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "265",
                                "locator": "174:119",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "3",
                                "type": "Literal"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "299",
                "locator": "108:1-114:121",
                "name": "Depression Behavioral Health Encounter 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "299",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Behavioral Health Encounter 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "298",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "274",
                                  "s": [
                                    {
                                      "r": "273",
                                      "s": [
                                        {
                                          "r": "273",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Psych Visit\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "BehaviorHealthEncounter3"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "297",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "297",
                                  "s": [
                                    {
                                      "r": "288",
                                      "s": [
                                        {
                                          "r": "283",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "283",
                                              "s": [
                                                {
                                                  "r": "278",
                                                  "s": [
                                                    {
                                                      "r": "276",
                                                      "s": [
                                                        {
                                                          "r": "275",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BehaviorHealthEncounter3"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "276",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "principalDiagnosis"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "277",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Major Depression Including Remission\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\tor "
                                                  ]
                                                },
                                                {
                                                  "r": "282",
                                                  "s": [
                                                    {
                                                      "r": "280",
                                                      "s": [
                                                        {
                                                          "r": "279",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "BehaviorHealthEncounter3"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "280",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "principalDiagnosis"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " in "
                                                      ]
                                                    },
                                                    {
                                                      "r": "281",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Dysthymia\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t)"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "287",
                                          "s": [
                                            {
                                              "r": "285",
                                              "s": [
                                                {
                                                  "r": "284",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "BehaviorHealthEncounter3"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "285",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "ends during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "286",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Measurement Period\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "296",
                                      "s": [
                                        {
                                          "r": "294",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "290",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "289",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "293",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "292",
                                                  "s": [
                                                    {
                                                      "r": "291",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "BehaviorHealthEncounter3"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "292",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "3"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "298",
                  "locator": "109:2-114:121",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "274",
                      "locator": "109:2-109:65",
                      "alias": "BehaviorHealthEncounter3",
                      "expression": {
                        "localId": "273",
                        "locator": "109:2-109:40",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Psych Visit",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "297",
                    "locator": "110:3-114:121",
                    "type": "And",
                    "operand": [
                      {
                        "localId": "288",
                        "locator": "110:9-113:79",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "283",
                            "locator": "110:9-112:3",
                            "type": "Or",
                            "operand": [
                              {
                                "localId": "278",
                                "locator": "110:11-110:95",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "276",
                                  "locator": "110:11-110:53",
                                  "path": "principalDiagnosis",
                                  "scope": "BehaviorHealthEncounter3",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "277",
                                  "locator": "110:58-110:95",
                                  "name": "Major Depression Including Remission"
                                }
                              },
                              {
                                "localId": "282",
                                "locator": "111:8-111:65",
                                "type": "InValueSet",
                                "code": {
                                  "localId": "280",
                                  "locator": "111:8-111:50",
                                  "path": "principalDiagnosis",
                                  "scope": "BehaviorHealthEncounter3",
                                  "type": "Property"
                                },
                                "valueset": {
                                  "localId": "281",
                                  "locator": "111:55-111:65",
                                  "name": "Dysthymia"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "287",
                            "locator": "113:8-113:79",
                            "type": "In",
                            "operand": [
                              {
                                "locator": "113:48-113:51",
                                "type": "End",
                                "operand": {
                                  "localId": "285",
                                  "locator": "113:8-113:46",
                                  "path": "relevantPeriod",
                                  "scope": "BehaviorHealthEncounter3",
                                  "type": "Property"
                                }
                              },
                              {
                                "localId": "286",
                                "locator": "113:60-113:79",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "localId": "296",
                        "locator": "114:8-114:121",
                        "type": "LessOrEqual",
                        "operand": [
                          {
                            "localId": "294",
                            "locator": "114:8-114:116",
                            "precision": "Month",
                            "type": "DifferenceBetween",
                            "operand": [
                              {
                                "localId": "290",
                                "locator": "114:37-114:65",
                                "type": "Start",
                                "operand": {
                                  "localId": "289",
                                  "locator": "114:46-114:65",
                                  "name": "Measurement Period",
                                  "type": "ParameterRef"
                                }
                              },
                              {
                                "localId": "293",
                                "locator": "114:71-114:116",
                                "type": "End",
                                "operand": {
                                  "localId": "292",
                                  "locator": "114:78-114:116",
                                  "path": "relevantPeriod",
                                  "scope": "BehaviorHealthEncounter3",
                                  "type": "Property"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "295",
                            "locator": "114:121",
                            "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                            "value": "3",
                            "type": "Literal"
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              {
                "localId": "328",
                "locator": "148:1-153:118",
                "name": "Depression Face to Face Encounter 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "328",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Depression Face to Face Encounter 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "327",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "304",
                                  "s": [
                                    {
                                      "r": "303",
                                      "s": [
                                        {
                                          "r": "303",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Face to Face Interaction - No ED\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "FacetoFaceEncounter3"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "326",
                              "s": [
                                {
                                  "value": [
                                    "with "
                                  ]
                                },
                                {
                                  "r": "306",
                                  "s": [
                                    {
                                      "r": "305",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Depression Diagnoses\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Diagnoses"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tsuch that "
                                  ]
                                },
                                {
                                  "r": "325",
                                  "s": [
                                    {
                                      "r": "316",
                                      "s": [
                                        {
                                          "r": "311",
                                          "s": [
                                            {
                                              "r": "308",
                                              "s": [
                                                {
                                                  "r": "307",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FacetoFaceEncounter3"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "308",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "overlaps",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "310",
                                              "s": [
                                                {
                                                  "r": "309",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "Diagnoses"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "310",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "prevalencePeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "315",
                                          "s": [
                                            {
                                              "r": "313",
                                              "s": [
                                                {
                                                  "r": "312",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "FacetoFaceEncounter3"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "."
                                                  ]
                                                },
                                                {
                                                  "r": "313",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "relevantPeriod"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "ends during",
                                                " "
                                              ]
                                            },
                                            {
                                              "r": "314",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Measurement Period\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t\tand "
                                      ]
                                    },
                                    {
                                      "r": "324",
                                      "s": [
                                        {
                                          "r": "322",
                                          "s": [
                                            {
                                              "value": [
                                                "difference in months between "
                                              ]
                                            },
                                            {
                                              "r": "318",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "317",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " and "
                                              ]
                                            },
                                            {
                                              "r": "321",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "320",
                                                  "s": [
                                                    {
                                                      "r": "319",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "FacetoFaceEncounter3"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "320",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "<=",
                                            " ",
                                            "3"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "327",
                  "locator": "149:2-153:118",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "304",
                      "locator": "149:2-149:82",
                      "alias": "FacetoFaceEncounter3",
                      "expression": {
                        "localId": "303",
                        "locator": "149:2-149:61",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                        "templateId": "PositiveEncounterPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Face to Face Interaction - No ED",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [
                    {
                      "localId": "326",
                      "locator": "150:3-153:118",
                      "alias": "Diagnoses",
                      "type": "With",
                      "expression": {
                        "localId": "305",
                        "locator": "150:8-150:29",
                        "name": "Depression Diagnoses",
                        "type": "ExpressionRef"
                      },
                      "suchThat": {
                        "localId": "325",
                        "locator": "151:14-153:118",
                        "type": "And",
                        "operand": [
                          {
                            "localId": "316",
                            "locator": "151:14-152:76",
                            "type": "And",
                            "operand": [
                              {
                                "localId": "311",
                                "locator": "151:14-151:84",
                                "type": "Overlaps",
                                "operand": [
                                  {
                                    "localId": "308",
                                    "locator": "151:14-151:48",
                                    "path": "relevantPeriod",
                                    "scope": "FacetoFaceEncounter3",
                                    "type": "Property"
                                  },
                                  {
                                    "localId": "310",
                                    "locator": "151:59-151:84",
                                    "path": "prevalencePeriod",
                                    "scope": "Diagnoses",
                                    "type": "Property"
                                  }
                                ]
                              },
                              {
                                "localId": "315",
                                "locator": "152:9-152:76",
                                "type": "In",
                                "operand": [
                                  {
                                    "locator": "152:45-152:48",
                                    "type": "End",
                                    "operand": {
                                      "localId": "313",
                                      "locator": "152:9-152:43",
                                      "path": "relevantPeriod",
                                      "scope": "FacetoFaceEncounter3",
                                      "type": "Property"
                                    }
                                  },
                                  {
                                    "localId": "314",
                                    "locator": "152:57-152:76",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "localId": "324",
                            "locator": "153:9-153:118",
                            "type": "LessOrEqual",
                            "operand": [
                              {
                                "localId": "322",
                                "locator": "153:9-153:113",
                                "precision": "Month",
                                "type": "DifferenceBetween",
                                "operand": [
                                  {
                                    "localId": "318",
                                    "locator": "153:38-153:66",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "317",
                                      "locator": "153:47-153:66",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  },
                                  {
                                    "localId": "321",
                                    "locator": "153:72-153:113",
                                    "type": "End",
                                    "operand": {
                                      "localId": "320",
                                      "locator": "153:79-153:113",
                                      "path": "relevantPeriod",
                                      "scope": "FacetoFaceEncounter3",
                                      "type": "Property"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "323",
                                "locator": "153:118",
                                "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                "value": "3",
                                "type": "Literal"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "localId": "333",
                "locator": "53:1-57:55",
                "name": "Initial Population 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "333",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Initial Population 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "332",
                          "s": [
                            {
                              "r": "244",
                              "s": [
                                {
                                  "r": "242",
                                  "s": [
                                    {
                                      "value": [
                                        "AgeInYearsAt",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "241",
                                      "s": [
                                        {
                                          "value": [
                                            "start of "
                                          ]
                                        },
                                        {
                                          "r": "240",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " ",
                                    ">=",
                                    " ",
                                    "18"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t    and "
                              ]
                            },
                            {
                              "r": "331",
                              "s": [
                                {
                                  "value": [
                                    "("
                                  ]
                                },
                                {
                                  "r": "331",
                                  "s": [
                                    {
                                      "r": "302",
                                      "s": [
                                        {
                                          "r": "272",
                                          "s": [
                                            {
                                              "value": [
                                                "exists"
                                              ]
                                            },
                                            {
                                              "r": "271",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "271",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Depression Office Visit Encounter 3\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t    or "
                                          ]
                                        },
                                        {
                                          "r": "301",
                                          "s": [
                                            {
                                              "value": [
                                                "exists"
                                              ]
                                            },
                                            {
                                              "r": "300",
                                              "s": [
                                                {
                                                  "value": [
                                                    "("
                                                  ]
                                                },
                                                {
                                                  "r": "300",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Depression Behavioral Health Encounter 3\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    ")"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t    or "
                                      ]
                                    },
                                    {
                                      "r": "330",
                                      "s": [
                                        {
                                          "value": [
                                            "exists"
                                          ]
                                        },
                                        {
                                          "r": "329",
                                          "s": [
                                            {
                                              "value": [
                                                "("
                                              ]
                                            },
                                            {
                                              "r": "329",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Depression Face to Face Encounter 3\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ")"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "332",
                  "locator": "54:2-57:55",
                  "type": "And",
                  "operand": [
                    {
                      "localId": "244",
                      "locator": "54:2-54:50",
                      "type": "GreaterOrEqual",
                      "operand": [
                        {
                          "localId": "242",
                          "locator": "54:2-54:44",
                          "precision": "Year",
                          "type": "CalculateAgeAt",
                          "operand": [
                            {
                              "path": "birthDatetime",
                              "type": "Property",
                              "source": {
                                "name": "Patient",
                                "type": "ExpressionRef"
                              }
                            },
                            {
                              "localId": "241",
                              "locator": "54:15-54:43",
                              "type": "Start",
                              "operand": {
                                "localId": "240",
                                "locator": "54:24-54:43",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "243",
                          "locator": "54:49-54:50",
                          "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                          "value": "18",
                          "type": "Literal"
                        }
                      ]
                    },
                    {
                      "localId": "331",
                      "locator": "55:11-57:55",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "302",
                          "locator": "55:12-56:59",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "272",
                              "locator": "55:12-55:56",
                              "type": "Exists",
                              "operand": {
                                "localId": "271",
                                "locator": "55:18-55:56",
                                "name": "Depression Office Visit Encounter 3",
                                "type": "ExpressionRef"
                              }
                            },
                            {
                              "localId": "301",
                              "locator": "56:10-56:59",
                              "type": "Exists",
                              "operand": {
                                "localId": "300",
                                "locator": "56:16-56:59",
                                "name": "Depression Behavioral Health Encounter 3",
                                "type": "ExpressionRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "330",
                          "locator": "57:10-57:54",
                          "type": "Exists",
                          "operand": {
                            "localId": "329",
                            "locator": "57:16-57:54",
                            "name": "Depression Face to Face Encounter 3",
                            "type": "ExpressionRef"
                          }
                        }
                      ]
                    }
                  ]
                }
              },
              {
                "localId": "343",
                "locator": "59:1-61:94",
                "name": "Palliative Care Order",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "343",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Palliative Care Order\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "342",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "335",
                                  "s": [
                                    {
                                      "r": "334",
                                      "s": [
                                        {
                                          "r": "334",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Intervention, Order\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Palliative Care\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "OrderedPalliativeCare"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "341",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "341",
                                  "s": [
                                    {
                                      "r": "337",
                                      "s": [
                                        {
                                          "r": "336",
                                          "s": [
                                            {
                                              "value": [
                                                "OrderedPalliativeCare"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "337",
                                          "s": [
                                            {
                                              "value": [
                                                "authorDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "341",
                                      "s": [
                                        {
                                          "r": "340",
                                          "s": [
                                            {
                                              "value": [
                                                "1 ",
                                                "year"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " or less before"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "339",
                                      "s": [
                                        {
                                          "value": [
                                            "end of "
                                          ]
                                        },
                                        {
                                          "r": "338",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "342",
                  "locator": "60:2-61:94",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "335",
                      "locator": "60:2-60:65",
                      "alias": "OrderedPalliativeCare",
                      "expression": {
                        "localId": "334",
                        "locator": "60:2-60:43",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                        "templateId": "PositiveInterventionOrder",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Palliative Care",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "341",
                    "locator": "61:3-61:94",
                    "type": "In",
                    "operand": [
                      {
                        "localId": "337",
                        "locator": "61:9-61:44",
                        "path": "authorDatetime",
                        "scope": "OrderedPalliativeCare",
                        "type": "Property"
                      },
                      {
                        "locator": "61:46-61:59",
                        "lowClosed": true,
                        "highClosed": false,
                        "type": "Interval",
                        "low": {
                          "locator": "61:68-61:94",
                          "type": "Subtract",
                          "operand": [
                            {
                              "localId": "339",
                              "locator": "61:68-61:94",
                              "type": "End",
                              "operand": {
                                "localId": "338",
                                "locator": "61:75-61:94",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            },
                            {
                              "localId": "340",
                              "locator": "61:46-61:51",
                              "value": 1,
                              "unit": "year",
                              "type": "Quantity"
                            }
                          ]
                        },
                        "high": {
                          "localId": "339",
                          "locator": "61:68-61:94",
                          "type": "End",
                          "operand": {
                            "localId": "338",
                            "locator": "61:75-61:94",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "353",
                "locator": "63:1-65:101",
                "name": "Long Term Care",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "353",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Long Term Care\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "352",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "345",
                                  "s": [
                                    {
                                      "r": "344",
                                      "s": [
                                        {
                                          "r": "344",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Care Services in Long-Term Residential Facility\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "EncounterLongTermCare"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "351",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "351",
                                  "s": [
                                    {
                                      "r": "347",
                                      "s": [
                                        {
                                          "r": "346",
                                          "s": [
                                            {
                                              "value": [
                                                "EncounterLongTermCare"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "347",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "351",
                                      "s": [
                                        {
                                          "value": [
                                            "starts "
                                          ]
                                        },
                                        {
                                          "r": "350",
                                          "s": [
                                            {
                                              "value": [
                                                "1 ",
                                                "year"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " or less before"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "349",
                                      "s": [
                                        {
                                          "value": [
                                            "end of "
                                          ]
                                        },
                                        {
                                          "r": "348",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "352",
                  "locator": "64:2-65:101",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "345",
                      "locator": "64:2-64:98",
                      "alias": "EncounterLongTermCare",
                      "expression": {
                        "localId": "344",
                        "locator": "64:2-64: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": "351",
                    "locator": "65:3-65:101",
                    "type": "In",
                    "operand": [
                      {
                        "locator": "65:46-65:51",
                        "type": "Start",
                        "operand": {
                          "localId": "347",
                          "locator": "65:9-65:44",
                          "path": "relevantPeriod",
                          "scope": "EncounterLongTermCare",
                          "type": "Property"
                        }
                      },
                      {
                        "locator": "65:53-65:66",
                        "lowClosed": true,
                        "highClosed": false,
                        "type": "Interval",
                        "low": {
                          "locator": "65:75-65:101",
                          "type": "Subtract",
                          "operand": [
                            {
                              "localId": "349",
                              "locator": "65:75-65:101",
                              "type": "End",
                              "operand": {
                                "localId": "348",
                                "locator": "65:82-65:101",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            },
                            {
                              "localId": "350",
                              "locator": "65:53-65:58",
                              "value": 1,
                              "unit": "year",
                              "type": "Quantity"
                            }
                          ]
                        },
                        "high": {
                          "localId": "349",
                          "locator": "65:75-65:101",
                          "type": "End",
                          "operand": {
                            "localId": "348",
                            "locator": "65:82-65:101",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "362",
                "locator": "67:1-69:67",
                "name": "Expired",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "362",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Expired\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "361",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "355",
                                  "s": [
                                    {
                                      "r": "354",
                                      "s": [
                                        {
                                          "r": "354",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Patient Characteristic Expired\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Dead\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "Deceased"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "360",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "360",
                                  "s": [
                                    {
                                      "r": "357",
                                      "s": [
                                        {
                                          "r": "356",
                                          "s": [
                                            {
                                              "value": [
                                                "Deceased"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "357",
                                          "s": [
                                            {
                                              "value": [
                                                "expiredDatetime"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "before",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "359",
                                      "s": [
                                        {
                                          "value": [
                                            "end of "
                                          ]
                                        },
                                        {
                                          "r": "358",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "361",
                  "locator": "68:2-69:67",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "355",
                      "locator": "68:2-68:52",
                      "alias": "Deceased",
                      "expression": {
                        "localId": "354",
                        "locator": "68:2-68:43",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicExpired",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "type": "ToList",
                          "operand": {
                            "name": "Dead",
                            "type": "CodeRef"
                          }
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "360",
                    "locator": "69:3-69:67",
                    "type": "Before",
                    "operand": [
                      {
                        "localId": "357",
                        "locator": "69:9-69:32",
                        "path": "expiredDatetime",
                        "scope": "Deceased",
                        "type": "Property"
                      },
                      {
                        "localId": "359",
                        "locator": "69:41-69:67",
                        "type": "End",
                        "operand": {
                          "localId": "358",
                          "locator": "69:48-69:67",
                          "name": "Measurement Period",
                          "type": "ParameterRef"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "364",
                "locator": "71:1-72:23",
                "name": "Denominator 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "364",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "363",
                          "s": [
                            {
                              "value": [
                                "\"Initial Population 1\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "363",
                  "locator": "72:2-72:23",
                  "name": "Initial Population 1",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "366",
                "locator": "74:1-75:23",
                "name": "Denominator 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "366",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "365",
                          "s": [
                            {
                              "value": [
                                "\"Initial Population 2\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "365",
                  "locator": "75:2-75:23",
                  "name": "Initial Population 2",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "368",
                "locator": "77:1-78:23",
                "name": "Denominator 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "368",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "367",
                          "s": [
                            {
                              "value": [
                                "\"Initial Population 3\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "367",
                  "locator": "78:2-78:23",
                  "name": "Initial Population 3",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "380",
                "locator": "89:1-91:103",
                "name": "Encounter Palliative Care",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "380",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Encounter Palliative Care\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "379",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "372",
                                  "s": [
                                    {
                                      "r": "371",
                                      "s": [
                                        {
                                          "r": "371",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Encounter, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Palliative care encounter\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "PalliativeCareEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "378",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "378",
                                  "s": [
                                    {
                                      "r": "374",
                                      "s": [
                                        {
                                          "r": "373",
                                          "s": [
                                            {
                                              "value": [
                                                "PalliativeCareEncounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "374",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "378",
                                      "s": [
                                        {
                                          "value": [
                                            "starts "
                                          ]
                                        },
                                        {
                                          "r": "377",
                                          "s": [
                                            {
                                              "value": [
                                                "1 ",
                                                "year"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " or less before"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "376",
                                      "s": [
                                        {
                                          "value": [
                                            "end of "
                                          ]
                                        },
                                        {
                                          "r": "375",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "379",
                  "locator": "90:2-91:103",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "372",
                      "locator": "90:2-90:78",
                      "alias": "PalliativeCareEncounter",
                      "expression": {
                        "localId": "371",
                        "locator": "90:2-90: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": "378",
                    "locator": "91:3-91:103",
                    "type": "In",
                    "operand": [
                      {
                        "locator": "91:48-91:53",
                        "type": "Start",
                        "operand": {
                          "localId": "374",
                          "locator": "91:9-91:46",
                          "path": "relevantPeriod",
                          "scope": "PalliativeCareEncounter",
                          "type": "Property"
                        }
                      },
                      {
                        "locator": "91:55-91:68",
                        "lowClosed": true,
                        "highClosed": false,
                        "type": "Interval",
                        "low": {
                          "locator": "91:77-91:103",
                          "type": "Subtract",
                          "operand": [
                            {
                              "localId": "376",
                              "locator": "91:77-91:103",
                              "type": "End",
                              "operand": {
                                "localId": "375",
                                "locator": "91:84-91:103",
                                "name": "Measurement Period",
                                "type": "ParameterRef"
                              }
                            },
                            {
                              "localId": "377",
                              "locator": "91:55-91:60",
                              "value": 1,
                              "unit": "year",
                              "type": "Quantity"
                            }
                          ]
                        },
                        "high": {
                          "localId": "376",
                          "locator": "91:77-91:103",
                          "type": "End",
                          "operand": {
                            "localId": "375",
                            "locator": "91:84-91:103",
                            "name": "Measurement Period",
                            "type": "ParameterRef"
                          }
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "400",
                "locator": "129:1-132:84",
                "name": "Disorder Diagnoses",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "400",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Disorder Diagnoses\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "399",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "393",
                                  "s": [
                                    {
                                      "r": "392",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "392",
                                          "s": [
                                            {
                                              "r": "390",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Diagnosis\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Bipolar Disorder\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\tunion "
                                              ]
                                            },
                                            {
                                              "r": "391",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Diagnosis\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Personality Disorder\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "DisorderDiagnoses"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "398",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "398",
                                  "s": [
                                    {
                                      "r": "395",
                                      "s": [
                                        {
                                          "r": "394",
                                          "s": [
                                            {
                                              "value": [
                                                "DisorderDiagnoses"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "395",
                                          "s": [
                                            {
                                              "value": [
                                                "prevalencePeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "starts before",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "397",
                                      "s": [
                                        {
                                          "value": [
                                            "end of "
                                          ]
                                        },
                                        {
                                          "r": "396",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Measurement Period\""
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "399",
                  "locator": "130:2-132:84",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "393",
                      "locator": "130:2-131:65",
                      "alias": "DisorderDiagnoses",
                      "expression": {
                        "localId": "392",
                        "locator": "130:2-131:47",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "390",
                            "locator": "130:4-130:36",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Bipolar Disorder",
                              "type": "ValueSetRef"
                            }
                          },
                          {
                            "localId": "391",
                            "locator": "131:9-131:45",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Personality Disorder",
                              "type": "ValueSetRef"
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "398",
                    "locator": "132:3-132:84",
                    "type": "Before",
                    "operand": [
                      {
                        "locator": "132:44-132:49",
                        "type": "Start",
                        "operand": {
                          "localId": "395",
                          "locator": "132:9-132:42",
                          "path": "prevalencePeriod",
                          "scope": "DisorderDiagnoses",
                          "type": "Property"
                        }
                      },
                      {
                        "localId": "397",
                        "locator": "132:58-132:84",
                        "type": "End",
                        "operand": {
                          "localId": "396",
                          "locator": "132:65-132:84",
                          "name": "Measurement Period",
                          "type": "ParameterRef"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "localId": "404",
                "locator": "183:1-188:36",
                "name": "Denominator Exclusions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "404",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusions\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "403",
                          "s": [
                            {
                              "r": "389",
                              "s": [
                                {
                                  "r": "386",
                                  "s": [
                                    {
                                      "r": "383",
                                      "s": [
                                        {
                                          "r": "370",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "369",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "369",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Palliative Care Order\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\tor "
                                          ]
                                        },
                                        {
                                          "r": "382",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "381",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "381",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Encounter Palliative Care\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " )"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\tor "
                                      ]
                                    },
                                    {
                                      "r": "385",
                                      "s": [
                                        {
                                          "value": [
                                            "exists "
                                          ]
                                        },
                                        {
                                          "r": "384",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "384",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Long Term Care\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " )"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\tor "
                                  ]
                                },
                                {
                                  "r": "388",
                                  "s": [
                                    {
                                      "value": [
                                        "exists "
                                      ]
                                    },
                                    {
                                      "r": "387",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "387",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Expired\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\tor "
                              ]
                            },
                            {
                              "r": "402",
                              "s": [
                                {
                                  "value": [
                                    "exists "
                                  ]
                                },
                                {
                                  "r": "401",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "401",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Disorder Diagnoses\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " )"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "403",
                  "locator": "184:2-188:36",
                  "type": "Or",
                  "operand": [
                    {
                      "localId": "389",
                      "locator": "184:2-187:25",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "386",
                          "locator": "184:2-186:32",
                          "type": "Or",
                          "operand": [
                            {
                              "localId": "383",
                              "locator": "184:2-185:43",
                              "type": "Or",
                              "operand": [
                                {
                                  "localId": "370",
                                  "locator": "184:2-184:35",
                                  "type": "Exists",
                                  "operand": {
                                    "localId": "369",
                                    "locator": "184:9-184:35",
                                    "name": "Palliative Care Order",
                                    "type": "ExpressionRef"
                                  }
                                },
                                {
                                  "localId": "382",
                                  "locator": "185:6-185:43",
                                  "type": "Exists",
                                  "operand": {
                                    "localId": "381",
                                    "locator": "185:13-185:43",
                                    "name": "Encounter Palliative Care",
                                    "type": "ExpressionRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "385",
                              "locator": "186:6-186:32",
                              "type": "Exists",
                              "operand": {
                                "localId": "384",
                                "locator": "186:13-186:32",
                                "name": "Long Term Care",
                                "type": "ExpressionRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "388",
                          "locator": "187:6-187:25",
                          "type": "Exists",
                          "operand": {
                            "localId": "387",
                            "locator": "187:13-187:25",
                            "name": "Expired",
                            "type": "ExpressionRef"
                          }
                        }
                      ]
                    },
                    {
                      "localId": "402",
                      "locator": "188:6-188:36",
                      "type": "Exists",
                      "operand": {
                        "localId": "401",
                        "locator": "188:13-188:36",
                        "name": "Disorder Diagnoses",
                        "type": "ExpressionRef"
                      }
                    }
                  ]
                }
              },
              {
                "localId": "406",
                "locator": "80:1-81:25",
                "name": "Denominator Exclusion 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "406",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusion 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "405",
                          "s": [
                            {
                              "value": [
                                "\"Denominator Exclusions\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "405",
                  "locator": "81:2-81:25",
                  "name": "Denominator Exclusions",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "408",
                "locator": "83:1-84:25",
                "name": "Denominator Exclusion 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "408",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusion 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "407",
                          "s": [
                            {
                              "value": [
                                "\"Denominator Exclusions\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "407",
                  "locator": "84:2-84:25",
                  "name": "Denominator Exclusions",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "410",
                "locator": "86:1-87:25",
                "name": "Denominator Exclusion 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "410",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusion 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "409",
                          "s": [
                            {
                              "value": [
                                "\"Denominator Exclusions\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "409",
                  "locator": "87:2-87:25",
                  "name": "Denominator Exclusions",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "435",
                "locator": "101:1-106:2",
                "name": "Numerator 2",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "435",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Numerator 2\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "434",
                          "s": [
                            {
                              "value": [
                                "exists "
                              ]
                            },
                            {
                              "r": "433",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "433",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "412",
                                          "s": [
                                            {
                                              "r": "411",
                                              "s": [
                                                {
                                                  "r": "411",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Assessment, Performed\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"PHQ-9 Tool\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "DepressionAssessment2"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t"
                                      ]
                                    },
                                    {
                                      "r": "432",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "432",
                                          "s": [
                                            {
                                              "r": "422",
                                              "s": [
                                                {
                                                  "r": "415",
                                                  "s": [
                                                    {
                                                      "r": "414",
                                                      "s": [
                                                        {
                                                          "r": "413",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment2"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "414",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "result"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " is not null"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\tand "
                                                  ]
                                                },
                                                {
                                                  "r": "421",
                                                  "s": [
                                                    {
                                                      "r": "417",
                                                      "s": [
                                                        {
                                                          "r": "416",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment2"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "417",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " "
                                                      ]
                                                    },
                                                    {
                                                      "r": "421",
                                                      "s": [
                                                        {
                                                          "r": "420",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "8 ",
                                                                "months"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " or less after"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " "
                                                      ]
                                                    },
                                                    {
                                                      "r": "419",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "418",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\t\tand "
                                              ]
                                            },
                                            {
                                              "r": "431",
                                              "s": [
                                                {
                                                  "r": "429",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "difference in months between "
                                                      ]
                                                    },
                                                    {
                                                      "r": "424",
                                                      "s": [
                                                        {
                                                          "r": "423",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment2"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "424",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " and "
                                                      ]
                                                    },
                                                    {
                                                      "r": "428",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "( "
                                                          ]
                                                        },
                                                        {
                                                          "r": "428",
                                                          "s": [
                                                            {
                                                              "r": "426",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "start of "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "425",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Measurement Period\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " + "
                                                              ]
                                                            },
                                                            {
                                                              "r": "427",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "8 ",
                                                                    "months"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " )"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "<=",
                                                    " ",
                                                    "4"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t)"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "434",
                  "locator": "102:2-106:2",
                  "type": "Exists",
                  "operand": {
                    "localId": "433",
                    "locator": "102:9-106:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "412",
                        "locator": "102:11-102:71",
                        "alias": "DepressionAssessment2",
                        "expression": {
                          "localId": "411",
                          "locator": "102:11-102:49",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                          "templateId": "PositiveAssessmentPerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "PHQ-9 Tool",
                            "type": "ValueSetRef"
                          }
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "432",
                      "locator": "103:4-105:127",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "422",
                          "locator": "103:10-104:97",
                          "type": "And",
                          "operand": [
                            {
                              "localId": "415",
                              "locator": "103:10-103:49",
                              "type": "Not",
                              "operand": {
                                "locator": "103:10-103:49",
                                "type": "IsNull",
                                "operand": {
                                  "localId": "414",
                                  "locator": "103:10-103:37",
                                  "path": "result",
                                  "scope": "DepressionAssessment2",
                                  "type": "Property"
                                }
                              }
                            },
                            {
                              "localId": "421",
                              "locator": "104:9-104:97",
                              "type": "In",
                              "operand": [
                                {
                                  "localId": "417",
                                  "locator": "104:9-104:44",
                                  "path": "authorDatetime",
                                  "scope": "DepressionAssessment2",
                                  "type": "Property"
                                },
                                {
                                  "locator": "104:46-104:61",
                                  "lowClosed": false,
                                  "highClosed": true,
                                  "type": "Interval",
                                  "low": {
                                    "localId": "419",
                                    "locator": "104:69-104:97",
                                    "type": "Start",
                                    "operand": {
                                      "localId": "418",
                                      "locator": "104:78-104:97",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  },
                                  "high": {
                                    "locator": "104:69-104:97",
                                    "type": "Add",
                                    "operand": [
                                      {
                                        "localId": "419",
                                        "locator": "104:69-104:97",
                                        "type": "Start",
                                        "operand": {
                                          "localId": "418",
                                          "locator": "104:78-104:97",
                                          "name": "Measurement Period",
                                          "type": "ParameterRef"
                                        }
                                      },
                                      {
                                        "localId": "420",
                                        "locator": "104:46-104:53",
                                        "value": 8,
                                        "unit": "months",
                                        "type": "Quantity"
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "localId": "431",
                          "locator": "105:9-105:127",
                          "type": "LessOrEqual",
                          "operand": [
                            {
                              "localId": "429",
                              "locator": "105:9-105:122",
                              "precision": "Month",
                              "type": "DifferenceBetween",
                              "operand": [
                                {
                                  "localId": "424",
                                  "locator": "105:38-105:73",
                                  "path": "authorDatetime",
                                  "scope": "DepressionAssessment2",
                                  "type": "Property"
                                },
                                {
                                  "localId": "428",
                                  "locator": "105:79-105:122",
                                  "type": "Add",
                                  "operand": [
                                    {
                                      "localId": "426",
                                      "locator": "105:81-105:109",
                                      "type": "Start",
                                      "operand": {
                                        "localId": "425",
                                        "locator": "105:90-105:109",
                                        "name": "Measurement Period",
                                        "type": "ParameterRef"
                                      }
                                    },
                                    {
                                      "localId": "427",
                                      "locator": "105:113-105:120",
                                      "value": 8,
                                      "unit": "months",
                                      "type": "Quantity"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "localId": "430",
                              "locator": "105:127",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "4",
                              "type": "Literal"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              {
                "localId": "456",
                "locator": "176:1-181:2",
                "name": "Numerator 1",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "456",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Numerator 1\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "455",
                          "s": [
                            {
                              "value": [
                                "exists "
                              ]
                            },
                            {
                              "r": "454",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "454",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "437",
                                          "s": [
                                            {
                                              "r": "436",
                                              "s": [
                                                {
                                                  "r": "436",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Assessment, Performed\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"PHQ-9 Tool\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "DepressionAssessment1"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t"
                                      ]
                                    },
                                    {
                                      "r": "453",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "453",
                                          "s": [
                                            {
                                              "r": "445",
                                              "s": [
                                                {
                                                  "r": "440",
                                                  "s": [
                                                    {
                                                      "r": "439",
                                                      "s": [
                                                        {
                                                          "r": "438",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment1"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "439",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "result"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " is not null"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\tand "
                                                  ]
                                                },
                                                {
                                                  "r": "444",
                                                  "s": [
                                                    {
                                                      "r": "442",
                                                      "s": [
                                                        {
                                                          "r": "441",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment1"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "442",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " ",
                                                        "during",
                                                        " "
                                                      ]
                                                    },
                                                    {
                                                      "r": "443",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Measurement Period\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\t\tand "
                                              ]
                                            },
                                            {
                                              "r": "452",
                                              "s": [
                                                {
                                                  "r": "450",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "difference in months between "
                                                      ]
                                                    },
                                                    {
                                                      "r": "447",
                                                      "s": [
                                                        {
                                                          "r": "446",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment1"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "447",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " and "
                                                      ]
                                                    },
                                                    {
                                                      "r": "449",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "end of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "448",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "<=",
                                                    " ",
                                                    "3"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t)"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "455",
                  "locator": "177:2-181:2",
                  "type": "Exists",
                  "operand": {
                    "localId": "454",
                    "locator": "177:9-181:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "437",
                        "locator": "177:11-177:71",
                        "alias": "DepressionAssessment1",
                        "expression": {
                          "localId": "436",
                          "locator": "177:11-177:49",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                          "templateId": "PositiveAssessmentPerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "PHQ-9 Tool",
                            "type": "ValueSetRef"
                          }
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "453",
                      "locator": "178:4-180:110",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "445",
                          "locator": "178:10-179:72",
                          "type": "And",
                          "operand": [
                            {
                              "localId": "440",
                              "locator": "178:10-178:49",
                              "type": "Not",
                              "operand": {
                                "locator": "178:10-178:49",
                                "type": "IsNull",
                                "operand": {
                                  "localId": "439",
                                  "locator": "178:10-178:37",
                                  "path": "result",
                                  "scope": "DepressionAssessment1",
                                  "type": "Property"
                                }
                              }
                            },
                            {
                              "localId": "444",
                              "locator": "179:9-179:72",
                              "type": "In",
                              "operand": [
                                {
                                  "localId": "442",
                                  "locator": "179:9-179:44",
                                  "path": "authorDatetime",
                                  "scope": "DepressionAssessment1",
                                  "type": "Property"
                                },
                                {
                                  "localId": "443",
                                  "locator": "179:53-179:72",
                                  "name": "Measurement Period",
                                  "type": "ParameterRef"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "localId": "452",
                          "locator": "180:9-180:110",
                          "type": "LessOrEqual",
                          "operand": [
                            {
                              "localId": "450",
                              "locator": "180:9-180:105",
                              "precision": "Month",
                              "type": "DifferenceBetween",
                              "operand": [
                                {
                                  "localId": "447",
                                  "locator": "180:38-180:73",
                                  "path": "authorDatetime",
                                  "scope": "DepressionAssessment1",
                                  "type": "Property"
                                },
                                {
                                  "localId": "449",
                                  "locator": "180:79-180:105",
                                  "type": "End",
                                  "operand": {
                                    "localId": "448",
                                    "locator": "180:86-180:105",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                }
                              ]
                            },
                            {
                              "localId": "451",
                              "locator": "180:110",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "3",
                              "type": "Literal"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              },
              {
                "localId": "477",
                "locator": "190:1-195:2",
                "name": "Numerator 3",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "477",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Numerator 3\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "476",
                          "s": [
                            {
                              "value": [
                                "exists "
                              ]
                            },
                            {
                              "r": "475",
                              "s": [
                                {
                                  "value": [
                                    "( "
                                  ]
                                },
                                {
                                  "r": "475",
                                  "s": [
                                    {
                                      "s": [
                                        {
                                          "r": "458",
                                          "s": [
                                            {
                                              "r": "457",
                                              "s": [
                                                {
                                                  "r": "457",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Assessment, Performed\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"PHQ-9 Tool\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " ",
                                                "DepressionAssessment3"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\t"
                                      ]
                                    },
                                    {
                                      "r": "474",
                                      "s": [
                                        {
                                          "value": [
                                            "where "
                                          ]
                                        },
                                        {
                                          "r": "474",
                                          "s": [
                                            {
                                              "r": "466",
                                              "s": [
                                                {
                                                  "r": "461",
                                                  "s": [
                                                    {
                                                      "r": "460",
                                                      "s": [
                                                        {
                                                          "r": "459",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment3"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "460",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "result"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " is not null"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t\tand "
                                                  ]
                                                },
                                                {
                                                  "r": "465",
                                                  "s": [
                                                    {
                                                      "r": "463",
                                                      "s": [
                                                        {
                                                          "r": "462",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment3"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "463",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " ",
                                                        "during",
                                                        " "
                                                      ]
                                                    },
                                                    {
                                                      "r": "464",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Measurement Period\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\t\tand "
                                              ]
                                            },
                                            {
                                              "r": "473",
                                              "s": [
                                                {
                                                  "r": "471",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "difference in months between "
                                                      ]
                                                    },
                                                    {
                                                      "r": "468",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "start of "
                                                          ]
                                                        },
                                                        {
                                                          "r": "467",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " and "
                                                      ]
                                                    },
                                                    {
                                                      "r": "470",
                                                      "s": [
                                                        {
                                                          "r": "469",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "DepressionAssessment3"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "470",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "<=",
                                                    " ",
                                                    "3"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t)"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "476",
                  "locator": "191:2-195:2",
                  "type": "Exists",
                  "operand": {
                    "localId": "475",
                    "locator": "191:9-195:2",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "458",
                        "locator": "191:11-191:71",
                        "alias": "DepressionAssessment3",
                        "expression": {
                          "localId": "457",
                          "locator": "191:11-191:49",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveAssessmentPerformed",
                          "templateId": "PositiveAssessmentPerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "PHQ-9 Tool",
                            "type": "ValueSetRef"
                          }
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "474",
                      "locator": "192:4-194:112",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "466",
                          "locator": "192:10-193:72",
                          "type": "And",
                          "operand": [
                            {
                              "localId": "461",
                              "locator": "192:10-192:49",
                              "type": "Not",
                              "operand": {
                                "locator": "192:10-192:49",
                                "type": "IsNull",
                                "operand": {
                                  "localId": "460",
                                  "locator": "192:10-192:37",
                                  "path": "result",
                                  "scope": "DepressionAssessment3",
                                  "type": "Property"
                                }
                              }
                            },
                            {
                              "localId": "465",
                              "locator": "193:9-193:72",
                              "type": "In",
                              "operand": [
                                {
                                  "localId": "463",
                                  "locator": "193:9-193:44",
                                  "path": "authorDatetime",
                                  "scope": "DepressionAssessment3",
                                  "type": "Property"
                                },
                                {
                                  "localId": "464",
                                  "locator": "193:53-193:72",
                                  "name": "Measurement Period",
                                  "type": "ParameterRef"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "localId": "473",
                          "locator": "194:9-194:112",
                          "type": "LessOrEqual",
                          "operand": [
                            {
                              "localId": "471",
                              "locator": "194:9-194:107",
                              "precision": "Month",
                              "type": "DifferenceBetween",
                              "operand": [
                                {
                                  "localId": "468",
                                  "locator": "194:38-194:66",
                                  "type": "Start",
                                  "operand": {
                                    "localId": "467",
                                    "locator": "194:47-194:66",
                                    "name": "Measurement Period",
                                    "type": "ParameterRef"
                                  }
                                },
                                {
                                  "localId": "470",
                                  "locator": "194:72-194:107",
                                  "path": "authorDatetime",
                                  "scope": "DepressionAssessment3",
                                  "type": "Property"
                                }
                              ]
                            },
                            {
                              "localId": "472",
                              "locator": "194:112",
                              "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                              "value": "3",
                              "type": "Literal"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"SDE Ethnicity\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Patient Characteristic Ethnicity\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Ethnicity\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "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": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Diagnosis\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Major Depression Including Remission\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "38"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Diagnosis\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Dysthymia\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "39"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "40"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "40"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "41"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Diagnoses"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "42"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "prevalencePeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "43"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "43"
                              },
                              {
                                "children": [
                                  {
                                    "text": " is not null"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "44"
                          }
                        ],
                        "ref_id": "44"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "45"
                  }
                ],
                "ref_id": "46"
              }
            ],
            "define_name": "Depression Diagnoses"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Office Visit Encounter 1\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Office Visit\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "36"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "36"
                              },
                              {
                                "children": [
                                  {
                                    "text": " OfficeVisitEncounter1"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "37"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Depression Diagnoses\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "47"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "48"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "OfficeVisitEncounter1"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "49"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "50"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "50"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " overlaps "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Diagnoses"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "51"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "52"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "52"
                                      }
                                    ],
                                    "node_type": "Overlaps",
                                    "ref_id": "53"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "OfficeVisitEncounter1"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "54"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "55"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "55"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ends during "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Measurement Period\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ParameterRef",
                                        "ref_id": "56"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "57"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "58"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "OfficeVisitEncounter1"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "59"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "60"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "60"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "61"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "62"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "63"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "64"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 3"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "66"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "67"
                          }
                        ],
                        "ref_id": "68"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "69"
                  }
                ],
                "ref_id": "70"
              }
            ],
            "define_name": "Depression Office Visit Encounter 1"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Behavioral Health Encounter 1\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Psych Visit\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "73"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "73"
                              },
                              {
                                "children": [
                                  {
                                    "text": " BehaviorHealthEncounter1"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "74"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BehaviorHealthEncounter1"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "75"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "principalDiagnosis"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "76"
                                                  }
                                                ],
                                                "ref_id": "76"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Major Depression Including Remission\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "77"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "78"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        or "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BehaviorHealthEncounter1"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "79"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "principalDiagnosis"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "80"
                                                  }
                                                ],
                                                "ref_id": "80"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Dysthymia\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "81"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "82"
                                          }
                                        ],
                                        "node_type": "Or",
                                        "ref_id": "83"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Or",
                                    "ref_id": "83"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "BehaviorHealthEncounter1"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "84"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "85"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "85"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ends during "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Measurement Period\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ParameterRef",
                                        "ref_id": "86"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "87"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "88"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "BehaviorHealthEncounter1"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "89"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "90"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "90"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "91"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "92"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "93"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "94"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 3"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "96"
                              }
                            ],
                            "ref_id": "97"
                          }
                        ],
                        "ref_id": "97"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "98"
                  }
                ],
                "ref_id": "99"
              }
            ],
            "define_name": "Depression Behavioral Health Encounter 1"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Face to Face Encounter 1\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Face to Face Interaction - No ED\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "103"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "103"
                              },
                              {
                                "children": [
                                  {
                                    "text": " FacetoFaceEncounter1"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "104"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Depression Diagnoses\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "105"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "106"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FacetoFaceEncounter1"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "107"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "108"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "108"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " overlaps "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Diagnoses"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "109"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "110"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "110"
                                      }
                                    ],
                                    "node_type": "Overlaps",
                                    "ref_id": "111"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FacetoFaceEncounter1"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "112"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "113"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "113"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ends during "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Measurement Period\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ParameterRef",
                                        "ref_id": "114"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "115"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "116"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "FacetoFaceEncounter1"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "117"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "118"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "118"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "119"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "120"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "121"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "122"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 3"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "124"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "125"
                          }
                        ],
                        "ref_id": "126"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "127"
                  }
                ],
                "ref_id": "128"
              }
            ],
            "define_name": "Depression Face to Face Encounter 1"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population 1\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "AgeInYearsAt("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "start of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "31"
                                  }
                                ],
                                "node_type": "Start",
                                "ref_id": "32"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "CalculateAgeAt",
                            "ref_id": "33"
                          },
                          {
                            "children": [
                              {
                                "text": " &gt;= 18"
                              }
                            ]
                          }
                        ],
                        "node_type": "GreaterOrEqual",
                        "ref_id": "35"
                      },
                      {
                        "children": [
                          {
                            "text": "\n        and "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Depression Office Visit Encounter 1\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "71"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "71"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "72"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        or "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Depression Behavioral Health Encounter 1\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "100"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "100"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "101"
                                  }
                                ],
                                "node_type": "Or",
                                "ref_id": "102"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        or "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "exists "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Depression Face to Face Encounter 1\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "129"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ")"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "129"
                                  }
                                ],
                                "node_type": "Exists",
                                "ref_id": "130"
                              }
                            ],
                            "node_type": "Or",
                            "ref_id": "131"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "Or",
                        "ref_id": "131"
                      }
                    ],
                    "node_type": "And",
                    "ref_id": "132"
                  }
                ],
                "ref_id": "133"
              }
            ],
            "define_name": "Initial Population 1"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Office Visit Encounter 2\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Office Visit\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "139"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "139"
                              },
                              {
                                "children": [
                                  {
                                    "text": " OfficeVisitEncounter2"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "140"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Depression Diagnoses\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "141"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "142"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "OfficeVisitEncounter2"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "143"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "144"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "144"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " overlaps "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Diagnoses"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "145"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "146"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "146"
                                      }
                                    ],
                                    "node_type": "Overlaps",
                                    "ref_id": "147"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "OfficeVisitEncounter2"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "148"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "149"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "149"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "ends "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "8 months"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Quantity",
                                            "ref_id": "152"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " or less after"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "153"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "150"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "151"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "153"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "154"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "OfficeVisitEncounter2"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "155"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "156"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "156"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "157"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "158"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "159"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " + "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "8 months"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Quantity",
                                                "ref_id": "160"
                                              }
                                            ],
                                            "node_type": "Add",
                                            "ref_id": "161"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Add",
                                        "ref_id": "161"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "162"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 4"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "164"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "165"
                          }
                        ],
                        "ref_id": "166"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "167"
                  }
                ],
                "ref_id": "168"
              }
            ],
            "define_name": "Depression Office Visit Encounter 2"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Behavioral Health Encounter 2\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Psych Visit\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "171"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "171"
                              },
                              {
                                "children": [
                                  {
                                    "text": " BehaviorHealthEncounter2"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "172"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BehaviorHealthEncounter2"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "173"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "principalDiagnosis"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "174"
                                                  }
                                                ],
                                                "ref_id": "174"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Major Depression Including Remission\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "175"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "176"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        or "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BehaviorHealthEncounter2"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "177"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "principalDiagnosis"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "178"
                                                  }
                                                ],
                                                "ref_id": "178"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Dysthymia\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "179"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "180"
                                          }
                                        ],
                                        "node_type": "Or",
                                        "ref_id": "181"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Or",
                                    "ref_id": "181"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "BehaviorHealthEncounter2"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "182"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "183"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "183"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "ends "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "8 months"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Quantity",
                                            "ref_id": "186"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " or less after"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "187"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "184"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "185"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "187"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "188"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "BehaviorHealthEncounter2"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "189"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "190"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "190"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "191"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "192"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "193"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " + "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "8 months"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Quantity",
                                                "ref_id": "194"
                                              }
                                            ],
                                            "node_type": "Add",
                                            "ref_id": "195"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Add",
                                        "ref_id": "195"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "196"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 4"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "198"
                              }
                            ],
                            "ref_id": "199"
                          }
                        ],
                        "ref_id": "199"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "200"
                  }
                ],
                "ref_id": "201"
              }
            ],
            "define_name": "Depression Behavioral Health Encounter 2"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Face to Face Encounter 2\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Face to Face Interaction - No ED\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "205"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "205"
                              },
                              {
                                "children": [
                                  {
                                    "text": " FacetoFaceEncounter2"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "206"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Depression Diagnoses\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "207"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "208"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FacetoFaceEncounter2"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "209"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "210"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "210"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " overlaps "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Diagnoses"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "211"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "212"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "212"
                                      }
                                    ],
                                    "node_type": "Overlaps",
                                    "ref_id": "213"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FacetoFaceEncounter2"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "214"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "215"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "215"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "ends "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "8 months"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Quantity",
                                            "ref_id": "218"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " or less after"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "In",
                                        "ref_id": "219"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "216"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "217"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "219"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "220"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "FacetoFaceEncounter2"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "221"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "222"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "222"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "223"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "224"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "225"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " + "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "8 months"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Quantity",
                                                "ref_id": "226"
                                              }
                                            ],
                                            "node_type": "Add",
                                            "ref_id": "227"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Add",
                                        "ref_id": "227"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "228"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 4"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "230"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "231"
                          }
                        ],
                        "ref_id": "232"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "233"
                  }
                ],
                "ref_id": "234"
              }
            ],
            "define_name": "Depression Face to Face Encounter 2"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population 2\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "AgeInYearsAt("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "start of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "134"
                                  }
                                ],
                                "node_type": "Start",
                                "ref_id": "135"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "CalculateAgeAt",
                            "ref_id": "136"
                          },
                          {
                            "children": [
                              {
                                "text": " &gt;= 18"
                              }
                            ]
                          }
                        ],
                        "node_type": "GreaterOrEqual",
                        "ref_id": "138"
                      },
                      {
                        "children": [
                          {
                            "text": "\n        and "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Depression Office Visit Encounter 2\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "169"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "169"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "170"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        or "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Depression Behavioral Health Encounter 2\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "202"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "202"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "203"
                                  }
                                ],
                                "node_type": "Or",
                                "ref_id": "204"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        or "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "exists "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Depression Face to Face Encounter 2\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "235"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ")"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "235"
                                  }
                                ],
                                "node_type": "Exists",
                                "ref_id": "236"
                              }
                            ],
                            "node_type": "Or",
                            "ref_id": "237"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "Or",
                        "ref_id": "237"
                      }
                    ],
                    "node_type": "And",
                    "ref_id": "238"
                  }
                ],
                "ref_id": "239"
              }
            ],
            "define_name": "Initial Population 2"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Office Visit Encounter 3\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Office Visit\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "245"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "245"
                              },
                              {
                                "children": [
                                  {
                                    "text": " OfficeVisitEncounter3"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "246"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Depression Diagnoses\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "247"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "248"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "OfficeVisitEncounter3"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "249"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "250"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "250"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " overlaps "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Diagnoses"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "251"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "252"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "252"
                                      }
                                    ],
                                    "node_type": "Overlaps",
                                    "ref_id": "253"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "OfficeVisitEncounter3"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "254"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "255"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "255"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ends during "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Measurement Period\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ParameterRef",
                                        "ref_id": "256"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "257"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "258"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "259"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "260"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "OfficeVisitEncounter3"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "261"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "262"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "262"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "263"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "264"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 3"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "266"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "267"
                          }
                        ],
                        "ref_id": "268"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "269"
                  }
                ],
                "ref_id": "270"
              }
            ],
            "define_name": "Depression Office Visit Encounter 3"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Behavioral Health Encounter 3\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Psych Visit\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "273"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "273"
                              },
                              {
                                "children": [
                                  {
                                    "text": " BehaviorHealthEncounter3"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "274"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BehaviorHealthEncounter3"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "275"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "principalDiagnosis"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "276"
                                                  }
                                                ],
                                                "ref_id": "276"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Major Depression Including Remission\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "277"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "278"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        or "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "BehaviorHealthEncounter3"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "279"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "principalDiagnosis"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "280"
                                                  }
                                                ],
                                                "ref_id": "280"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " in "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Dysthymia\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "281"
                                              }
                                            ],
                                            "node_type": "InValueSet",
                                            "ref_id": "282"
                                          }
                                        ],
                                        "node_type": "Or",
                                        "ref_id": "283"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Or",
                                    "ref_id": "283"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "BehaviorHealthEncounter3"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "284"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "285"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "285"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ends during "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Measurement Period\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ParameterRef",
                                        "ref_id": "286"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "287"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "288"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "289"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "290"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "BehaviorHealthEncounter3"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "291"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "292"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "292"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "293"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "294"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 3"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "296"
                              }
                            ],
                            "ref_id": "297"
                          }
                        ],
                        "ref_id": "297"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "298"
                  }
                ],
                "ref_id": "299"
              }
            ],
            "define_name": "Depression Behavioral Health Encounter 3"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Depression Face to Face Encounter 3\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Face to Face Interaction - No ED\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "303"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "303"
                              },
                              {
                                "children": [
                                  {
                                    "text": " FacetoFaceEncounter3"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "304"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "with "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Depression Diagnoses\""
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "305"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Diagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "306"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      such that "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FacetoFaceEncounter3"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "307"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "308"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "308"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " overlaps "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "Diagnoses"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "309"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "prevalencePeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "310"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "310"
                                      }
                                    ],
                                    "node_type": "Overlaps",
                                    "ref_id": "311"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "FacetoFaceEncounter3"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "312"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "."
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "relevantPeriod"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "313"
                                          }
                                        ],
                                        "node_type": "Property",
                                        "ref_id": "313"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " ends during "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Measurement Period\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ParameterRef",
                                        "ref_id": "314"
                                      }
                                    ],
                                    "node_type": "In",
                                    "ref_id": "315"
                                  }
                                ],
                                "node_type": "And",
                                "ref_id": "316"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        and "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "difference in months between "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "317"
                                          }
                                        ],
                                        "node_type": "Start",
                                        "ref_id": "318"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "FacetoFaceEncounter3"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "319"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "320"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "320"
                                          }
                                        ],
                                        "node_type": "End",
                                        "ref_id": "321"
                                      }
                                    ],
                                    "node_type": "DifferenceBetween",
                                    "ref_id": "322"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " &lt;= 3"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "LessOrEqual",
                                "ref_id": "324"
                              }
                            ],
                            "node_type": "And",
                            "ref_id": "325"
                          }
                        ],
                        "ref_id": "326"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "327"
                  }
                ],
                "ref_id": "328"
              }
            ],
            "define_name": "Depression Face to Face Encounter 3"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population 3\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "AgeInYearsAt("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "start of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "240"
                                  }
                                ],
                                "node_type": "Start",
                                "ref_id": "241"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "CalculateAgeAt",
                            "ref_id": "242"
                          },
                          {
                            "children": [
                              {
                                "text": " &gt;= 18"
                              }
                            ]
                          }
                        ],
                        "node_type": "GreaterOrEqual",
                        "ref_id": "244"
                      },
                      {
                        "children": [
                          {
                            "text": "\n        and "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Depression Office Visit Encounter 3\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "271"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "271"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "272"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        or "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "("
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Depression Behavioral Health Encounter 3\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "300"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": ")"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "300"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "301"
                                  }
                                ],
                                "node_type": "Or",
                                "ref_id": "302"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n        or "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "exists"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "("
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Depression Face to Face Encounter 3\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "329"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ")"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "329"
                                  }
                                ],
                                "node_type": "Exists",
                                "ref_id": "330"
                              }
                            ],
                            "node_type": "Or",
                            "ref_id": "331"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "Or",
                        "ref_id": "331"
                      }
                    ],
                    "node_type": "And",
                    "ref_id": "332"
                  }
                ],
                "ref_id": "333"
              }
            ],
            "define_name": "Initial Population 3"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Palliative Care Order\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Intervention, Order\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Palliative Care\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "334"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "334"
                              },
                              {
                                "children": [
                                  {
                                    "text": " OrderedPalliativeCare"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "335"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "OrderedPalliativeCare"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "336"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "authorDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "337"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "337"
                              },
                              {
                                "children": [
                                  {
                                    "text": " "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "1 year"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Quantity",
                                    "ref_id": "340"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " or less before"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "341"
                              },
                              {
                                "children": [
                                  {
                                    "text": " "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "end of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "338"
                                  }
                                ],
                                "node_type": "End",
                                "ref_id": "339"
                              }
                            ],
                            "ref_id": "341"
                          }
                        ],
                        "ref_id": "341"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "342"
                  }
                ],
                "ref_id": "343"
              }
            ],
            "define_name": "Palliative Care Order"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Long Term Care\":\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": "344"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "344"
                              },
                              {
                                "children": [
                                  {
                                    "text": " EncounterLongTermCare"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "345"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "EncounterLongTermCare"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "346"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "347"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "347"
                              },
                              {
                                "children": [
                                  {
                                    "text": " "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "starts "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "1 year"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Quantity",
                                    "ref_id": "350"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " or less before"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "351"
                              },
                              {
                                "children": [
                                  {
                                    "text": " "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "end of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "348"
                                  }
                                ],
                                "node_type": "End",
                                "ref_id": "349"
                              }
                            ],
                            "ref_id": "351"
                          }
                        ],
                        "ref_id": "351"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "352"
                  }
                ],
                "ref_id": "353"
              }
            ],
            "define_name": "Long Term Care"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Expired\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Patient Characteristic Expired\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Dead\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "354"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "354"
                              },
                              {
                                "children": [
                                  {
                                    "text": " Deceased"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "355"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Deceased"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "356"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "expiredDatetime"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "357"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "357"
                              },
                              {
                                "children": [
                                  {
                                    "text": " before "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "end of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "358"
                                  }
                                ],
                                "node_type": "End",
                                "ref_id": "359"
                              }
                            ],
                            "ref_id": "360"
                          }
                        ],
                        "ref_id": "360"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "361"
                  }
                ],
                "ref_id": "362"
              }
            ],
            "define_name": "Expired"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator 1\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Initial Population 1\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "363"
                  }
                ],
                "ref_id": "364"
              }
            ],
            "define_name": "Denominator 1"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator 2\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Initial Population 2\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "365"
                  }
                ],
                "ref_id": "366"
              }
            ],
            "define_name": "Denominator 2"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator 3\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Initial Population 3\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "367"
                  }
                ],
                "ref_id": "368"
              }
            ],
            "define_name": "Denominator 3"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Encounter Palliative Care\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Encounter, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Palliative care encounter\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "371"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "371"
                              },
                              {
                                "children": [
                                  {
                                    "text": " PalliativeCareEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "372"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "PalliativeCareEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "373"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "374"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "374"
                              },
                              {
                                "children": [
                                  {
                                    "text": " "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "starts "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "1 year"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Quantity",
                                    "ref_id": "377"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " or less before"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "378"
                              },
                              {
                                "children": [
                                  {
                                    "text": " "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "end of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "375"
                                  }
                                ],
                                "node_type": "End",
                                "ref_id": "376"
                              }
                            ],
                            "ref_id": "378"
                          }
                        ],
                        "ref_id": "378"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "379"
                  }
                ],
                "ref_id": "380"
              }
            ],
            "define_name": "Encounter Palliative Care"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Disorder Diagnoses\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Diagnosis\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Bipolar Disorder\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "390"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Diagnosis\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Personality Disorder\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "391"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "392"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "392"
                              },
                              {
                                "children": [
                                  {
                                    "text": " DisorderDiagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "393"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "DisorderDiagnoses"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "394"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "prevalencePeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "395"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "395"
                              },
                              {
                                "children": [
                                  {
                                    "text": " starts before "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "end of "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Measurement Period\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ParameterRef",
                                    "ref_id": "396"
                                  }
                                ],
                                "node_type": "End",
                                "ref_id": "397"
                              }
                            ],
                            "ref_id": "398"
                          }
                        ],
                        "ref_id": "398"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "399"
                  }
                ],
                "ref_id": "400"
              }
            ],
            "define_name": "Disorder Diagnoses"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Palliative Care Order\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "369"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "369"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "370"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    or "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Encounter Palliative Care\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "381"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "381"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "382"
                                  }
                                ],
                                "node_type": "Or",
                                "ref_id": "383"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    or "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "exists "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Long Term Care\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "384"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "384"
                                  }
                                ],
                                "node_type": "Exists",
                                "ref_id": "385"
                              }
                            ],
                            "node_type": "Or",
                            "ref_id": "386"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    or "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "exists "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Expired\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "387"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "387"
                              }
                            ],
                            "node_type": "Exists",
                            "ref_id": "388"
                          }
                        ],
                        "node_type": "Or",
                        "ref_id": "389"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    or "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "exists "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Disorder Diagnoses\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "401"
                              },
                              {
                                "children": [
                                  {
                                    "text": " )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "ExpressionRef",
                            "ref_id": "401"
                          }
                        ],
                        "node_type": "Exists",
                        "ref_id": "402"
                      }
                    ],
                    "node_type": "Or",
                    "ref_id": "403"
                  }
                ],
                "ref_id": "404"
              }
            ],
            "define_name": "Denominator Exclusions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusion 1\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Denominator Exclusions\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "405"
                  }
                ],
                "ref_id": "406"
              }
            ],
            "define_name": "Denominator Exclusion 1"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusion 2\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Denominator Exclusions\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "407"
                  }
                ],
                "ref_id": "408"
              }
            ],
            "define_name": "Denominator Exclusion 2"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusion 3\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Denominator Exclusions\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "409"
                  }
                ],
                "ref_id": "410"
              }
            ],
            "define_name": "Denominator Exclusion 3"
          },
          {
            "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": "\"PHQ-9 Tool\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "411"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "411"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " DepressionAssessment2"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "412"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "where "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment2"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "413"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "result"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "414"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "414"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " is not null"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Not",
                                            "ref_id": "415"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        and "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment2"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "416"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "417"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "417"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "8 months"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Quantity",
                                                    "ref_id": "420"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " or less after"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "In",
                                                "ref_id": "421"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "418"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "419"
                                              }
                                            ],
                                            "node_type": "In",
                                            "ref_id": "421"
                                          }
                                        ],
                                        "node_type": "And",
                                        "ref_id": "422"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n        and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "difference in months between "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment2"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "423"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "424"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "424"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " and "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "( "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "start of "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Measurement Period\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "ParameterRef",
                                                            "ref_id": "425"
                                                          }
                                                        ],
                                                        "node_type": "Start",
                                                        "ref_id": "426"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " + "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "8 months"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Quantity",
                                                        "ref_id": "427"
                                                      }
                                                    ],
                                                    "node_type": "Add",
                                                    "ref_id": "428"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " )"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Add",
                                                "ref_id": "428"
                                              }
                                            ],
                                            "node_type": "DifferenceBetween",
                                            "ref_id": "429"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " &lt;= 4"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "LessOrEqual",
                                        "ref_id": "431"
                                      }
                                    ],
                                    "ref_id": "432"
                                  }
                                ],
                                "ref_id": "432"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "433"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "433"
                      }
                    ],
                    "node_type": "Exists",
                    "ref_id": "434"
                  }
                ],
                "ref_id": "435"
              }
            ],
            "define_name": "Numerator 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": "\"PHQ-9 Tool\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "436"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "436"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " DepressionAssessment1"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "437"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "where "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment1"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "438"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "result"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "439"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "439"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " is not null"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Not",
                                            "ref_id": "440"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        and "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment1"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "441"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "442"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "442"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " during "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Measurement Period\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "ParameterRef",
                                                "ref_id": "443"
                                              }
                                            ],
                                            "node_type": "In",
                                            "ref_id": "444"
                                          }
                                        ],
                                        "node_type": "And",
                                        "ref_id": "445"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n        and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "difference in months between "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment1"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "446"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "447"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "447"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " and "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "end of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "448"
                                                  }
                                                ],
                                                "node_type": "End",
                                                "ref_id": "449"
                                              }
                                            ],
                                            "node_type": "DifferenceBetween",
                                            "ref_id": "450"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " &lt;= 3"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "LessOrEqual",
                                        "ref_id": "452"
                                      }
                                    ],
                                    "ref_id": "453"
                                  }
                                ],
                                "ref_id": "453"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "454"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "454"
                      }
                    ],
                    "node_type": "Exists",
                    "ref_id": "455"
                  }
                ],
                "ref_id": "456"
              }
            ],
            "define_name": "Numerator 1"
          },
          {
            "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": "\"PHQ-9 Tool\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "457"
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "457"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " DepressionAssessment3"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "458"
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "where "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment3"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "459"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "result"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "460"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "460"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " is not null"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Not",
                                            "ref_id": "461"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n        and "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment3"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "462"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "463"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "463"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " during "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Measurement Period\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "ParameterRef",
                                                "ref_id": "464"
                                              }
                                            ],
                                            "node_type": "In",
                                            "ref_id": "465"
                                          }
                                        ],
                                        "node_type": "And",
                                        "ref_id": "466"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n        and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "difference in months between "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "start of "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "467"
                                                  }
                                                ],
                                                "node_type": "Start",
                                                "ref_id": "468"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " and "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "DepressionAssessment3"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "469"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "470"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "470"
                                              }
                                            ],
                                            "node_type": "DifferenceBetween",
                                            "ref_id": "471"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " &lt;= 3"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "LessOrEqual",
                                        "ref_id": "473"
                                      }
                                    ],
                                    "ref_id": "474"
                                  }
                                ],
                                "ref_id": "474"
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "475"
                          },
                          {
                            "children": [
                              {
                                "text": "\n  )"
                              }
                            ]
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "475"
                      }
                    ],
                    "node_type": "Exists",
                    "ref_id": "476"
                  }
                ],
                "ref_id": "477"
              }
            ],
            "define_name": "Numerator 3"
          }
        ],
        "identifier": {
          "id": "DepressionUtilizationofthePHQ9Tool",
          "version": "6.1.001"
        }
      },
      "is_main_library": true,
      "is_top_level": true,
      "library_name": "DepressionUtilizationofthePHQ9Tool",
      "library_version": "6.1.001",
      "statement_dependencies": [
        {
          "statement_name": "Patient"
        },
        {
          "statement_name": "SDE Ethnicity"
        },
        {
          "statement_name": "SDE Payer"
        },
        {
          "statement_name": "SDE Race"
        },
        {
          "statement_name": "SDE Sex"
        },
        {
          "statement_name": "Depression Diagnoses"
        },
        {
          "statement_name": "Depression Office Visit Encounter 1",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Depression Behavioral Health Encounter 1"
        },
        {
          "statement_name": "Depression Face to Face Encounter 1",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Initial Population 1",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Office Visit Encounter 1"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Behavioral Health Encounter 1"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Face to Face Encounter 1"
            }
          ]
        },
        {
          "statement_name": "Depression Office Visit Encounter 2",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Depression Behavioral Health Encounter 2"
        },
        {
          "statement_name": "Depression Face to Face Encounter 2",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Initial Population 2",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Office Visit Encounter 2"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Behavioral Health Encounter 2"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Face to Face Encounter 2"
            }
          ]
        },
        {
          "statement_name": "Depression Office Visit Encounter 3",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Depression Behavioral Health Encounter 3"
        },
        {
          "statement_name": "Depression Face to Face Encounter 3",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Initial Population 3",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Office Visit Encounter 3"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Behavioral Health Encounter 3"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Depression Face to Face Encounter 3"
            }
          ]
        },
        {
          "statement_name": "Palliative Care Order"
        },
        {
          "statement_name": "Long Term Care"
        },
        {
          "statement_name": "Expired"
        },
        {
          "statement_name": "Denominator 1",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Initial Population 1"
            }
          ]
        },
        {
          "statement_name": "Denominator 2",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Initial Population 2"
            }
          ]
        },
        {
          "statement_name": "Denominator 3",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Initial Population 3"
            }
          ]
        },
        {
          "statement_name": "Encounter Palliative Care"
        },
        {
          "statement_name": "Disorder Diagnoses"
        },
        {
          "statement_name": "Denominator Exclusions",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Palliative Care Order"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Encounter Palliative Care"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Long Term Care"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Expired"
            },
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Disorder Diagnoses"
            }
          ]
        },
        {
          "statement_name": "Denominator Exclusion 1",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Denominator Exclusions"
            }
          ]
        },
        {
          "statement_name": "Denominator Exclusion 2",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Denominator Exclusions"
            }
          ]
        },
        {
          "statement_name": "Denominator Exclusion 3",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DepressionUtilizationofthePHQ9Tool",
              "statement_name": "Denominator Exclusions"
            }
          ]
        },
        {
          "statement_name": "Numerator 2"
        },
        {
          "statement_name": "Numerator 1"
        },
        {
          "statement_name": "Numerator 3"
        }
      ]
    }
  ],
  "created_at": null,
  "description": "The percentage of 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 visit",
  "hqmf_id": "40280382-5FA6-FE85-015F-B5B5982402D6",
  "hqmf_set_id": "A4B9763C-847E-4E02-BB7E-ACC596E90E2C",
  "hqmf_version_number": "0",
  "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, 2017. 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, 2017. 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": "None",
      "name": "Stratification",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "STRAT",
        "title": "Stratification"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRADJ",
      "value": "None",
      "name": "Risk Adjustment",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "MSRADJ",
        "title": "Risk Adjustment"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "MSRAGG",
      "value": "None",
      "name": "Rate Aggregation",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "MSRAGG",
        "title": "Rate Aggregation"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "RAT",
      "value": "Depression 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\nPlease note that this process measure for administration of the PHQ-9 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 < 5) and depression response (PHQ-9 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": "Depression 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\nPlease note that this process measure for administration of the PHQ-9 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 < 5) and depression response (PHQ-9 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": "Source: 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).",
      "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": "Source: 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).",
        "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/_asset/fnhdm3/Depr.pdf",
      "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/_asset/fnhdm3/Depr.pdf",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "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": "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": "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": "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": "DEF",
      "value": "Completed PHQ-9 - 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 - 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": "Patients age 18 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": "Patients age 18 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",
      "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",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "Patients who have a PHQ-9 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": "Patients who have a PHQ-9 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_period": {
    "type": "IVL_TS",
    "low": {
      "type": "TS",
      "value": "201201010000",
      "inclusive?": true,
      "derived?": false
    },
    "high": {
      "type": "TS",
      "value": "201212312359",
      "inclusive?": true,
      "derived?": false
    },
    "width": {
      "type": "PQ",
      "unit": "a",
      "value": "1",
      "inclusive?": true,
      "derived?": false
    }
  },
  "measure_scoring": "PROPORTION",
  "population_criteria": {
    "IPP": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "E5CAD3E0-2CF4-4F7D-B0CB-84CEA6BC44AB",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "DepressionUtilizationofthePHQ9Tool__Initial_Population_1__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "39477C70-44D2-406B-ACB5-3192E14B49B8",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_1__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "4696F818-ED1A-4DEB-BDD4-880722F3165F",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "DepressionUtilizationofthePHQ9Tool__Numerator_1__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "08821615-9B0E-4C1C-AE75-63807597A68E",
      "preconditions": [
        {
          "id": 8,
          "preconditions": [
            {
              "id": 7,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_Exclusion_1__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    },
    "IPP_1": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "6D6BC9D7-1492-412C-A076-EC0A6DFEFC4C",
      "preconditions": [
        {
          "id": 10,
          "preconditions": [
            {
              "id": 9,
              "reference": "DepressionUtilizationofthePHQ9Tool__Initial_Population_2__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM_1": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "70D8CAA3-4182-41C0-9A73-335396BB6764",
      "preconditions": [
        {
          "id": 12,
          "preconditions": [
            {
              "id": 11,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_2__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER_1": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "BB75E2C0-749E-4323-A4DB-35B24FF31CED",
      "preconditions": [
        {
          "id": 14,
          "preconditions": [
            {
              "id": 13,
              "reference": "DepressionUtilizationofthePHQ9Tool__Numerator_2__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX_1": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "DC76F105-C17A-4045-B763-E1802225D3A1",
      "preconditions": [
        {
          "id": 16,
          "preconditions": [
            {
              "id": 15,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_Exclusion_2__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    },
    "IPP_2": {
      "conjunction?": true,
      "type": "IPP",
      "hqmf_id": "30F9735A-FDAC-4419-BF46-71CF1968C7D1",
      "preconditions": [
        {
          "id": 18,
          "preconditions": [
            {
              "id": 17,
              "reference": "DepressionUtilizationofthePHQ9Tool__Initial_Population_3__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM_2": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "1EE7E1F6-E10A-4BE0-93C5-EED14D088023",
      "preconditions": [
        {
          "id": 20,
          "preconditions": [
            {
              "id": 19,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_3__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER_2": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "4C5B11DD-040D-460D-B6F6-57D440BE7B36",
      "preconditions": [
        {
          "id": 22,
          "preconditions": [
            {
              "id": 21,
              "reference": "DepressionUtilizationofthePHQ9Tool__Numerator_3__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX_2": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "ECC73292-C204-4458-B9A2-557CC72FFE96",
      "preconditions": [
        {
          "id": 24,
          "preconditions": [
            {
              "id": 23,
              "reference": "DepressionUtilizationofthePHQ9Tool__Denominator_Exclusion_3__A2A54238_5218_4A93_821F_1CBB8F1301B9"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    }
  },
  "population_sets": [
    {
      "population_set_id": "PopulationCriteria1",
      "populations": {
        "DENEX": {
          "hqmf_id": "08821615-9B0E-4C1C-AE75-63807597A68E",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Denominator Exclusion 1"
        },
        "DENOM": {
          "hqmf_id": "39477C70-44D2-406B-ACB5-3192E14B49B8",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Denominator 1"
        },
        "IPP": {
          "hqmf_id": "E5CAD3E0-2CF4-4F7D-B0CB-84CEA6BC44AB",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Initial Population 1"
        },
        "NUMER": {
          "hqmf_id": "4696F818-ED1A-4DEB-BDD4-880722F3165F",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Numerator 1"
        },
        "_type": "CQM::ProportionPopulationMap"
      },
      "title": "Population Criteria Section 1"
    },
    {
      "population_set_id": "PopulationCriteria2",
      "populations": {
        "DENEX": {
          "hqmf_id": "DC76F105-C17A-4045-B763-E1802225D3A1",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Denominator Exclusion 2"
        },
        "DENOM": {
          "hqmf_id": "70D8CAA3-4182-41C0-9A73-335396BB6764",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Denominator 2"
        },
        "IPP": {
          "hqmf_id": "6D6BC9D7-1492-412C-A076-EC0A6DFEFC4C",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Initial Population 2"
        },
        "NUMER": {
          "hqmf_id": "BB75E2C0-749E-4323-A4DB-35B24FF31CED",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Numerator 2"
        },
        "_type": "CQM::ProportionPopulationMap"
      },
      "title": "Population Criteria Section 2"
    },
    {
      "population_set_id": "PopulationCriteria3",
      "populations": {
        "DENEX": {
          "hqmf_id": "ECC73292-C204-4458-B9A2-557CC72FFE96",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Denominator Exclusion 3"
        },
        "DENOM": {
          "hqmf_id": "1EE7E1F6-E10A-4BE0-93C5-EED14D088023",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Denominator 3"
        },
        "IPP": {
          "hqmf_id": "30F9735A-FDAC-4419-BF46-71CF1968C7D1",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Initial Population 3"
        },
        "NUMER": {
          "hqmf_id": "4C5B11DD-040D-460D-B6F6-57D440BE7B36",
          "library_name": "DepressionUtilizationofthePHQ9Tool",
          "statement_name": "Numerator 3"
        },
        "_type": "CQM::ProportionPopulationMap"
      },
      "title": "Population Criteria Section 3"
    }
  ],
  "source_data_criteria": [
    {
      "codeListId": "2.16.840.1.114222.4.11.3591",
      "dataElementCodes": [

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

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

      ],
      "description": "Diagnosis: PersonalityDisorder",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cc431fe5f8b61f4cf01",
      "prevalencePeriod": null,
      "qdmCategory": "condition",
      "qdmTitle": "Diagnosis",
      "qdmVersion": "5.5",
      "qrdaOid": "2.16.840.1.113883.10.20.24.3.135",
      "recorder": null,
      "severity": null,
      "_type": "QDM::Diagnosis"
    },
    {
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.600.1.1579",
      "dataElementCodes": [

      ],
      "description": "Intervention, Order: PalliativeCare",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.35",
      "id": "5d289cc431fe5f8b61f4cf02",
      "negationRationale": null,
      "qdmCategory": "intervention",
      "qdmStatus": "order",
      "qdmTitle": "Intervention, Order",
      "qdmVersion": "5.5",
      "reason": null,
      "requester": null,
      "_type": "QDM::InterventionOrder"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.101.12.1014",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: CareServicesinLong-TermResidentialFacility",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

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

      ],
      "description": "Assessment, Performed: PHQ-9Tool",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.117",
      "id": "5d289cc431fe5f8b61f4cf04",
      "method": null,
      "negationRationale": null,
      "performer": null,
      "qdmCategory": "assessment",
      "qdmStatus": "performed",
      "qdmTitle": "Assessment, Performed",
      "qdmVersion": "5.5",
      "reason": null,
      "relatedTo": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "_type": "QDM::AssessmentPerformed"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113762.1.4.1080.1",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: FacetoFaceInteraction-NoED",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

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

      ],
      "description": "Diagnosis: Dysthymia",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cc431fe5f8b61f4cf06",
      "prevalencePeriod": null,
      "qdmCategory": "condition",
      "qdmTitle": "Diagnosis",
      "qdmVersion": "5.5",
      "qrdaOid": "2.16.840.1.113883.10.20.24.3.135",
      "recorder": null,
      "severity": null,
      "_type": "QDM::Diagnosis"
    },
    {
      "codeListId": "2.16.840.1.114222.4.11.837",
      "dataElementCodes": [

      ],
      "description": "Patient Characteristic Ethnicity: Ethnicity",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.56",
      "id": "5d289cc431fe5f8b61f4cf07",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "ethnicity",
      "qdmTitle": "Patient Characteristic Ethnicity",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicEthnicity"
    },
    {
      "anatomicalLocationSite": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.67.1.101.1.128",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: BipolarDisorder",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cc431fe5f8b61f4cf08",
      "prevalencePeriod": null,
      "qdmCategory": "condition",
      "qdmTitle": "Diagnosis",
      "qdmVersion": "5.5",
      "qrdaOid": "2.16.840.1.113883.10.20.24.3.135",
      "recorder": null,
      "severity": null,
      "_type": "QDM::Diagnosis"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.113883.3.67.1.101.3.2445",
      "dataElementCodes": [

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

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

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

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

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

      ],
      "description": "Diagnosis: MajorDepressionIncludingRemission",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cc431fe5f8b61f4cf0c",
      "prevalencePeriod": null,
      "qdmCategory": "condition",
      "qdmTitle": "Diagnosis",
      "qdmVersion": "5.5",
      "qrdaOid": "2.16.840.1.113883.10.20.24.3.135",
      "recorder": null,
      "severity": null,
      "_type": "QDM::Diagnosis"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.101.12.1001",
      "dataElementCodes": [

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

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

      ],
      "description": "Patient Characteristic Expired: Patient Characteristic Expired",
      "expiredDatetime": null,
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.57",
      "id": "5d289cc431fe5f8b61f4cf0e",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "expired",
      "qdmTitle": "Patient Characteristic Expired",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicExpired"
    }
  ],
  "title": "Depression Utilization of the PHQ-9 Tool",
  "updated_at": null,
  "value_set_ids": [
    "5d289cc431fe5f8b61f4ceef",
    "5d289cc431fe5f8b61f4cef0",
    "5d289cc431fe5f8b61f4cef1",
    "5d289cc431fe5f8b61f4cef2",
    "5d289cc431fe5f8b61f4cef3",
    "5d289cc431fe5f8b61f4cef4",
    "5d289cc431fe5f8b61f4cef5",
    "5d289cc431fe5f8b61f4cef6",
    "5d289cc431fe5f8b61f4cef7",
    "5d289cc431fe5f8b61f4cef8",
    "5d289cc431fe5f8b61f4cef9",
    "5d289cc431fe5f8b61f4cefa",
    "5d289cc431fe5f8b61f4cefb",
    "5d289cc431fe5f8b61f4cefc",
    "5d289cc431fe5f8b61f4cefd",
    "5d289cc431fe5f8b61f4cefe"
  ]
}