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

  ],
  "composite": false,
  "composite_hqmf_set_id": null,
  "cql_libraries": [
    {
      "cql": "library DiabetesMedicalAttentionforNephropathy version '6.1.003'\r\n\r\nusing QDM version '5.3'\r\n\r\ninclude Hospice version '0.1.000' called Hospice\r\ninclude MATGlobalCommonFunctions version '1.0.000' called Global\r\n\r\nvalueset \"ONC Administrative Sex\": 'urn:oid:2.16.840.1.113762.1.4.1'\r\nvalueset \"Race\": 'urn:oid:2.16.840.1.114222.4.11.836'\r\nvalueset \"Ethnicity\": 'urn:oid:2.16.840.1.114222.4.11.837'\r\nvalueset \"Payer\": 'urn:oid:2.16.840.1.114222.4.11.3591'\r\nvalueset \"ACE Inhibitor or ARB\": 'urn:oid:2.16.840.1.113883.3.526.3.1139'\r\nvalueset \"Annual Wellness Visit\": 'urn:oid:2.16.840.1.113883.3.526.3.1240'\r\nvalueset \"Diabetes\": 'urn:oid:2.16.840.1.113883.3.464.1003.103.12.1001'\r\nvalueset \"Diabetic Nephropathy\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1004'\r\nvalueset \"Dialysis Education\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1016'\r\nvalueset \"Dialysis Services\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1013'\r\nvalueset \"ESRD Monthly Outpatient Services\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1014'\r\nvalueset \"Face-to-Face Interaction\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1048'\r\nvalueset \"Glomerulonephritis and Nephrotic Syndrome\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1018'\r\nvalueset \"Home Healthcare Services\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1016'\r\nvalueset \"Hypertensive Chronic Kidney Disease\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1017'\r\nvalueset \"Kidney Transplant\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1012'\r\nvalueset \"Office Visit\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1001'\r\nvalueset \"Other Services Related to Dialysis\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1015'\r\nvalueset \"Preventive Care Services - Established Office Visit, 18 and Up\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1025'\r\nvalueset \"Preventive Care Services-Initial Office Visit, 18 and Up\": 'urn:oid:2.16.840.1.113883.3.464.1003.101.12.1023'\r\nvalueset \"Proteinuria\": 'urn:oid:2.16.840.1.113883.3.526.3.1003'\r\nvalueset \"Urine Protein Tests\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1024'\r\nvalueset \"Vascular Access for Dialysis\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1011'\r\nvalueset \"Kidney Failure\": 'urn:oid:2.16.840.1.113883.3.464.1003.109.12.1028'\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 \"Renal Procedures\":\r\n\t( [\"Procedure, Performed\": \"Kidney Transplant\"]\r\n\t\t\tunion [\"Procedure, Performed\": \"Vascular Access for Dialysis\"]\r\n\t\t\tunion [\"Procedure, Performed\": \"Dialysis Services\"]\r\n\t)\r\n\r\ndefine \"Renal Interventions\":\r\n\t[\"Intervention, Performed\": \"Other Services Related to Dialysis\"]\r\n\t\tunion [\"Intervention, Performed\": \"Dialysis Education\"]\r\n\r\ndefine \"Qualifying Encounters\":\r\n\t( [\"Encounter, Performed\": \"Office Visit\"]\r\n\t\tunion [\"Encounter, Performed\": \"Face-to-Face Interaction\"]\r\n\t\tunion [\"Encounter, Performed\": \"Preventive Care Services - Established Office Visit, 18 and Up\"]\r\n\t\tunion [\"Encounter, Performed\": \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\r\n\t\tunion [\"Encounter, Performed\": \"Home Healthcare Services\"]\r\n\t\tunion [\"Encounter, Performed\": \"Annual Wellness Visit\"] ) ValidEncounter\r\n\t\twhere ValidEncounter.relevantPeriod during \"Measurement Period\"\r\n\r\ndefine \"Protein Urea Lab Test\":\r\n\t[\"Laboratory Test, Performed\": \"Urine Protein Tests\"] ProteinUrea\r\n\t\twhere ProteinUrea.result is not null\r\n\r\ndefine \"Nephropathy Diagnoses\":\r\n\t( [\"Diagnosis\": \"Hypertensive Chronic Kidney Disease\"]\r\n\t\tunion [\"Diagnosis\": \"Kidney Failure\"]\r\n\t\tunion [\"Diagnosis\": \"Glomerulonephritis and Nephrotic Syndrome\"]\r\n\t\tunion [\"Diagnosis\": \"Diabetic Nephropathy\"]\r\n\t\tunion [\"Diagnosis\": \"Proteinuria\"] ) NephropathyDiagnoses\r\n\t\twhere NephropathyDiagnoses.prevalencePeriod overlaps \"Measurement Period\"\r\n\r\ndefine \"ESRD Encounter\":\r\n\t[\"Encounter, Performed\": \"ESRD Monthly Outpatient Services\"]\r\n\r\ndefine \"Active ACEI or ARB Medications\":\r\n\t[\"Medication, Active\": \"ACE Inhibitor or ARB\"] ACEIorARB\r\n\t\twhere ACEIorARB.relevantPeriod overlaps \"Measurement Period\"\r\n\r\ndefine \"Initial Population\":\r\n\texists [\"Patient Characteristic Birthdate\"] BirthDate\r\n\t\twhere Global.\"CalendarAgeInYearsAt\"(BirthDate.birthDatetime, start of \"Measurement Period\")>= 18\r\n\t\t\tand Global.\"CalendarAgeInYearsAt\"(BirthDate.birthDatetime, start of \"Measurement Period\")< 75\r\n\t\t\tand exists ( \"Qualifying Encounters\" )\r\n\t\t\tand exists ( [\"Diagnosis\": \"Diabetes\"] DiabetesDx\r\n\t\t\t\t\twhere DiabetesDx.prevalencePeriod overlaps \"Measurement Period\"\r\n\t\t\t)\r\n\r\ndefine \"Denominator\":\r\n\t\"Initial Population\"\r\n\r\ndefine \"Numerator\":\r\n\texists ( \"Active ACEI or ARB Medications\" )\r\n\t\tor exists ( \"Nephropathy Diagnoses\" )\r\n\t\tor exists ( \"Nephropathy Screenings\" )\r\n\r\ndefine \"In Hospice\":\r\n\tHospice.\"Has Hospice\"\r\n\r\ndefine \"Denominator Exclusions\":\r\n\t\"In Hospice\"\r\n\r\ndefine \"Nephropathy Screenings\":\r\n\t( \"Renal Procedures\"\r\n\t\tunion \"Renal Interventions\"\r\n\t\tunion \"ESRD Encounter\"\r\n\t\tunion \"Protein Urea Lab Test\" ) NephropathyScreenings\r\n\t\twhere NephropathyScreenings.relevantPeriod during \"Measurement Period\"\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "DiabetesMedicalAttentionforNephropathy",
            "version": "6.1.003"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "3:1-3:23",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_3",
                "version": "5.3"
              }
            ]
          },
          "includes": {
            "def": [
              {
                "localId": "2",
                "locator": "5:1-5:48",
                "localIdentifier": "Hospice",
                "path": "Hospice",
                "version": "0.1.000"
              },
              {
                "localId": "3",
                "locator": "7:1-7:64",
                "localIdentifier": "Global",
                "path": "MATGlobalCommonFunctions",
                "version": "1.0.000"
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "30",
                "locator": "36:1-36:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "29",
                  "locator": "36:32-36:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "28",
                    "locator": "36:41-36:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "4",
                "locator": "10:1-10:68",
                "name": "ONC Administrative Sex",
                "id": "2.16.840.1.113762.1.4.1",
                "accessLevel": "Public"
              },
              {
                "localId": "5",
                "locator": "11:1-11:53",
                "name": "Race",
                "id": "2.16.840.1.114222.4.11.836",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "locator": "12:1-12:58",
                "name": "Ethnicity",
                "id": "2.16.840.1.114222.4.11.837",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "locator": "13:1-13:55",
                "name": "Payer",
                "id": "2.16.840.1.114222.4.11.3591",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "locator": "14:1-14:73",
                "name": "ACE Inhibitor or ARB",
                "id": "2.16.840.1.113883.3.526.3.1139",
                "accessLevel": "Public"
              },
              {
                "localId": "9",
                "locator": "15:1-15:74",
                "name": "Annual Wellness Visit",
                "id": "2.16.840.1.113883.3.526.3.1240",
                "accessLevel": "Public"
              },
              {
                "localId": "10",
                "locator": "16:1-16:71",
                "name": "Diabetes",
                "id": "2.16.840.1.113883.3.464.1003.103.12.1001",
                "accessLevel": "Public"
              },
              {
                "localId": "11",
                "locator": "17:1-17:83",
                "name": "Diabetic Nephropathy",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1004",
                "accessLevel": "Public"
              },
              {
                "localId": "12",
                "locator": "18:1-18:81",
                "name": "Dialysis Education",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1016",
                "accessLevel": "Public"
              },
              {
                "localId": "13",
                "locator": "19:1-19:80",
                "name": "Dialysis Services",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1013",
                "accessLevel": "Public"
              },
              {
                "localId": "14",
                "locator": "20:1-20:95",
                "name": "ESRD Monthly Outpatient Services",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1014",
                "accessLevel": "Public"
              },
              {
                "localId": "15",
                "locator": "21:1-21:87",
                "name": "Face-to-Face Interaction",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1048",
                "accessLevel": "Public"
              },
              {
                "localId": "16",
                "locator": "22:1-22:104",
                "name": "Glomerulonephritis and Nephrotic Syndrome",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1018",
                "accessLevel": "Public"
              },
              {
                "localId": "17",
                "locator": "23:1-23:87",
                "name": "Home Healthcare Services",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1016",
                "accessLevel": "Public"
              },
              {
                "localId": "18",
                "locator": "24:1-24:98",
                "name": "Hypertensive Chronic Kidney Disease",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1017",
                "accessLevel": "Public"
              },
              {
                "localId": "19",
                "locator": "25:1-25:80",
                "name": "Kidney Transplant",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1012",
                "accessLevel": "Public"
              },
              {
                "localId": "20",
                "locator": "26:1-26:75",
                "name": "Office Visit",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1001",
                "accessLevel": "Public"
              },
              {
                "localId": "21",
                "locator": "27:1-27:97",
                "name": "Other Services Related to Dialysis",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1015",
                "accessLevel": "Public"
              },
              {
                "localId": "22",
                "locator": "28:1-28:125",
                "name": "Preventive Care Services - Established Office Visit, 18 and Up",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1025",
                "accessLevel": "Public"
              },
              {
                "localId": "23",
                "locator": "29:1-29:119",
                "name": "Preventive Care Services-Initial Office Visit, 18 and Up",
                "id": "2.16.840.1.113883.3.464.1003.101.12.1023",
                "accessLevel": "Public"
              },
              {
                "localId": "24",
                "locator": "30:1-30:64",
                "name": "Proteinuria",
                "id": "2.16.840.1.113883.3.526.3.1003",
                "accessLevel": "Public"
              },
              {
                "localId": "25",
                "locator": "31:1-31:82",
                "name": "Urine Protein Tests",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1024",
                "accessLevel": "Public"
              },
              {
                "localId": "26",
                "locator": "32:1-32:91",
                "name": "Vascular Access for Dialysis",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1011",
                "accessLevel": "Public"
              },
              {
                "localId": "27",
                "locator": "33:1-33:77",
                "name": "Kidney Failure",
                "id": "2.16.840.1.113883.3.464.1003.109.12.1028",
                "accessLevel": "Public"
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "38:1-38:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "38:1-38:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "32",
                "locator": "40:1-41:50",
                "name": "SDE Ethnicity",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "32",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Ethnicity\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "31",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Ethnicity\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Ethnicity\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "31",
                  "locator": "41:2-41:50",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicEthnicity",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Ethnicity",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "34",
                "locator": "43:1-44:42",
                "name": "SDE Payer",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "34",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Payer\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "33",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Payer\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Payer\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "33",
                  "locator": "44:2-44:42",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicPayer",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Payer",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "36",
                "locator": "46:1-47:40",
                "name": "SDE Race",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "36",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Race\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "35",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Race\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"Race\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "35",
                  "locator": "47:2-47:40",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicRace",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "Race",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "38",
                "locator": "49:1-50:57",
                "name": "SDE Sex",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "38",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"SDE Sex\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "37",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Patient Characteristic Sex\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"ONC Administrative Sex\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "37",
                  "locator": "50:2-50:57",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicSex",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "ONC Administrative Sex",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "44",
                "locator": "52:1-56:2",
                "name": "Renal Procedures",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "44",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Renal Procedures\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "43",
                          "s": [
                            {
                              "value": [
                                "( "
                              ]
                            },
                            {
                              "r": "43",
                              "s": [
                                {
                                  "r": "41",
                                  "s": [
                                    {
                                      "r": "39",
                                      "s": [
                                        {
                                          "value": [
                                            "[",
                                            "\"Procedure, Performed\"",
                                            ": "
                                          ]
                                        },
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Kidney Transplant\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t\tunion "
                                      ]
                                    },
                                    {
                                      "r": "40",
                                      "s": [
                                        {
                                          "value": [
                                            "[",
                                            "\"Procedure, Performed\"",
                                            ": "
                                          ]
                                        },
                                        {
                                          "s": [
                                            {
                                              "value": [
                                                "\"Vascular Access for Dialysis\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "]"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t\tunion "
                                  ]
                                },
                                {
                                  "r": "42",
                                  "s": [
                                    {
                                      "value": [
                                        "[",
                                        "\"Procedure, Performed\"",
                                        ": "
                                      ]
                                    },
                                    {
                                      "s": [
                                        {
                                          "value": [
                                            "\"Dialysis Services\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "]"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t)"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "43",
                  "locator": "53:2-56:2",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "41",
                      "locator": "53:4-54:65",
                      "type": "Union",
                      "operand": [
                        {
                          "localId": "39",
                          "locator": "53:4-53:48",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                          "templateId": "PositiveProcedurePerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Kidney Transplant",
                            "type": "ValueSetRef"
                          }
                        },
                        {
                          "localId": "40",
                          "locator": "54:10-54:65",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                          "templateId": "PositiveProcedurePerformed",
                          "codeProperty": "code",
                          "type": "Retrieve",
                          "codes": {
                            "name": "Vascular Access for Dialysis",
                            "type": "ValueSetRef"
                          }
                        }
                      ]
                    },
                    {
                      "localId": "42",
                      "locator": "55:10-55:54",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                      "templateId": "PositiveProcedurePerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Dialysis Services",
                        "type": "ValueSetRef"
                      }
                    }
                  ]
                }
              },
              {
                "localId": "48",
                "locator": "58:1-60:57",
                "name": "Renal Interventions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "48",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Renal Interventions\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "47",
                          "s": [
                            {
                              "r": "45",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Intervention, Performed\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Other Services Related to Dialysis\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\tunion "
                              ]
                            },
                            {
                              "r": "46",
                              "s": [
                                {
                                  "value": [
                                    "[",
                                    "\"Intervention, Performed\"",
                                    ": "
                                  ]
                                },
                                {
                                  "s": [
                                    {
                                      "value": [
                                        "\"Dialysis Education\""
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "]"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "47",
                  "locator": "59:2-60:57",
                  "type": "Union",
                  "operand": [
                    {
                      "localId": "45",
                      "locator": "59:2-59:66",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                      "templateId": "PositiveInterventionPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Other Services Related to Dialysis",
                        "type": "ValueSetRef"
                      }
                    },
                    {
                      "localId": "46",
                      "locator": "60:9-60:57",
                      "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                      "templateId": "PositiveInterventionPerformed",
                      "codeProperty": "code",
                      "type": "Retrieve",
                      "codes": {
                        "name": "Dialysis Education",
                        "type": "ValueSetRef"
                      }
                    }
                  ]
                }
              },
              {
                "localId": "66",
                "locator": "62:1-69:65",
                "name": "Qualifying Encounters",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "66",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Qualifying Encounters\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "65",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "60",
                                  "s": [
                                    {
                                      "r": "59",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "59",
                                          "s": [
                                            {
                                              "r": "57",
                                              "s": [
                                                {
                                                  "r": "55",
                                                  "s": [
                                                    {
                                                      "r": "53",
                                                      "s": [
                                                        {
                                                          "r": "51",
                                                          "s": [
                                                            {
                                                              "r": "49",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Office Visit\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n\t\tunion "
                                                              ]
                                                            },
                                                            {
                                                              "r": "50",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "[",
                                                                    "\"Encounter, Performed\"",
                                                                    ": "
                                                                  ]
                                                                },
                                                                {
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Face-to-Face Interaction\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "]"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n\t\tunion "
                                                          ]
                                                        },
                                                        {
                                                          "r": "52",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Encounter, Performed\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Preventive Care Services - Established Office Visit, 18 and Up\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\tunion "
                                                      ]
                                                    },
                                                    {
                                                      "r": "54",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Encounter, Performed\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Preventive Care Services-Initial Office Visit, 18 and Up\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\tunion "
                                                  ]
                                                },
                                                {
                                                  "r": "56",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Encounter, Performed\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Home Healthcare Services\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\tunion "
                                              ]
                                            },
                                            {
                                              "r": "58",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Encounter, Performed\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Annual Wellness Visit\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "ValidEncounter"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "64",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "64",
                                  "s": [
                                    {
                                      "r": "62",
                                      "s": [
                                        {
                                          "r": "61",
                                          "s": [
                                            {
                                              "value": [
                                                "ValidEncounter"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "62",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "63",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Measurement Period\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "65",
                  "locator": "63:2-69:65",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "60",
                      "locator": "63:2-68:74",
                      "alias": "ValidEncounter",
                      "expression": {
                        "localId": "59",
                        "locator": "63:2-68:59",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "57",
                            "locator": "63:4-67:60",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "55",
                                "locator": "63:4-66:92",
                                "type": "Union",
                                "operand": [
                                  {
                                    "localId": "53",
                                    "locator": "63:4-65:98",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "localId": "51",
                                        "locator": "63:4-64:60",
                                        "type": "Union",
                                        "operand": [
                                          {
                                            "localId": "49",
                                            "locator": "63:4-63:43",
                                            "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                            "templateId": "PositiveEncounterPerformed",
                                            "codeProperty": "code",
                                            "type": "Retrieve",
                                            "codes": {
                                              "name": "Office Visit",
                                              "type": "ValueSetRef"
                                            }
                                          },
                                          {
                                            "localId": "50",
                                            "locator": "64:9-64:60",
                                            "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                            "templateId": "PositiveEncounterPerformed",
                                            "codeProperty": "code",
                                            "type": "Retrieve",
                                            "codes": {
                                              "name": "Face-to-Face Interaction",
                                              "type": "ValueSetRef"
                                            }
                                          }
                                        ]
                                      },
                                      {
                                        "localId": "52",
                                        "locator": "65:9-65:98",
                                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                        "templateId": "PositiveEncounterPerformed",
                                        "codeProperty": "code",
                                        "type": "Retrieve",
                                        "codes": {
                                          "name": "Preventive Care Services - Established Office Visit, 18 and Up",
                                          "type": "ValueSetRef"
                                        }
                                      }
                                    ]
                                  },
                                  {
                                    "localId": "54",
                                    "locator": "66:9-66:92",
                                    "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                    "templateId": "PositiveEncounterPerformed",
                                    "codeProperty": "code",
                                    "type": "Retrieve",
                                    "codes": {
                                      "name": "Preventive Care Services-Initial Office Visit, 18 and Up",
                                      "type": "ValueSetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "56",
                                "locator": "67:9-67:60",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "Home Healthcare Services",
                                  "type": "ValueSetRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "58",
                            "locator": "68:9-68:57",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                            "templateId": "PositiveEncounterPerformed",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Annual Wellness Visit",
                              "type": "ValueSetRef"
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "64",
                    "locator": "69:3-69:65",
                    "type": "IncludedIn",
                    "operand": [
                      {
                        "localId": "62",
                        "locator": "69:9-69:37",
                        "path": "relevantPeriod",
                        "scope": "ValidEncounter",
                        "type": "Property"
                      },
                      {
                        "localId": "63",
                        "locator": "69:46-69:65",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    ]
                  }
                }
              },
              {
                "localId": "73",
                "locator": "71:1-73:38",
                "name": "Protein Urea Lab Test",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "73",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Protein Urea Lab Test\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "72",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "68",
                                  "s": [
                                    {
                                      "r": "67",
                                      "s": [
                                        {
                                          "r": "67",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Laboratory Test, Performed\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Urine Protein Tests\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "ProteinUrea"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "71",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "71",
                                  "s": [
                                    {
                                      "r": "70",
                                      "s": [
                                        {
                                          "r": "69",
                                          "s": [
                                            {
                                              "value": [
                                                "ProteinUrea"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "70",
                                          "s": [
                                            {
                                              "value": [
                                                "result"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " is not null"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "72",
                  "locator": "72:2-73:38",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "68",
                      "locator": "72:2-72:66",
                      "alias": "ProteinUrea",
                      "expression": {
                        "localId": "67",
                        "locator": "72:2-72:54",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveLaboratoryTestPerformed",
                        "templateId": "PositiveLaboratoryTestPerformed",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "Urine Protein Tests",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "71",
                    "locator": "73:3-73:38",
                    "type": "Not",
                    "operand": {
                      "locator": "73:9-73:38",
                      "type": "IsNull",
                      "operand": {
                        "localId": "70",
                        "locator": "73:9-73:26",
                        "path": "result",
                        "scope": "ProteinUrea",
                        "type": "Property"
                      }
                    }
                  }
                }
              },
              {
                "localId": "89",
                "locator": "75:1-81:75",
                "name": "Nephropathy Diagnoses",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "89",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Nephropathy Diagnoses\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "88",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "83",
                                  "s": [
                                    {
                                      "r": "82",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "82",
                                          "s": [
                                            {
                                              "r": "80",
                                              "s": [
                                                {
                                                  "r": "78",
                                                  "s": [
                                                    {
                                                      "r": "76",
                                                      "s": [
                                                        {
                                                          "r": "74",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Diagnosis\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Hypertensive Chronic Kidney Disease\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n\t\tunion "
                                                          ]
                                                        },
                                                        {
                                                          "r": "75",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Diagnosis\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Kidney Failure\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\tunion "
                                                      ]
                                                    },
                                                    {
                                                      "r": "77",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Diagnosis\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Glomerulonephritis and Nephrotic Syndrome\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\tunion "
                                                  ]
                                                },
                                                {
                                                  "r": "79",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "[",
                                                        "\"Diagnosis\"",
                                                        ": "
                                                      ]
                                                    },
                                                    {
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Diabetic Nephropathy\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "]"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\tunion "
                                              ]
                                            },
                                            {
                                              "r": "81",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Diagnosis\"",
                                                    ": "
                                                  ]
                                                },
                                                {
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Proteinuria\""
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NephropathyDiagnoses"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "87",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "87",
                                  "s": [
                                    {
                                      "r": "85",
                                      "s": [
                                        {
                                          "r": "84",
                                          "s": [
                                            {
                                              "value": [
                                                "NephropathyDiagnoses"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "85",
                                          "s": [
                                            {
                                              "value": [
                                                "prevalencePeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "overlaps",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "86",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Measurement Period\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "88",
                  "locator": "76:2-81:75",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "83",
                      "locator": "76:2-80:59",
                      "alias": "NephropathyDiagnoses",
                      "expression": {
                        "localId": "82",
                        "locator": "76:2-80:38",
                        "type": "Union",
                        "operand": [
                          {
                            "localId": "80",
                            "locator": "76:4-79:45",
                            "type": "Union",
                            "operand": [
                              {
                                "localId": "78",
                                "locator": "76:4-78:66",
                                "type": "Union",
                                "operand": [
                                  {
                                    "localId": "76",
                                    "locator": "76:4-77:39",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "localId": "74",
                                        "locator": "76:4-76:55",
                                        "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                        "codeProperty": "code",
                                        "type": "Retrieve",
                                        "codes": {
                                          "name": "Hypertensive Chronic Kidney Disease",
                                          "type": "ValueSetRef"
                                        }
                                      },
                                      {
                                        "localId": "75",
                                        "locator": "77:9-77:39",
                                        "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                        "codeProperty": "code",
                                        "type": "Retrieve",
                                        "codes": {
                                          "name": "Kidney Failure",
                                          "type": "ValueSetRef"
                                        }
                                      }
                                    ]
                                  },
                                  {
                                    "localId": "77",
                                    "locator": "78:9-78:66",
                                    "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                    "codeProperty": "code",
                                    "type": "Retrieve",
                                    "codes": {
                                      "name": "Glomerulonephritis and Nephrotic Syndrome",
                                      "type": "ValueSetRef"
                                    }
                                  }
                                ]
                              },
                              {
                                "localId": "79",
                                "locator": "79:9-79:45",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "Diabetic Nephropathy",
                                  "type": "ValueSetRef"
                                }
                              }
                            ]
                          },
                          {
                            "localId": "81",
                            "locator": "80:9-80:36",
                            "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                            "codeProperty": "code",
                            "type": "Retrieve",
                            "codes": {
                              "name": "Proteinuria",
                              "type": "ValueSetRef"
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "87",
                    "locator": "81:3-81:75",
                    "type": "Overlaps",
                    "operand": [
                      {
                        "localId": "85",
                        "locator": "81:9-81:45",
                        "path": "prevalencePeriod",
                        "scope": "NephropathyDiagnoses",
                        "type": "Property"
                      },
                      {
                        "localId": "86",
                        "locator": "81:56-81:75",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    ]
                  }
                }
              },
              {
                "localId": "91",
                "locator": "83:1-84:61",
                "name": "ESRD Encounter",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "91",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"ESRD Encounter\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "90",
                          "s": [
                            {
                              "value": [
                                "[",
                                "\"Encounter, Performed\"",
                                ": "
                              ]
                            },
                            {
                              "s": [
                                {
                                  "value": [
                                    "\"ESRD Monthly Outpatient Services\""
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "]"
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "90",
                  "locator": "84:2-84:61",
                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                  "templateId": "PositiveEncounterPerformed",
                  "codeProperty": "code",
                  "type": "Retrieve",
                  "codes": {
                    "name": "ESRD Monthly Outpatient Services",
                    "type": "ValueSetRef"
                  }
                }
              },
              {
                "localId": "99",
                "locator": "86:1-88:62",
                "name": "Active ACEI or ARB Medications",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "99",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Active ACEI or ARB Medications\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "98",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "93",
                                  "s": [
                                    {
                                      "r": "92",
                                      "s": [
                                        {
                                          "r": "92",
                                          "s": [
                                            {
                                              "value": [
                                                "[",
                                                "\"Medication, Active\"",
                                                ": "
                                              ]
                                            },
                                            {
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"ACE Inhibitor or ARB\""
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "ACEIorARB"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "97",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "97",
                                  "s": [
                                    {
                                      "r": "95",
                                      "s": [
                                        {
                                          "r": "94",
                                          "s": [
                                            {
                                              "value": [
                                                "ACEIorARB"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "95",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "overlaps",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "96",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Measurement Period\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "98",
                  "locator": "87:2-88:62",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "93",
                      "locator": "87:2-87:57",
                      "alias": "ACEIorARB",
                      "expression": {
                        "localId": "92",
                        "locator": "87:2-87:47",
                        "dataType": "{urn:healthit-gov:qdm:v5_3}MedicationActive",
                        "codeProperty": "code",
                        "type": "Retrieve",
                        "codes": {
                          "name": "ACE Inhibitor or ARB",
                          "type": "ValueSetRef"
                        }
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "97",
                    "locator": "88:3-88:62",
                    "type": "Overlaps",
                    "operand": [
                      {
                        "localId": "95",
                        "locator": "88:9-88:32",
                        "path": "relevantPeriod",
                        "scope": "ACEIorARB",
                        "type": "Property"
                      },
                      {
                        "localId": "96",
                        "locator": "88:43-88:62",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    ]
                  }
                }
              },
              {
                "localId": "133",
                "locator": "90:1-97:4",
                "name": "Initial Population",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "133",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Initial Population\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "132",
                          "s": [
                            {
                              "value": [
                                "exists "
                              ]
                            },
                            {
                              "r": "131",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "101",
                                      "s": [
                                        {
                                          "r": "100",
                                          "s": [
                                            {
                                              "r": "100",
                                              "s": [
                                                {
                                                  "value": [
                                                    "[",
                                                    "\"Patient Characteristic Birthdate\"",
                                                    "]"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "BirthDate"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t"
                                  ]
                                },
                                {
                                  "r": "130",
                                  "s": [
                                    {
                                      "value": [
                                        "where "
                                      ]
                                    },
                                    {
                                      "r": "130",
                                      "s": [
                                        {
                                          "r": "121",
                                          "s": [
                                            {
                                              "r": "118",
                                              "s": [
                                                {
                                                  "r": "109",
                                                  "s": [
                                                    {
                                                      "r": "107",
                                                      "s": [
                                                        {
                                                          "r": "102",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "Global"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "107",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"CalendarAgeInYearsAt\"",
                                                                "("
                                                              ]
                                                            },
                                                            {
                                                              "r": "104",
                                                              "s": [
                                                                {
                                                                  "r": "103",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "BirthDate"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "104",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "birthDatetime"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ", "
                                                              ]
                                                            },
                                                            {
                                                              "r": "106",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "start of "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "105",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Measurement Period\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ")"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        ">=",
                                                        " ",
                                                        "18"
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\tand "
                                                  ]
                                                },
                                                {
                                                  "r": "117",
                                                  "s": [
                                                    {
                                                      "r": "115",
                                                      "s": [
                                                        {
                                                          "r": "110",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "Global"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "115",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"CalendarAgeInYearsAt\"",
                                                                "("
                                                              ]
                                                            },
                                                            {
                                                              "r": "112",
                                                              "s": [
                                                                {
                                                                  "r": "111",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "BirthDate"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "112",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "birthDatetime"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ", "
                                                              ]
                                                            },
                                                            {
                                                              "r": "114",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "start of "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "113",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Measurement Period\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                ")"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "<",
                                                        " ",
                                                        "75"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\tand "
                                              ]
                                            },
                                            {
                                              "r": "120",
                                              "s": [
                                                {
                                                  "value": [
                                                    "exists "
                                                  ]
                                                },
                                                {
                                                  "r": "119",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "119",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Qualifying Encounters\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " )"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\tand "
                                          ]
                                        },
                                        {
                                          "r": "129",
                                          "s": [
                                            {
                                              "value": [
                                                "exists "
                                              ]
                                            },
                                            {
                                              "r": "128",
                                              "s": [
                                                {
                                                  "value": [
                                                    "( "
                                                  ]
                                                },
                                                {
                                                  "r": "128",
                                                  "s": [
                                                    {
                                                      "s": [
                                                        {
                                                          "r": "123",
                                                          "s": [
                                                            {
                                                              "r": "122",
                                                              "s": [
                                                                {
                                                                  "r": "122",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "[",
                                                                        "\"Diagnosis\"",
                                                                        ": "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "\"Diabetes\""
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "]"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "DiabetesDx"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\t\t\t\t"
                                                      ]
                                                    },
                                                    {
                                                      "r": "127",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "where "
                                                          ]
                                                        },
                                                        {
                                                          "r": "127",
                                                          "s": [
                                                            {
                                                              "r": "125",
                                                              "s": [
                                                                {
                                                                  "r": "124",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "DiabetesDx"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    "."
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "125",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "prevalencePeriod"
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                " ",
                                                                "overlaps",
                                                                " "
                                                              ]
                                                            },
                                                            {
                                                              "r": "126",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Measurement Period\""
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\t\t)"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "132",
                  "locator": "91:2-97:4",
                  "type": "Exists",
                  "operand": {
                    "localId": "131",
                    "locator": "91:9-97:4",
                    "type": "Query",
                    "source": [
                      {
                        "localId": "101",
                        "locator": "91:9-91:54",
                        "alias": "BirthDate",
                        "expression": {
                          "localId": "100",
                          "locator": "91:9-91:44",
                          "dataType": "{urn:healthit-gov:qdm:v5_3}PatientCharacteristicBirthdate",
                          "type": "Retrieve"
                        }
                      }
                    ],
                    "relationship": [

                    ],
                    "where": {
                      "localId": "130",
                      "locator": "92:3-97:4",
                      "type": "And",
                      "operand": [
                        {
                          "localId": "121",
                          "locator": "92:9-94:41",
                          "type": "And",
                          "operand": [
                            {
                              "localId": "118",
                              "locator": "92:9-93:96",
                              "type": "And",
                              "operand": [
                                {
                                  "localId": "109",
                                  "locator": "92:9-92:98",
                                  "type": "GreaterOrEqual",
                                  "operand": [
                                    {
                                      "localId": "107",
                                      "locator": "92:9-92:93",
                                      "name": "CalendarAgeInYearsAt",
                                      "libraryName": "Global",
                                      "type": "FunctionRef",
                                      "operand": [
                                        {
                                          "localId": "104",
                                          "locator": "92:39-92:61",
                                          "path": "birthDatetime",
                                          "scope": "BirthDate",
                                          "type": "Property"
                                        },
                                        {
                                          "localId": "106",
                                          "locator": "92:64-92:92",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "105",
                                            "locator": "92:73-92:92",
                                            "name": "Measurement Period",
                                            "type": "ParameterRef"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "localId": "108",
                                      "locator": "92:97-92:98",
                                      "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                      "value": "18",
                                      "type": "Literal"
                                    }
                                  ]
                                },
                                {
                                  "localId": "117",
                                  "locator": "93:8-93:96",
                                  "type": "Less",
                                  "operand": [
                                    {
                                      "localId": "115",
                                      "locator": "93:8-93:92",
                                      "name": "CalendarAgeInYearsAt",
                                      "libraryName": "Global",
                                      "type": "FunctionRef",
                                      "operand": [
                                        {
                                          "localId": "112",
                                          "locator": "93:38-93:60",
                                          "path": "birthDatetime",
                                          "scope": "BirthDate",
                                          "type": "Property"
                                        },
                                        {
                                          "localId": "114",
                                          "locator": "93:63-93:91",
                                          "type": "Start",
                                          "operand": {
                                            "localId": "113",
                                            "locator": "93:72-93:91",
                                            "name": "Measurement Period",
                                            "type": "ParameterRef"
                                          }
                                        }
                                      ]
                                    },
                                    {
                                      "localId": "116",
                                      "locator": "93:95-93:96",
                                      "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                                      "value": "75",
                                      "type": "Literal"
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "localId": "120",
                              "locator": "94:8-94:41",
                              "type": "Exists",
                              "operand": {
                                "localId": "119",
                                "locator": "94:15-94:41",
                                "name": "Qualifying Encounters",
                                "type": "ExpressionRef"
                              }
                            }
                          ]
                        },
                        {
                          "localId": "129",
                          "locator": "95:8-97:4",
                          "type": "Exists",
                          "operand": {
                            "localId": "128",
                            "locator": "95:15-97:4",
                            "type": "Query",
                            "source": [
                              {
                                "localId": "123",
                                "locator": "95:17-95:52",
                                "alias": "DiabetesDx",
                                "expression": {
                                  "localId": "122",
                                  "locator": "95:17-95:41",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}Diagnosis",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Diabetes",
                                    "type": "ValueSetRef"
                                  }
                                }
                              }
                            ],
                            "relationship": [

                            ],
                            "where": {
                              "localId": "127",
                              "locator": "96:6-96:68",
                              "type": "Overlaps",
                              "operand": [
                                {
                                  "localId": "125",
                                  "locator": "96:12-96:38",
                                  "path": "prevalencePeriod",
                                  "scope": "DiabetesDx",
                                  "type": "Property"
                                },
                                {
                                  "localId": "126",
                                  "locator": "96:49-96:68",
                                  "name": "Measurement Period",
                                  "type": "ParameterRef"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              },
              {
                "localId": "135",
                "locator": "99:1-100:21",
                "name": "Denominator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "135",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "134",
                          "s": [
                            {
                              "value": [
                                "\"Initial Population\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "134",
                  "locator": "100:2-100:21",
                  "name": "Initial Population",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "154",
                "locator": "113:1-118:72",
                "name": "Nephropathy Screenings",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "154",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Nephropathy Screenings\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "153",
                          "s": [
                            {
                              "s": [
                                {
                                  "r": "148",
                                  "s": [
                                    {
                                      "r": "147",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "147",
                                          "s": [
                                            {
                                              "r": "145",
                                              "s": [
                                                {
                                                  "r": "143",
                                                  "s": [
                                                    {
                                                      "r": "141",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Renal Procedures\""
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\tunion "
                                                      ]
                                                    },
                                                    {
                                                      "r": "142",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Renal Interventions\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    "\n\t\tunion "
                                                  ]
                                                },
                                                {
                                                  "r": "144",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"ESRD Encounter\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\tunion "
                                              ]
                                            },
                                            {
                                              "r": "146",
                                              "s": [
                                                {
                                                  "value": [
                                                    "\"Protein Urea Lab Test\""
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "NephropathyScreenings"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\t"
                              ]
                            },
                            {
                              "r": "152",
                              "s": [
                                {
                                  "value": [
                                    "where "
                                  ]
                                },
                                {
                                  "r": "152",
                                  "s": [
                                    {
                                      "r": "150",
                                      "s": [
                                        {
                                          "r": "149",
                                          "s": [
                                            {
                                              "value": [
                                                "NephropathyScreenings"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "."
                                          ]
                                        },
                                        {
                                          "r": "150",
                                          "s": [
                                            {
                                              "value": [
                                                "relevantPeriod"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " ",
                                        "during",
                                        " "
                                      ]
                                    },
                                    {
                                      "r": "151",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Measurement Period\""
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "153",
                  "locator": "114:2-118:72",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "148",
                      "locator": "114:2-117:55",
                      "alias": "NephropathyScreenings",
                      "expression": {
                        "localId": "147",
                        "locator": "114:2-117:33",
                        "type": "Union",
                        "operand": [
                          {
                            "locator": "114:4-116:24",
                            "type": "As",
                            "operand": {
                              "localId": "145",
                              "locator": "114:4-116:24",
                              "type": "Union",
                              "operand": [
                                {
                                  "locator": "114:4-115:29",
                                  "type": "As",
                                  "operand": {
                                    "localId": "143",
                                    "locator": "114:4-115:29",
                                    "type": "Union",
                                    "operand": [
                                      {
                                        "locator": "114:4-114:21",
                                        "type": "As",
                                        "operand": {
                                          "localId": "141",
                                          "locator": "114:4-114:21",
                                          "name": "Renal Procedures",
                                          "type": "ExpressionRef"
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      },
                                      {
                                        "locator": "115:9-115:29",
                                        "type": "As",
                                        "operand": {
                                          "localId": "142",
                                          "locator": "115:9-115:29",
                                          "name": "Renal Interventions",
                                          "type": "ExpressionRef"
                                        },
                                        "asTypeSpecifier": {
                                          "type": "ListTypeSpecifier",
                                          "elementType": {
                                            "type": [
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                                                "type": "NamedTypeSpecifier"
                                              },
                                              {
                                                "name": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                                "type": "NamedTypeSpecifier"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    ]
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                },
                                {
                                  "locator": "116:9-116:24",
                                  "type": "As",
                                  "operand": {
                                    "localId": "144",
                                    "locator": "116:9-116:24",
                                    "name": "ESRD Encounter",
                                    "type": "ExpressionRef"
                                  },
                                  "asTypeSpecifier": {
                                    "type": "ListTypeSpecifier",
                                    "elementType": {
                                      "type": [
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                                          "type": "NamedTypeSpecifier"
                                        },
                                        {
                                          "name": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                          "type": "NamedTypeSpecifier"
                                        }
                                      ]
                                    }
                                  }
                                }
                              ]
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveLaboratoryTestPerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          },
                          {
                            "locator": "117:9-117:31",
                            "type": "As",
                            "operand": {
                              "localId": "146",
                              "locator": "117:9-117:31",
                              "name": "Protein Urea Lab Test",
                              "type": "ExpressionRef"
                            },
                            "asTypeSpecifier": {
                              "type": "ListTypeSpecifier",
                              "elementType": {
                                "type": [
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveLaboratoryTestPerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                                    "type": "NamedTypeSpecifier"
                                  },
                                  {
                                    "name": "{urn:healthit-gov:qdm:v5_3}PositiveProcedurePerformed",
                                    "type": "NamedTypeSpecifier"
                                  }
                                ]
                              }
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "relationship": [

                  ],
                  "where": {
                    "localId": "152",
                    "locator": "118:3-118:72",
                    "type": "IncludedIn",
                    "operand": [
                      {
                        "localId": "150",
                        "locator": "118:9-118:44",
                        "path": "relevantPeriod",
                        "scope": "NephropathyScreenings",
                        "type": "Property"
                      },
                      {
                        "localId": "151",
                        "locator": "118:53-118:72",
                        "name": "Measurement Period",
                        "type": "ParameterRef"
                      }
                    ]
                  }
                }
              },
              {
                "localId": "158",
                "locator": "102:1-105:40",
                "name": "Numerator",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "158",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Numerator\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "157",
                          "s": [
                            {
                              "r": "140",
                              "s": [
                                {
                                  "r": "137",
                                  "s": [
                                    {
                                      "value": [
                                        "exists "
                                      ]
                                    },
                                    {
                                      "r": "136",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "136",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Active ACEI or ARB Medications\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\tor "
                                  ]
                                },
                                {
                                  "r": "139",
                                  "s": [
                                    {
                                      "value": [
                                        "exists "
                                      ]
                                    },
                                    {
                                      "r": "138",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "138",
                                          "s": [
                                            {
                                              "value": [
                                                "\"Nephropathy Diagnoses\""
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " )"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\tor "
                              ]
                            },
                            {
                              "r": "156",
                              "s": [
                                {
                                  "value": [
                                    "exists "
                                  ]
                                },
                                {
                                  "r": "155",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "155",
                                      "s": [
                                        {
                                          "value": [
                                            "\"Nephropathy Screenings\""
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        " )"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "157",
                  "locator": "103:2-105:40",
                  "type": "Or",
                  "operand": [
                    {
                      "localId": "140",
                      "locator": "103:2-104:39",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "137",
                          "locator": "103:2-103:44",
                          "type": "Exists",
                          "operand": {
                            "localId": "136",
                            "locator": "103:9-103:44",
                            "name": "Active ACEI or ARB Medications",
                            "type": "ExpressionRef"
                          }
                        },
                        {
                          "localId": "139",
                          "locator": "104:6-104:39",
                          "type": "Exists",
                          "operand": {
                            "localId": "138",
                            "locator": "104:13-104:39",
                            "name": "Nephropathy Diagnoses",
                            "type": "ExpressionRef"
                          }
                        }
                      ]
                    },
                    {
                      "localId": "156",
                      "locator": "105:6-105:40",
                      "type": "Exists",
                      "operand": {
                        "localId": "155",
                        "locator": "105:13-105:40",
                        "name": "Nephropathy Screenings",
                        "type": "ExpressionRef"
                      }
                    }
                  ]
                }
              },
              {
                "localId": "161",
                "locator": "107:1-108:22",
                "name": "In Hospice",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "161",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"In Hospice\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "160",
                          "s": [
                            {
                              "r": "159",
                              "s": [
                                {
                                  "value": [
                                    "Hospice"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "."
                              ]
                            },
                            {
                              "r": "160",
                              "s": [
                                {
                                  "value": [
                                    "\"Has Hospice\""
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "160",
                  "locator": "108:2-108:22",
                  "name": "Has Hospice",
                  "libraryName": "Hospice",
                  "type": "ExpressionRef"
                }
              },
              {
                "localId": "163",
                "locator": "110:1-111:13",
                "name": "Denominator Exclusions",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "163",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Denominator Exclusions\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "162",
                          "s": [
                            {
                              "value": [
                                "\"In Hospice\""
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "162",
                  "locator": "111:2-111:13",
                  "name": "In Hospice",
                  "type": "ExpressionRef"
                }
              }
            ]
          }
        }
      },
      "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": "31"
                  }
                ],
                "ref_id": "32"
              }
            ],
            "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": "33"
                  }
                ],
                "ref_id": "34"
              }
            ],
            "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": "35"
                  }
                ],
                "ref_id": "36"
              }
            ],
            "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": "37"
                  }
                ],
                "ref_id": "38"
              }
            ],
            "define_name": "SDE Sex"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Renal Procedures\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "( "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "[\"Procedure, Performed\": "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Kidney Transplant\""
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "]"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "39"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n      union "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "[\"Procedure, Performed\": "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Vascular Access for Dialysis\""
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "]"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "40"
                              }
                            ],
                            "node_type": "Union",
                            "ref_id": "41"
                          },
                          {
                            "children": [
                              {
                                "text": "\n      union "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "[\"Procedure, Performed\": "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Dialysis Services\""
                                      }
                                    ]
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "text": "]"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Retrieve",
                            "ref_id": "42"
                          }
                        ],
                        "node_type": "Union",
                        "ref_id": "43"
                      },
                      {
                        "children": [
                          {
                            "text": "\n  )"
                          }
                        ]
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "43"
                  }
                ],
                "ref_id": "44"
              }
            ],
            "define_name": "Renal Procedures"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Renal Interventions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Intervention, Performed\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Other Services Related to Dialysis\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "45"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    union "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "[\"Intervention, Performed\": "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "\"Dialysis Education\""
                                  }
                                ]
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "]"
                              }
                            ]
                          }
                        ],
                        "node_type": "Retrieve",
                        "ref_id": "46"
                      }
                    ],
                    "node_type": "Union",
                    "ref_id": "47"
                  }
                ],
                "ref_id": "48"
              }
            ],
            "define_name": "Renal Interventions"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Qualifying Encounters\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "[\"Encounter, Performed\": "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Office Visit\""
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "]"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Retrieve",
                                                        "ref_id": "49"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n    union "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "[\"Encounter, Performed\": "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Face-to-Face Interaction\""
                                                                  }
                                                                ]
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "]"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Retrieve",
                                                        "ref_id": "50"
                                                      }
                                                    ],
                                                    "node_type": "Union",
                                                    "ref_id": "51"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n    union "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Encounter, Performed\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Preventive Care Services - Established Office Visit, 18 and Up\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "52"
                                                  }
                                                ],
                                                "node_type": "Union",
                                                "ref_id": "53"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n    union "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Encounter, Performed\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Preventive Care Services-Initial Office Visit, 18 and Up\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "54"
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "55"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n    union "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Encounter, Performed\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Home Healthcare Services\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "56"
                                          }
                                        ],
                                        "node_type": "Union",
                                        "ref_id": "57"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Encounter, Performed\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Annual Wellness Visit\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "58"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "59"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "59"
                              },
                              {
                                "children": [
                                  {
                                    "text": " ValidEncounter"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "60"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "ValidEncounter"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "61"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "62"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "62"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Measurement Period\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ParameterRef",
                                "ref_id": "63"
                              }
                            ],
                            "ref_id": "64"
                          }
                        ],
                        "ref_id": "64"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "65"
                  }
                ],
                "ref_id": "66"
              }
            ],
            "define_name": "Qualifying Encounters"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Protein Urea Lab Test\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Laboratory Test, Performed\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Urine Protein Tests\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "67"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "67"
                              },
                              {
                                "children": [
                                  {
                                    "text": " ProteinUrea"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "68"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "ProteinUrea"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "69"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "result"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "70"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "70"
                              },
                              {
                                "children": [
                                  {
                                    "text": " is not null"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "71"
                          }
                        ],
                        "ref_id": "71"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "72"
                  }
                ],
                "ref_id": "73"
              }
            ],
            "define_name": "Protein Urea Lab Test"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Nephropathy Diagnoses\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Diagnosis\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Hypertensive Chronic Kidney Disease\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "74"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n    union "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Diagnosis\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Kidney Failure\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "75"
                                                  }
                                                ],
                                                "node_type": "Union",
                                                "ref_id": "76"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n    union "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Diagnosis\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Glomerulonephritis and Nephrotic Syndrome\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "77"
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "78"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n    union "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "[\"Diagnosis\": "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Diabetic Nephropathy\""
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "]"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "79"
                                          }
                                        ],
                                        "node_type": "Union",
                                        "ref_id": "80"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Diagnosis\": "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Proteinuria\""
                                                  }
                                                ]
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "81"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "82"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "82"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NephropathyDiagnoses"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "83"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "NephropathyDiagnoses"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "84"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "prevalencePeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "85"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "85"
                              },
                              {
                                "children": [
                                  {
                                    "text": " overlaps "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Measurement Period\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ParameterRef",
                                "ref_id": "86"
                              }
                            ],
                            "ref_id": "87"
                          }
                        ],
                        "ref_id": "87"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "88"
                  }
                ],
                "ref_id": "89"
              }
            ],
            "define_name": "Nephropathy Diagnoses"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"ESRD Encounter\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "[\"Encounter, Performed\": "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"ESRD Monthly Outpatient Services\""
                              }
                            ]
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "]"
                          }
                        ]
                      }
                    ],
                    "node_type": "Retrieve",
                    "ref_id": "90"
                  }
                ],
                "ref_id": "91"
              }
            ],
            "define_name": "ESRD Encounter"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Active ACEI or ARB Medications\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "[\"Medication, Active\": "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"ACE Inhibitor or ARB\""
                                              }
                                            ]
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "92"
                                  }
                                ],
                                "node_type": "Retrieve",
                                "ref_id": "92"
                              },
                              {
                                "children": [
                                  {
                                    "text": " ACEIorARB"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "93"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "ACEIorARB"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "94"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "95"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "95"
                              },
                              {
                                "children": [
                                  {
                                    "text": " overlaps "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Measurement Period\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ParameterRef",
                                "ref_id": "96"
                              }
                            ],
                            "ref_id": "97"
                          }
                        ],
                        "ref_id": "97"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "98"
                  }
                ],
                "ref_id": "99"
              }
            ],
            "define_name": "Active ACEI or ARB Medications"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Initial Population\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "exists "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "[\"Patient Characteristic Birthdate\"]"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Retrieve",
                                        "ref_id": "100"
                                      }
                                    ],
                                    "node_type": "Retrieve",
                                    "ref_id": "100"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " BirthDate"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "101"
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "where "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "Global"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "102"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"CalendarAgeInYearsAt\"("
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "BirthDate"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "103"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "birthDatetime"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "104"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "104"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": ", "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "start of "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Measurement Period\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "ParameterRef",
                                                            "ref_id": "105"
                                                          }
                                                        ],
                                                        "node_type": "Start",
                                                        "ref_id": "106"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": ")"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "FunctionRef",
                                                    "ref_id": "107"
                                                  }
                                                ],
                                                "node_type": "FunctionRef",
                                                "ref_id": "107"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "&gt;= 18"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "GreaterOrEqual",
                                            "ref_id": "109"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n      and "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "Global"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "110"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"CalendarAgeInYearsAt\"("
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "BirthDate"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "111"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "birthDatetime"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "112"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "112"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": ", "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "start of "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Measurement Period\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "ParameterRef",
                                                            "ref_id": "113"
                                                          }
                                                        ],
                                                        "node_type": "Start",
                                                        "ref_id": "114"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": ")"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "FunctionRef",
                                                    "ref_id": "115"
                                                  }
                                                ],
                                                "node_type": "FunctionRef",
                                                "ref_id": "115"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "&lt; 75"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Less",
                                            "ref_id": "117"
                                          }
                                        ],
                                        "node_type": "And",
                                        "ref_id": "118"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n      and "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "exists "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Qualifying Encounters\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "ExpressionRef",
                                                "ref_id": "119"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "119"
                                          }
                                        ],
                                        "node_type": "Exists",
                                        "ref_id": "120"
                                      }
                                    ],
                                    "node_type": "And",
                                    "ref_id": "121"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n      and "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "exists "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "( "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "[\"Diagnosis\": "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "\"Diabetes\""
                                                                      }
                                                                    ]
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "]"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Retrieve",
                                                            "ref_id": "122"
                                                          }
                                                        ],
                                                        "node_type": "Retrieve",
                                                        "ref_id": "122"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " DiabetesDx"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "123"
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n          "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "where "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "DiabetesDx"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "124"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "."
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "prevalencePeriod"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "125"
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "125"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": " overlaps "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Measurement Period\""
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "ParameterRef",
                                                        "ref_id": "126"
                                                      }
                                                    ],
                                                    "ref_id": "127"
                                                  }
                                                ],
                                                "ref_id": "127"
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "128"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n      )"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "Query",
                                        "ref_id": "128"
                                      }
                                    ],
                                    "node_type": "Exists",
                                    "ref_id": "129"
                                  }
                                ],
                                "ref_id": "130"
                              }
                            ],
                            "ref_id": "130"
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "131"
                      }
                    ],
                    "node_type": "Exists",
                    "ref_id": "132"
                  }
                ],
                "ref_id": "133"
              }
            ],
            "define_name": "Initial Population"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Initial Population\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "134"
                  }
                ],
                "ref_id": "135"
              }
            ],
            "define_name": "Denominator"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Nephropathy Screenings\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Renal Procedures\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "ExpressionRef",
                                                "ref_id": "141"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n    union "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Renal Interventions\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "ExpressionRef",
                                                "ref_id": "142"
                                              }
                                            ],
                                            "node_type": "Union",
                                            "ref_id": "143"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": "\n    union "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"ESRD Encounter\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ExpressionRef",
                                            "ref_id": "144"
                                          }
                                        ],
                                        "node_type": "Union",
                                        "ref_id": "145"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n    union "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "\"Protein Urea Lab Test\""
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "ExpressionRef",
                                        "ref_id": "146"
                                      }
                                    ],
                                    "node_type": "Union",
                                    "ref_id": "147"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Union",
                                "ref_id": "147"
                              },
                              {
                                "children": [
                                  {
                                    "text": " NephropathyScreenings"
                                  }
                                ]
                              }
                            ],
                            "ref_id": "148"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "text": "\n    "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "where "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "NephropathyScreenings"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "149"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "."
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "relevantPeriod"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "Property",
                                    "ref_id": "150"
                                  }
                                ],
                                "node_type": "Property",
                                "ref_id": "150"
                              },
                              {
                                "children": [
                                  {
                                    "text": " during "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Measurement Period\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ParameterRef",
                                "ref_id": "151"
                              }
                            ],
                            "ref_id": "152"
                          }
                        ],
                        "ref_id": "152"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "153"
                  }
                ],
                "ref_id": "154"
              }
            ],
            "define_name": "Nephropathy Screenings"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Numerator\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "exists "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Active ACEI or ARB Medications\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "136"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "136"
                              }
                            ],
                            "node_type": "Exists",
                            "ref_id": "137"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    or "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "exists "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "\"Nephropathy Diagnoses\""
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "ExpressionRef",
                                    "ref_id": "138"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "138"
                              }
                            ],
                            "node_type": "Exists",
                            "ref_id": "139"
                          }
                        ],
                        "node_type": "Or",
                        "ref_id": "140"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    or "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "exists "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "\"Nephropathy Screenings\""
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "ExpressionRef",
                                "ref_id": "155"
                              },
                              {
                                "children": [
                                  {
                                    "text": " )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "ExpressionRef",
                            "ref_id": "155"
                          }
                        ],
                        "node_type": "Exists",
                        "ref_id": "156"
                      }
                    ],
                    "node_type": "Or",
                    "ref_id": "157"
                  }
                ],
                "ref_id": "158"
              }
            ],
            "define_name": "Numerator"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"In Hospice\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "Hospice"
                              }
                            ]
                          }
                        ],
                        "ref_id": "159"
                      },
                      {
                        "children": [
                          {
                            "text": "."
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "\"Has Hospice\""
                              }
                            ]
                          }
                        ],
                        "node_type": "ExpressionRef",
                        "ref_id": "160"
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "160"
                  }
                ],
                "ref_id": "161"
              }
            ],
            "define_name": "In Hospice"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Denominator Exclusions\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"In Hospice\""
                          }
                        ]
                      }
                    ],
                    "node_type": "ExpressionRef",
                    "ref_id": "162"
                  }
                ],
                "ref_id": "163"
              }
            ],
            "define_name": "Denominator Exclusions"
          }
        ],
        "identifier": {
          "id": "DiabetesMedicalAttentionforNephropathy",
          "version": "6.1.003"
        }
      },
      "is_main_library": true,
      "is_top_level": true,
      "library_name": "DiabetesMedicalAttentionforNephropathy",
      "library_version": "6.1.003",
      "statement_dependencies": [
        {
          "statement_name": "Patient"
        },
        {
          "statement_name": "SDE Ethnicity"
        },
        {
          "statement_name": "SDE Payer"
        },
        {
          "statement_name": "SDE Race"
        },
        {
          "statement_name": "SDE Sex"
        },
        {
          "statement_name": "Renal Procedures"
        },
        {
          "statement_name": "Renal Interventions"
        },
        {
          "statement_name": "Qualifying Encounters"
        },
        {
          "statement_name": "Protein Urea Lab Test"
        },
        {
          "statement_name": "Nephropathy Diagnoses"
        },
        {
          "statement_name": "ESRD Encounter"
        },
        {
          "statement_name": "Active ACEI or ARB Medications"
        },
        {
          "statement_name": "Initial Population",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "CalendarAgeInYearsAt"
            },
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "CalendarAgeInYearsAt"
            },
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Qualifying Encounters"
            }
          ]
        },
        {
          "statement_name": "Denominator",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Initial Population"
            }
          ]
        },
        {
          "statement_name": "Nephropathy Screenings",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Renal Procedures"
            },
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Renal Interventions"
            },
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "ESRD Encounter"
            },
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Protein Urea Lab Test"
            }
          ]
        },
        {
          "statement_name": "Numerator",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Active ACEI or ARB Medications"
            },
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Nephropathy Diagnoses"
            },
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "Nephropathy Screenings"
            }
          ]
        },
        {
          "statement_name": "In Hospice",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "Hospice",
              "statement_name": "Has Hospice"
            }
          ]
        },
        {
          "statement_name": "Denominator Exclusions",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "DiabetesMedicalAttentionforNephropathy",
              "statement_name": "In Hospice"
            }
          ]
        }
      ]
    },
    {
      "cql": "library MATGlobalCommonFunctions version '1.0.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ncodesystem \"LOINC:2.46\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\r\ncodesystem \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\r\n\r\nvalueset \"Emergency Department Visit\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.292'\r\n\r\ncode \"Birthdate\": '21112-8' from \"LOINC:2.46\" display 'Birth date'\r\ncode \"Dead\": '419099009' from \"SNOMEDCT:2016-03\" display 'Dead'\r\n\r\nparameter \"Measurement Period\" Interval<DateTime>\r\n\r\ncontext Patient\n\n/*ToDate takes a given DateTime value and returns a DateTime with the time components \"zeroed\", and the timezone of the input value, for example, given the DateTime @2012-01-01T06:30:00.0Z, this function will return @2012-01-01T00:00:00.0Z.*/\r\n\r\ndefine function \"ToDate\"(Value DateTime):\r\n\tDateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezone from Value)\n\n/*CalendarAgeInDaysAt calculates the calendar age (meaning the age without considering time components) in days.*/\r\n\r\ndefine function \"CalendarAgeInDaysAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tdays between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInDays calculates the calendar age (meaning the age without considering time components) in days as of today*/\r\n\r\ndefine function \"CalendarAgeInDays\"(BirthDateTime DateTime):\r\n\tCalendarAgeInDaysAt(BirthDateTime, Today())\n\n/*CalendarAgeInMonthsAt calculates the calendar age (meaning the age without considering time components) in months.*/\r\n\r\ndefine function \"CalendarAgeInMonthsAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tmonths between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInMonths calculates the calendar age (meaning the age without considering time components) in months as of today.*/\r\n\r\ndefine function \"CalendarAgeInMonths\"(BirthDateTime DateTime):\r\n\tCalendarAgeInMonthsAt(BirthDateTime, Today())\n\n/*CalendarAgeInYearsAt calculates the calendar age (meaning the age without considering time components) in years.*/\r\n\r\ndefine function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\r\n\tyears between ToDate(BirthDateTime)and ToDate(AsOf)\n\n/*CalendarAgeInYears calculates the calendar age (meaning the age without considering time components) in years as of today.*/\r\n\r\ndefine function \"CalendarAgeInYears\"(BirthDateTime DateTime):\r\n\tCalendarAgeInYearsAt(BirthDateTime, Today())\n\n/*Hospitalization returns the total interval for admission to discharge for the given encounter, or for the admission of any immediately prior emergency department visit to the discharge of the given encounter.*/\r\n\r\ndefine function \"Hospitalization\"(Encounter \"Encounter, Performed\"):\r\n\t( singleton from ( [\"Encounter, Performed\": \"Emergency Department Visit\"] EDVisit\r\n\t\t\twhere EDVisit.relevantPeriod ends 1 hour or less on or before start of Encounter.relevantPeriod\r\n\t) ) X\r\n\t\treturn if X is null then Encounter.relevantPeriod else Interval[start of X.relevantPeriod, end of Encounter.relevantPeriod]\n\n/*calculates the difference in calendar days between the start and end of the given interval.*/\r\n\r\ndefine function \"LengthInDays\"(Value Interval<DateTime>):\r\n\tdifference in days between start of Value and end of Value\n\n/*TotalLengthOfStay calculates the difference in calendar days between the start and end of the given stay interval.*/\r\n\r\ndefine function \"TotalLengthOfStay\"(Stay Interval<DateTime>):\r\n\tdifference in days between start of Stay and end of Stay\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "MATGlobalCommonFunctions",
            "version": "1.0.000"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "3:1-3:23",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_3",
                "version": "5.3"
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "11",
                "locator": "13:1-13:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "10",
                  "locator": "13:32-13:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "9",
                    "locator": "13:41-13:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "2",
                "locator": "5:1-5:87",
                "name": "LOINC:2.46",
                "id": "2.16.840.1.113883.6.1",
                "version": "urn:hl7:version:2.46",
                "accessLevel": "Public"
              },
              {
                "localId": "3",
                "locator": "6:1-6:97",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2016-03",
                "accessLevel": "Public"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "4",
                "locator": "8:1-8:82",
                "name": "Emergency Department Visit",
                "id": "2.16.840.1.113883.3.117.1.7.1.292",
                "accessLevel": "Public"
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "6",
                "locator": "10:1-10:66",
                "name": "Birthdate",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "5",
                  "locator": "10:34-10:45",
                  "name": "LOINC:2.46"
                }
              },
              {
                "localId": "8",
                "locator": "11:1-11:63",
                "name": "Dead",
                "id": "419099009",
                "display": "Dead",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "7",
                  "locator": "11:31-11:48",
                  "name": "SNOMEDCT:2016-03"
                }
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "15:1-15:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "15:1-15:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "26",
                "locator": "18:1-19:93",
                "name": "ToDate",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "26",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"ToDate\"",
                            "(",
                            "Value",
                            " "
                          ]
                        },
                        {
                          "r": "12",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "25",
                          "s": [
                            {
                              "r": "25",
                              "s": [
                                {
                                  "value": [
                                    "DateTime",
                                    "("
                                  ]
                                },
                                {
                                  "r": "14",
                                  "s": [
                                    {
                                      "value": [
                                        "year from "
                                      ]
                                    },
                                    {
                                      "r": "13",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "16",
                                  "s": [
                                    {
                                      "value": [
                                        "month from "
                                      ]
                                    },
                                    {
                                      "r": "15",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "18",
                                  "s": [
                                    {
                                      "value": [
                                        "day from "
                                      ]
                                    },
                                    {
                                      "r": "17",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", ",
                                    "0",
                                    ", "
                                  ]
                                },
                                {
                                  "r": "24",
                                  "s": [
                                    {
                                      "value": [
                                        "timezone from "
                                      ]
                                    },
                                    {
                                      "r": "23",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "25",
                  "locator": "19:2-19:93",
                  "type": "DateTime",
                  "year": {
                    "localId": "14",
                    "locator": "19:11-19:25",
                    "precision": "Year",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "13",
                      "locator": "19:21-19:25",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "month": {
                    "localId": "16",
                    "locator": "19:28-19:43",
                    "precision": "Month",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "15",
                      "locator": "19:39-19:43",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "day": {
                    "localId": "18",
                    "locator": "19:46-19:59",
                    "precision": "Day",
                    "type": "DateTimeComponentFrom",
                    "operand": {
                      "localId": "17",
                      "locator": "19:55-19:59",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  },
                  "hour": {
                    "localId": "19",
                    "locator": "19:62",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "minute": {
                    "localId": "20",
                    "locator": "19:65",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "second": {
                    "localId": "21",
                    "locator": "19:68",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "millisecond": {
                    "localId": "22",
                    "locator": "19:71",
                    "valueType": "{urn:hl7-org:elm-types:r1}Integer",
                    "value": "0",
                    "type": "Literal"
                  },
                  "timezoneOffset": {
                    "localId": "24",
                    "locator": "19:74-19:92",
                    "type": "TimezoneFrom",
                    "operand": {
                      "localId": "23",
                      "locator": "19:88-19:92",
                      "name": "Value",
                      "type": "OperandRef"
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "12",
                      "locator": "18:32-18:39",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "34",
                "locator": "22:1-23:51",
                "name": "CalendarAgeInDaysAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "34",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInDaysAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "27",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "28",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "33",
                          "s": [
                            {
                              "r": "33",
                              "s": [
                                {
                                  "value": [
                                    "days between "
                                  ]
                                },
                                {
                                  "r": "30",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "29",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "and "
                                  ]
                                },
                                {
                                  "r": "32",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "31",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "33",
                  "locator": "23:2-23:51",
                  "precision": "Day",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "30",
                      "locator": "23:15-23:35",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "29",
                          "locator": "23:22-23:34",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "32",
                      "locator": "23:40-23:51",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "31",
                          "locator": "23:47-23:50",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "27",
                      "locator": "22:53-22:60",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "28",
                      "locator": "22:68-22:75",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "39",
                "locator": "26:1-27:44",
                "name": "CalendarAgeInDays",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "39",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInDays\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "35",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "38",
                          "s": [
                            {
                              "r": "38",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInDaysAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "36",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "37",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "38",
                  "locator": "27:2-27:44",
                  "name": "CalendarAgeInDaysAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "36",
                      "locator": "27:22-27:34",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "37",
                      "locator": "27:37-27:43",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "35",
                      "locator": "26:51-26:58",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "47",
                "locator": "30:1-31:53",
                "name": "CalendarAgeInMonthsAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "47",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInMonthsAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "40",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "41",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "46",
                          "s": [
                            {
                              "r": "46",
                              "s": [
                                {
                                  "value": [
                                    "months between "
                                  ]
                                },
                                {
                                  "r": "43",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "42",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "and "
                                  ]
                                },
                                {
                                  "r": "45",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "44",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "46",
                  "locator": "31:2-31:53",
                  "precision": "Month",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "43",
                      "locator": "31:17-31:37",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "42",
                          "locator": "31:24-31:36",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "45",
                      "locator": "31:42-31:53",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "44",
                          "locator": "31:49-31:52",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "40",
                      "locator": "30:55-30:62",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "41",
                      "locator": "30:70-30:77",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "52",
                "locator": "34:1-35:46",
                "name": "CalendarAgeInMonths",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "52",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInMonths\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "48",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "51",
                          "s": [
                            {
                              "r": "51",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInMonthsAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "49",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "50",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "51",
                  "locator": "35:2-35:46",
                  "name": "CalendarAgeInMonthsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "49",
                      "locator": "35:24-35:36",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "50",
                      "locator": "35:39-35:45",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "48",
                      "locator": "34:53-34:60",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "60",
                "locator": "38:1-39:52",
                "name": "CalendarAgeInYearsAt",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "60",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInYearsAt\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "53",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            ", ",
                            "AsOf",
                            " "
                          ]
                        },
                        {
                          "r": "54",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "59",
                          "s": [
                            {
                              "r": "59",
                              "s": [
                                {
                                  "value": [
                                    "years between "
                                  ]
                                },
                                {
                                  "r": "56",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "55",
                                      "s": [
                                        {
                                          "value": [
                                            "BirthDateTime"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "and "
                                  ]
                                },
                                {
                                  "r": "58",
                                  "s": [
                                    {
                                      "value": [
                                        "ToDate",
                                        "("
                                      ]
                                    },
                                    {
                                      "r": "57",
                                      "s": [
                                        {
                                          "value": [
                                            "AsOf"
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        ")"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "59",
                  "locator": "39:2-39:52",
                  "precision": "Year",
                  "type": "DurationBetween",
                  "operand": [
                    {
                      "localId": "56",
                      "locator": "39:16-39:36",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "55",
                          "locator": "39:23-39:35",
                          "name": "BirthDateTime",
                          "type": "OperandRef"
                        }
                      ]
                    },
                    {
                      "localId": "58",
                      "locator": "39:41-39:52",
                      "name": "ToDate",
                      "type": "FunctionRef",
                      "operand": [
                        {
                          "localId": "57",
                          "locator": "39:48-39:51",
                          "name": "AsOf",
                          "type": "OperandRef"
                        }
                      ]
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "53",
                      "locator": "38:54-38:61",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  },
                  {
                    "name": "AsOf",
                    "operandTypeSpecifier": {
                      "localId": "54",
                      "locator": "38:69-38:76",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "65",
                "locator": "42:1-43:45",
                "name": "CalendarAgeInYears",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "65",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"CalendarAgeInYears\"",
                            "(",
                            "BirthDateTime",
                            " "
                          ]
                        },
                        {
                          "r": "61",
                          "s": [
                            {
                              "value": [
                                "DateTime"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "64",
                          "s": [
                            {
                              "r": "64",
                              "s": [
                                {
                                  "value": [
                                    "CalendarAgeInYearsAt",
                                    "("
                                  ]
                                },
                                {
                                  "r": "62",
                                  "s": [
                                    {
                                      "value": [
                                        "BirthDateTime"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ", "
                                  ]
                                },
                                {
                                  "r": "63",
                                  "s": [
                                    {
                                      "value": [
                                        "Today",
                                        "()"
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    ")"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "64",
                  "locator": "43:2-43:45",
                  "name": "CalendarAgeInYearsAt",
                  "type": "FunctionRef",
                  "operand": [
                    {
                      "localId": "62",
                      "locator": "43:23-43:35",
                      "name": "BirthDateTime",
                      "type": "OperandRef"
                    },
                    {
                      "localId": "63",
                      "locator": "43:38-43:44",
                      "type": "Today"
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "BirthDateTime",
                    "operandTypeSpecifier": {
                      "localId": "61",
                      "locator": "42:52-42:59",
                      "name": "{urn:hl7-org:elm-types:r1}DateTime",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "93",
                "locator": "46:1-50:125",
                "name": "Hospitalization",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "93",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"Hospitalization\"",
                            "(",
                            "Encounter",
                            " "
                          ]
                        },
                        {
                          "r": "66",
                          "s": [
                            {
                              "value": [
                                "\"Encounter, Performed\""
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "92",
                          "s": [
                            {
                              "r": "92",
                              "s": [
                                {
                                  "s": [
                                    {
                                      "r": "78",
                                      "s": [
                                        {
                                          "r": "77",
                                          "s": [
                                            {
                                              "value": [
                                                "( "
                                              ]
                                            },
                                            {
                                              "r": "77",
                                              "s": [
                                                {
                                                  "value": [
                                                    "singleton from "
                                                  ]
                                                },
                                                {
                                                  "r": "76",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "( "
                                                      ]
                                                    },
                                                    {
                                                      "r": "76",
                                                      "s": [
                                                        {
                                                          "s": [
                                                            {
                                                              "r": "68",
                                                              "s": [
                                                                {
                                                                  "r": "67",
                                                                  "s": [
                                                                    {
                                                                      "r": "67",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "[",
                                                                            "\"Encounter, Performed\"",
                                                                            ": "
                                                                          ]
                                                                        },
                                                                        {
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "\"Emergency Department Visit\""
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "]"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "EDVisit"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n\t\t\t"
                                                          ]
                                                        },
                                                        {
                                                          "r": "75",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "where "
                                                              ]
                                                            },
                                                            {
                                                              "r": "75",
                                                              "s": [
                                                                {
                                                                  "r": "70",
                                                                  "s": [
                                                                    {
                                                                      "r": "69",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "EDVisit"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        "."
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "70",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "relevantPeriod"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "75",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "ends "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "74",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "1 ",
                                                                            "hour"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " or less on or before"
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "73",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "start of "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "72",
                                                                      "s": [
                                                                        {
                                                                          "r": "71",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "Encounter"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "72",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "relevantPeriod"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t)"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " )"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " ",
                                            "X"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\t"
                                  ]
                                },
                                {
                                  "r": "91",
                                  "s": [
                                    {
                                      "value": [
                                        "return "
                                      ]
                                    },
                                    {
                                      "r": "90",
                                      "s": [
                                        {
                                          "value": [
                                            "if "
                                          ]
                                        },
                                        {
                                          "r": "80",
                                          "s": [
                                            {
                                              "r": "79",
                                              "s": [
                                                {
                                                  "value": [
                                                    "X"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                " is null"
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " then "
                                          ]
                                        },
                                        {
                                          "r": "82",
                                          "s": [
                                            {
                                              "r": "81",
                                              "s": [
                                                {
                                                  "value": [
                                                    "Encounter"
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "."
                                              ]
                                            },
                                            {
                                              "r": "82",
                                              "s": [
                                                {
                                                  "value": [
                                                    "relevantPeriod"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            " else "
                                          ]
                                        },
                                        {
                                          "r": "89",
                                          "s": [
                                            {
                                              "value": [
                                                "Interval["
                                              ]
                                            },
                                            {
                                              "r": "85",
                                              "s": [
                                                {
                                                  "value": [
                                                    "start of "
                                                  ]
                                                },
                                                {
                                                  "r": "84",
                                                  "s": [
                                                    {
                                                      "r": "83",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "X"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "84",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                ", "
                                              ]
                                            },
                                            {
                                              "r": "88",
                                              "s": [
                                                {
                                                  "value": [
                                                    "end of "
                                                  ]
                                                },
                                                {
                                                  "r": "87",
                                                  "s": [
                                                    {
                                                      "r": "86",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "Encounter"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "87",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "]"
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "92",
                  "locator": "47:2-50:125",
                  "type": "Query",
                  "source": [
                    {
                      "localId": "78",
                      "locator": "47:2-49:6",
                      "alias": "X",
                      "expression": {
                        "localId": "77",
                        "locator": "47:2-49:4",
                        "type": "SingletonFrom",
                        "operand": {
                          "localId": "76",
                          "locator": "47:19-49:2",
                          "type": "Query",
                          "source": [
                            {
                              "localId": "68",
                              "locator": "47:21-47:82",
                              "alias": "EDVisit",
                              "expression": {
                                "localId": "67",
                                "locator": "47:21-47:74",
                                "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                "templateId": "PositiveEncounterPerformed",
                                "codeProperty": "code",
                                "type": "Retrieve",
                                "codes": {
                                  "name": "Emergency Department Visit",
                                  "type": "ValueSetRef"
                                }
                              }
                            }
                          ],
                          "relationship": [

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

                  ],
                  "return": {
                    "localId": "91",
                    "locator": "50:3-50:125",
                    "expression": {
                      "localId": "90",
                      "locator": "50:10-50:125",
                      "type": "If",
                      "condition": {
                        "asType": "{urn:hl7-org:elm-types:r1}Boolean",
                        "type": "As",
                        "operand": {
                          "localId": "80",
                          "locator": "50:13-50:21",
                          "type": "IsNull",
                          "operand": {
                            "localId": "79",
                            "locator": "50:13",
                            "name": "X",
                            "type": "AliasRef"
                          }
                        },
                        "asTypeSpecifier": {
                          "name": "{urn:hl7-org:elm-types:r1}Boolean",
                          "type": "NamedTypeSpecifier"
                        }
                      },
                      "then": {
                        "localId": "82",
                        "locator": "50:28-50:51",
                        "path": "relevantPeriod",
                        "type": "Property",
                        "source": {
                          "localId": "81",
                          "locator": "50:28-50:36",
                          "name": "Encounter",
                          "type": "OperandRef"
                        }
                      },
                      "else": {
                        "localId": "89",
                        "locator": "50:58-50:125",
                        "lowClosed": true,
                        "highClosed": true,
                        "type": "Interval",
                        "low": {
                          "localId": "85",
                          "locator": "50:67-50:91",
                          "type": "Start",
                          "operand": {
                            "localId": "84",
                            "locator": "50:76-50:91",
                            "path": "relevantPeriod",
                            "scope": "X",
                            "type": "Property"
                          }
                        },
                        "high": {
                          "localId": "88",
                          "locator": "50:94-50:124",
                          "type": "End",
                          "operand": {
                            "localId": "87",
                            "locator": "50:101-50:124",
                            "path": "relevantPeriod",
                            "type": "Property",
                            "source": {
                              "localId": "86",
                              "locator": "50:101-50:109",
                              "name": "Encounter",
                              "type": "OperandRef"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "operand": [
                  {
                    "name": "Encounter",
                    "operandTypeSpecifier": {
                      "localId": "66",
                      "locator": "46:45-46:66",
                      "name": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                      "type": "NamedTypeSpecifier"
                    }
                  }
                ]
              },
              {
                "localId": "101",
                "locator": "53:1-54:59",
                "name": "LengthInDays",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "101",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"LengthInDays\"",
                            "(",
                            "Value",
                            " "
                          ]
                        },
                        {
                          "r": "95",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "94",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "100",
                          "s": [
                            {
                              "r": "100",
                              "s": [
                                {
                                  "value": [
                                    "difference in days between "
                                  ]
                                },
                                {
                                  "r": "97",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "96",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "99",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "98",
                                      "s": [
                                        {
                                          "value": [
                                            "Value"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "100",
                  "locator": "54:2-54:59",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "97",
                      "locator": "54:29-54:42",
                      "type": "Start",
                      "operand": {
                        "localId": "96",
                        "locator": "54:38-54:42",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "99",
                      "locator": "54:48-54:59",
                      "type": "End",
                      "operand": {
                        "localId": "98",
                        "locator": "54:55-54:59",
                        "name": "Value",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Value",
                    "operandTypeSpecifier": {
                      "localId": "95",
                      "locator": "53:38-53:55",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "94",
                        "locator": "53:47-53:54",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              },
              {
                "localId": "109",
                "locator": "57:1-58:57",
                "name": "TotalLengthOfStay",
                "context": "Patient",
                "accessLevel": "Public",
                "type": "FunctionDef",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "109",
                      "s": [
                        {
                          "value": [
                            "define function ",
                            "\"TotalLengthOfStay\"",
                            "(",
                            "Stay",
                            " "
                          ]
                        },
                        {
                          "r": "103",
                          "s": [
                            {
                              "value": [
                                "Interval<"
                              ]
                            },
                            {
                              "r": "102",
                              "s": [
                                {
                                  "value": [
                                    "DateTime"
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                ">"
                              ]
                            }
                          ]
                        },
                        {
                          "value": [
                            " ):\n\t"
                          ]
                        },
                        {
                          "r": "108",
                          "s": [
                            {
                              "r": "108",
                              "s": [
                                {
                                  "value": [
                                    "difference in days between "
                                  ]
                                },
                                {
                                  "r": "105",
                                  "s": [
                                    {
                                      "value": [
                                        "start of "
                                      ]
                                    },
                                    {
                                      "r": "104",
                                      "s": [
                                        {
                                          "value": [
                                            "Stay"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    " and "
                                  ]
                                },
                                {
                                  "r": "107",
                                  "s": [
                                    {
                                      "value": [
                                        "end of "
                                      ]
                                    },
                                    {
                                      "r": "106",
                                      "s": [
                                        {
                                          "value": [
                                            "Stay"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "108",
                  "locator": "58:2-58:57",
                  "precision": "Day",
                  "type": "DifferenceBetween",
                  "operand": [
                    {
                      "localId": "105",
                      "locator": "58:29-58:41",
                      "type": "Start",
                      "operand": {
                        "localId": "104",
                        "locator": "58:38-58:41",
                        "name": "Stay",
                        "type": "OperandRef"
                      }
                    },
                    {
                      "localId": "107",
                      "locator": "58:47-58:57",
                      "type": "End",
                      "operand": {
                        "localId": "106",
                        "locator": "58:54-58:57",
                        "name": "Stay",
                        "type": "OperandRef"
                      }
                    }
                  ]
                },
                "operand": [
                  {
                    "name": "Stay",
                    "operandTypeSpecifier": {
                      "localId": "103",
                      "locator": "57:42-57:59",
                      "type": "IntervalTypeSpecifier",
                      "pointType": {
                        "localId": "102",
                        "locator": "57:51-57:58",
                        "name": "{urn:hl7-org:elm-types:r1}DateTime",
                        "type": "NamedTypeSpecifier"
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"ToDate\"(Value "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "12"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "DateTime("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "year from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "13"
                              }
                            ],
                            "ref_id": "14"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "month from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "15"
                              }
                            ],
                            "ref_id": "16"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "day from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "17"
                              }
                            ],
                            "ref_id": "18"
                          },
                          {
                            "children": [
                              {
                                "text": ", 0, 0, 0, 0, "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "timezone from "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "23"
                              }
                            ],
                            "ref_id": "24"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "DateTime",
                        "ref_id": "25"
                      }
                    ],
                    "node_type": "DateTime",
                    "ref_id": "25"
                  }
                ],
                "ref_id": "26"
              }
            ],
            "define_name": "ToDate"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInDaysAt\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "27"
                  },
                  {
                    "children": [
                      {
                        "text": ", AsOf "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "28"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "days between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "BirthDateTime"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "29"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "30"
                          },
                          {
                            "children": [
                              {
                                "text": "and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "AsOf"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "31"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "32"
                          }
                        ],
                        "node_type": "DurationBetween",
                        "ref_id": "33"
                      }
                    ],
                    "node_type": "DurationBetween",
                    "ref_id": "33"
                  }
                ],
                "ref_id": "34"
              }
            ],
            "define_name": "CalendarAgeInDaysAt"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInDays\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "35"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "CalendarAgeInDaysAt("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "BirthDateTime"
                                  }
                                ]
                              }
                            ],
                            "node_type": "OperandRef",
                            "ref_id": "36"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "Today()"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Today",
                            "ref_id": "37"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "FunctionRef",
                        "ref_id": "38"
                      }
                    ],
                    "node_type": "FunctionRef",
                    "ref_id": "38"
                  }
                ],
                "ref_id": "39"
              }
            ],
            "define_name": "CalendarAgeInDays"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInMonthsAt\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "40"
                  },
                  {
                    "children": [
                      {
                        "text": ", AsOf "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "41"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "months between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "BirthDateTime"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "42"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "43"
                          },
                          {
                            "children": [
                              {
                                "text": "and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "AsOf"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "44"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "45"
                          }
                        ],
                        "node_type": "DurationBetween",
                        "ref_id": "46"
                      }
                    ],
                    "node_type": "DurationBetween",
                    "ref_id": "46"
                  }
                ],
                "ref_id": "47"
              }
            ],
            "define_name": "CalendarAgeInMonthsAt"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInMonths\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "48"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "CalendarAgeInMonthsAt("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "BirthDateTime"
                                  }
                                ]
                              }
                            ],
                            "node_type": "OperandRef",
                            "ref_id": "49"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "Today()"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Today",
                            "ref_id": "50"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "FunctionRef",
                        "ref_id": "51"
                      }
                    ],
                    "node_type": "FunctionRef",
                    "ref_id": "51"
                  }
                ],
                "ref_id": "52"
              }
            ],
            "define_name": "CalendarAgeInMonths"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInYearsAt\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "53"
                  },
                  {
                    "children": [
                      {
                        "text": ", AsOf "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "54"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "years between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "BirthDateTime"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "55"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "56"
                          },
                          {
                            "children": [
                              {
                                "text": "and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "ToDate("
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "AsOf"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "57"
                              },
                              {
                                "children": [
                                  {
                                    "text": ")"
                                  }
                                ]
                              }
                            ],
                            "node_type": "FunctionRef",
                            "ref_id": "58"
                          }
                        ],
                        "node_type": "DurationBetween",
                        "ref_id": "59"
                      }
                    ],
                    "node_type": "DurationBetween",
                    "ref_id": "59"
                  }
                ],
                "ref_id": "60"
              }
            ],
            "define_name": "CalendarAgeInYearsAt"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"CalendarAgeInYears\"(BirthDateTime "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "DateTime"
                          }
                        ]
                      }
                    ],
                    "ref_id": "61"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "CalendarAgeInYearsAt("
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "BirthDateTime"
                                  }
                                ]
                              }
                            ],
                            "node_type": "OperandRef",
                            "ref_id": "62"
                          },
                          {
                            "children": [
                              {
                                "text": ", "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "Today()"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Today",
                            "ref_id": "63"
                          },
                          {
                            "children": [
                              {
                                "text": ")"
                              }
                            ]
                          }
                        ],
                        "node_type": "FunctionRef",
                        "ref_id": "64"
                      }
                    ],
                    "node_type": "FunctionRef",
                    "ref_id": "64"
                  }
                ],
                "ref_id": "65"
              }
            ],
            "define_name": "CalendarAgeInYears"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"Hospitalization\"(Encounter "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "\"Encounter, Performed\""
                          }
                        ]
                      }
                    ],
                    "ref_id": "66"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "( "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "singleton from "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "( "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "[\"Encounter, Performed\": "
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "\"Emergency Department Visit\""
                                                                          }
                                                                        ]
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "]"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Retrieve",
                                                                "ref_id": "67"
                                                              }
                                                            ],
                                                            "node_type": "Retrieve",
                                                            "ref_id": "67"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " EDVisit"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "68"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n      "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "where "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "EDVisit"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "69"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "."
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "relevantPeriod"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "70"
                                                              }
                                                            ],
                                                            "node_type": "Property",
                                                            "ref_id": "70"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "ends "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "1 hour"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "node_type": "Quantity",
                                                                "ref_id": "74"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " or less on or before"
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "ref_id": "75"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "start of "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "Encounter"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "71"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "relevantPeriod"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "72"
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "72"
                                                              }
                                                            ],
                                                            "node_type": "Start",
                                                            "ref_id": "73"
                                                          }
                                                        ],
                                                        "ref_id": "75"
                                                      }
                                                    ],
                                                    "ref_id": "75"
                                                  }
                                                ],
                                                "node_type": "Query",
                                                "ref_id": "76"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n  )"
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "Query",
                                            "ref_id": "76"
                                          }
                                        ],
                                        "node_type": "SingletonFrom",
                                        "ref_id": "77"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " )"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "SingletonFrom",
                                    "ref_id": "77"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " X"
                                      }
                                    ]
                                  }
                                ],
                                "ref_id": "78"
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "text": "\n    "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "return "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "if "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "X"
                                              }
                                            ]
                                          }
                                        ],
                                        "node_type": "AliasRef",
                                        "ref_id": "79"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": " is null"
                                          }
                                        ]
                                      }
                                    ],
                                    "node_type": "IsNull",
                                    "ref_id": "80"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " then "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "Encounter"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "81"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "."
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "relevantPeriod"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "82"
                                      }
                                    ],
                                    "ref_id": "82"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": " else "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "Interval["
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "start of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "X"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "83"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "84"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "84"
                                          }
                                        ],
                                        "ref_id": "85"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": ", "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "end of "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "Encounter"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "86"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "87"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "87"
                                          }
                                        ],
                                        "ref_id": "88"
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "]"
                                          }
                                        ]
                                      }
                                    ],
                                    "ref_id": "89"
                                  }
                                ],
                                "node_type": "If",
                                "ref_id": "90"
                              }
                            ],
                            "ref_id": "91"
                          }
                        ],
                        "node_type": "Query",
                        "ref_id": "92"
                      }
                    ],
                    "node_type": "Query",
                    "ref_id": "92"
                  }
                ],
                "ref_id": "93"
              }
            ],
            "define_name": "Hospitalization"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"LengthInDays\"(Value "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "Interval&lt;"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "DateTime"
                              }
                            ]
                          }
                        ],
                        "ref_id": "94"
                      },
                      {
                        "children": [
                          {
                            "text": "&gt;"
                          }
                        ]
                      }
                    ],
                    "ref_id": "95"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "difference in days between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "start of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "96"
                              }
                            ],
                            "node_type": "Start",
                            "ref_id": "97"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "end of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Value"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "98"
                              }
                            ],
                            "node_type": "End",
                            "ref_id": "99"
                          }
                        ],
                        "node_type": "DifferenceBetween",
                        "ref_id": "100"
                      }
                    ],
                    "node_type": "DifferenceBetween",
                    "ref_id": "100"
                  }
                ],
                "ref_id": "101"
              }
            ],
            "define_name": "LengthInDays"
          },
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define function \"TotalLengthOfStay\"(Stay "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "text": "Interval&lt;"
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "DateTime"
                              }
                            ]
                          }
                        ],
                        "ref_id": "102"
                      },
                      {
                        "children": [
                          {
                            "text": "&gt;"
                          }
                        ]
                      }
                    ],
                    "ref_id": "103"
                  },
                  {
                    "children": [
                      {
                        "text": " ):\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "difference in days between "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "start of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Stay"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "104"
                              }
                            ],
                            "node_type": "Start",
                            "ref_id": "105"
                          },
                          {
                            "children": [
                              {
                                "text": " and "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "end of "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "Stay"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "OperandRef",
                                "ref_id": "106"
                              }
                            ],
                            "node_type": "End",
                            "ref_id": "107"
                          }
                        ],
                        "node_type": "DifferenceBetween",
                        "ref_id": "108"
                      }
                    ],
                    "node_type": "DifferenceBetween",
                    "ref_id": "108"
                  }
                ],
                "ref_id": "109"
              }
            ],
            "define_name": "TotalLengthOfStay"
          }
        ],
        "identifier": {
          "id": "MATGlobalCommonFunctions",
          "version": "1.0.000"
        }
      },
      "is_main_library": false,
      "is_top_level": true,
      "library_name": "MATGlobalCommonFunctions",
      "library_version": "1.0.000",
      "statement_dependencies": [
        {
          "statement_name": "CalendarAgeInYearsAt",
          "statement_references": [
            {
              "hqmf_id": null,
              "library_name": "MATGlobalCommonFunctions",
              "statement_name": "ToDate"
            }
          ]
        },
        {
          "statement_name": "ToDate"
        }
      ]
    },
    {
      "cql": "library Hospice version '0.1.000'\r\n\r\nusing QDM version '5.3'\r\n\r\ncodesystem \"LOINC:2.46\": 'urn:oid:2.16.840.1.113883.6.1' version 'urn:hl7:version:2.46'\r\ncodesystem \"SNOMEDCT:2016-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2016-03'\r\ncodesystem \"SNOMEDCT:2017-03\": 'urn:oid:2.16.840.1.113883.6.96' version 'urn:hl7:version:2017-03'\r\n\r\nvalueset \"Discharged to Health Care Facility for Hospice Care\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.207'\r\nvalueset \"Discharged to Home for Hospice Care\": 'urn:oid:2.16.840.1.113883.3.117.1.7.1.209'\r\nvalueset \"Encounter Inpatient\": 'urn:oid:2.16.840.1.113883.3.666.5.307'\r\nvalueset \"Hospice care ambulatory\": 'urn:oid:2.16.840.1.113762.1.4.1108.15'\r\n\r\ncode \"Birthdate\": '21112-8' from \"LOINC:2.46\" display 'Birth date'\r\ncode \"Dead\": '419099009' from \"SNOMEDCT:2016-03\" display 'Dead'\r\ncode \"Discharge to healthcare facility for hospice care (procedure)\": '428371000124100' from \"SNOMEDCT:2017-03\" display 'Discharge to healthcare facility for hospice care (procedure)'\r\ncode \"Discharge to home for hospice care (procedure)\": '428361000124107' from \"SNOMEDCT:2017-03\" display 'Discharge to home for hospice care (procedure)'\r\n\r\nparameter \"Measurement Period\" Interval<DateTime>\r\n\r\ncontext Patient\r\n\r\ndefine \"Has Hospice\":\r\n\texists ( [\"Encounter, Performed\": \"Encounter Inpatient\"] DischargeHospice\r\n\t\t\twhere ( DischargeHospice.dischargeDisposition as Code ~ \"Discharge to home for hospice care (procedure)\"\r\n\t\t\t\t\tor DischargeHospice.dischargeDisposition as Code ~ \"Discharge to healthcare facility for hospice care (procedure)\"\r\n\t\t\t)\r\n\t\t\t\tand DischargeHospice.relevantPeriod ends during \"Measurement Period\"\r\n\t)\r\n\t\tor exists ( [\"Intervention, Order\": \"Hospice care ambulatory\"] HospiceOrder\r\n\t\t\t\twhere HospiceOrder.authorDatetime during \"Measurement Period\"\r\n\t\t)\r\n\t\tor exists ( [\"Intervention, Performed\": \"Hospice care ambulatory\"] HospicePerformed\r\n\t\t\t\twhere HospicePerformed.relevantPeriod overlaps \"Measurement Period\"\r\n\t\t)\r\n",
      "elm": {
        "library": {
          "identifier": {
            "id": "Hospice",
            "version": "0.1.000"
          },
          "schemaIdentifier": {
            "id": "urn:hl7-org:elm",
            "version": "r1"
          },
          "usings": {
            "def": [
              {
                "localIdentifier": "System",
                "uri": "urn:hl7-org:elm-types:r1"
              },
              {
                "localId": "1",
                "locator": "3:1-3:23",
                "localIdentifier": "QDM",
                "uri": "urn:healthit-gov:qdm:v5_3",
                "version": "5.3"
              }
            ]
          },
          "parameters": {
            "def": [
              {
                "localId": "19",
                "locator": "19:1-19:49",
                "name": "Measurement Period",
                "accessLevel": "Public",
                "parameterTypeSpecifier": {
                  "localId": "18",
                  "locator": "19:32-19:49",
                  "type": "IntervalTypeSpecifier",
                  "pointType": {
                    "localId": "17",
                    "locator": "19:41-19:48",
                    "name": "{urn:hl7-org:elm-types:r1}DateTime",
                    "type": "NamedTypeSpecifier"
                  }
                }
              }
            ]
          },
          "codeSystems": {
            "def": [
              {
                "localId": "2",
                "locator": "5:1-5:87",
                "name": "LOINC:2.46",
                "id": "2.16.840.1.113883.6.1",
                "version": "urn:hl7:version:2.46",
                "accessLevel": "Public"
              },
              {
                "localId": "3",
                "locator": "6:1-6:97",
                "name": "SNOMEDCT:2016-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2016-03",
                "accessLevel": "Public"
              },
              {
                "localId": "4",
                "locator": "7:1-7:97",
                "name": "SNOMEDCT:2017-03",
                "id": "2.16.840.1.113883.6.96",
                "version": "urn:hl7:version:2017-03",
                "accessLevel": "Public"
              }
            ]
          },
          "valueSets": {
            "def": [
              {
                "localId": "5",
                "locator": "9:1-9:107",
                "name": "Discharged to Health Care Facility for Hospice Care",
                "id": "2.16.840.1.113883.3.117.1.7.1.207",
                "accessLevel": "Public"
              },
              {
                "localId": "6",
                "locator": "10:1-10:91",
                "name": "Discharged to Home for Hospice Care",
                "id": "2.16.840.1.113883.3.117.1.7.1.209",
                "accessLevel": "Public"
              },
              {
                "localId": "7",
                "locator": "11:1-11:71",
                "name": "Encounter Inpatient",
                "id": "2.16.840.1.113883.3.666.5.307",
                "accessLevel": "Public"
              },
              {
                "localId": "8",
                "locator": "12:1-12:75",
                "name": "Hospice care ambulatory",
                "id": "2.16.840.1.113762.1.4.1108.15",
                "accessLevel": "Public"
              }
            ]
          },
          "codes": {
            "def": [
              {
                "localId": "10",
                "locator": "14:1-14:66",
                "name": "Birthdate",
                "id": "21112-8",
                "display": "Birth date",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "9",
                  "locator": "14:34-14:45",
                  "name": "LOINC:2.46"
                }
              },
              {
                "localId": "12",
                "locator": "15:1-15:63",
                "name": "Dead",
                "id": "419099009",
                "display": "Dead",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "11",
                  "locator": "15:31-15:48",
                  "name": "SNOMEDCT:2016-03"
                }
              },
              {
                "localId": "14",
                "locator": "16:1-16:183",
                "name": "Discharge to healthcare facility for hospice care (procedure)",
                "id": "428371000124100",
                "display": "Discharge to healthcare facility for hospice care (procedure)",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "13",
                  "locator": "16:94-16:111",
                  "name": "SNOMEDCT:2017-03"
                }
              },
              {
                "localId": "16",
                "locator": "17:1-17:153",
                "name": "Discharge to home for hospice care (procedure)",
                "id": "428361000124107",
                "display": "Discharge to home for hospice care (procedure)",
                "accessLevel": "Public",
                "codeSystem": {
                  "localId": "15",
                  "locator": "17:79-17:96",
                  "name": "SNOMEDCT:2017-03"
                }
              }
            ]
          },
          "statements": {
            "def": [
              {
                "locator": "21:1-21:15",
                "name": "Patient",
                "context": "Patient",
                "expression": {
                  "type": "SingletonFrom",
                  "operand": {
                    "locator": "21:1-21:15",
                    "dataType": "{urn:healthit-gov:qdm:v5_3}Patient",
                    "templateId": "Patient",
                    "type": "Retrieve"
                  }
                }
              },
              {
                "localId": "60",
                "locator": "23:1-35:3",
                "name": "Has Hospice",
                "context": "Patient",
                "accessLevel": "Public",
                "annotation": [
                  {
                    "type": "Annotation",
                    "s": {
                      "r": "60",
                      "s": [
                        {
                          "value": [
                            "define ",
                            "\"Has Hospice\"",
                            ":\n\t"
                          ]
                        },
                        {
                          "r": "59",
                          "s": [
                            {
                              "r": "50",
                              "s": [
                                {
                                  "r": "41",
                                  "s": [
                                    {
                                      "value": [
                                        "exists "
                                      ]
                                    },
                                    {
                                      "r": "40",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "40",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "r": "21",
                                                  "s": [
                                                    {
                                                      "r": "20",
                                                      "s": [
                                                        {
                                                          "r": "20",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Encounter, Performed\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Encounter Inpatient\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " ",
                                                        "DischargeHospice"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\t"
                                              ]
                                            },
                                            {
                                              "r": "39",
                                              "s": [
                                                {
                                                  "value": [
                                                    "where "
                                                  ]
                                                },
                                                {
                                                  "r": "39",
                                                  "s": [
                                                    {
                                                      "r": "34",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "( "
                                                          ]
                                                        },
                                                        {
                                                          "r": "34",
                                                          "s": [
                                                            {
                                                              "r": "27",
                                                              "s": [
                                                                {
                                                                  "r": "25",
                                                                  "s": [
                                                                    {
                                                                      "r": "23",
                                                                      "s": [
                                                                        {
                                                                          "r": "22",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "DischargeHospice"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "23",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "dischargeDisposition"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " as "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "24",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "Code"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "~",
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "26",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Discharge to home for hospice care (procedure)\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "\n\t\t\t\t\tor "
                                                              ]
                                                            },
                                                            {
                                                              "r": "33",
                                                              "s": [
                                                                {
                                                                  "r": "31",
                                                                  "s": [
                                                                    {
                                                                      "r": "29",
                                                                      "s": [
                                                                        {
                                                                          "r": "28",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "DischargeHospice"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        },
                                                                        {
                                                                          "value": [
                                                                            "."
                                                                          ]
                                                                        },
                                                                        {
                                                                          "r": "29",
                                                                          "s": [
                                                                            {
                                                                              "value": [
                                                                                "dischargeDisposition"
                                                                              ]
                                                                            }
                                                                          ]
                                                                        }
                                                                      ]
                                                                    },
                                                                    {
                                                                      "value": [
                                                                        " as "
                                                                      ]
                                                                    },
                                                                    {
                                                                      "r": "30",
                                                                      "s": [
                                                                        {
                                                                          "value": [
                                                                            "Code"
                                                                          ]
                                                                        }
                                                                      ]
                                                                    }
                                                                  ]
                                                                },
                                                                {
                                                                  "value": [
                                                                    " ",
                                                                    "~",
                                                                    " "
                                                                  ]
                                                                },
                                                                {
                                                                  "r": "32",
                                                                  "s": [
                                                                    {
                                                                      "value": [
                                                                        "\"Discharge to healthcare facility for hospice care (procedure)\""
                                                                      ]
                                                                    }
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "\n\t\t\t)"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "\n\t\t\t\tand "
                                                      ]
                                                    },
                                                    {
                                                      "r": "38",
                                                      "s": [
                                                        {
                                                          "r": "36",
                                                          "s": [
                                                            {
                                                              "r": "35",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "DischargeHospice"
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "."
                                                              ]
                                                            },
                                                            {
                                                              "r": "36",
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "relevantPeriod"
                                                                  ]
                                                                }
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            " ",
                                                            "ends during",
                                                            " "
                                                          ]
                                                        },
                                                        {
                                                          "r": "37",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Measurement Period\""
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t)"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "value": [
                                    "\n\t\tor "
                                  ]
                                },
                                {
                                  "r": "49",
                                  "s": [
                                    {
                                      "value": [
                                        "exists "
                                      ]
                                    },
                                    {
                                      "r": "48",
                                      "s": [
                                        {
                                          "value": [
                                            "( "
                                          ]
                                        },
                                        {
                                          "r": "48",
                                          "s": [
                                            {
                                              "s": [
                                                {
                                                  "r": "43",
                                                  "s": [
                                                    {
                                                      "r": "42",
                                                      "s": [
                                                        {
                                                          "r": "42",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "[",
                                                                "\"Intervention, Order\"",
                                                                ": "
                                                              ]
                                                            },
                                                            {
                                                              "s": [
                                                                {
                                                                  "value": [
                                                                    "\"Hospice care ambulatory\""
                                                                  ]
                                                                }
                                                              ]
                                                            },
                                                            {
                                                              "value": [
                                                                "]"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " ",
                                                        "HospiceOrder"
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "value": [
                                                "\n\t\t\t\t"
                                              ]
                                            },
                                            {
                                              "r": "47",
                                              "s": [
                                                {
                                                  "value": [
                                                    "where "
                                                  ]
                                                },
                                                {
                                                  "r": "47",
                                                  "s": [
                                                    {
                                                      "r": "45",
                                                      "s": [
                                                        {
                                                          "r": "44",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "HospiceOrder"
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "."
                                                          ]
                                                        },
                                                        {
                                                          "r": "45",
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "authorDatetime"
                                                              ]
                                                            }
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        " ",
                                                        "during",
                                                        " "
                                                      ]
                                                    },
                                                    {
                                                      "r": "46",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "\"Measurement Period\""
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t)"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            },
                            {
                              "value": [
                                "\n\t\tor "
                              ]
                            },
                            {
                              "r": "58",
                              "s": [
                                {
                                  "value": [
                                    "exists "
                                  ]
                                },
                                {
                                  "r": "57",
                                  "s": [
                                    {
                                      "value": [
                                        "( "
                                      ]
                                    },
                                    {
                                      "r": "57",
                                      "s": [
                                        {
                                          "s": [
                                            {
                                              "r": "52",
                                              "s": [
                                                {
                                                  "r": "51",
                                                  "s": [
                                                    {
                                                      "r": "51",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "[",
                                                            "\"Intervention, Performed\"",
                                                            ": "
                                                          ]
                                                        },
                                                        {
                                                          "s": [
                                                            {
                                                              "value": [
                                                                "\"Hospice care ambulatory\""
                                                              ]
                                                            }
                                                          ]
                                                        },
                                                        {
                                                          "value": [
                                                            "]"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "HospicePerformed"
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "value": [
                                            "\n\t\t\t\t"
                                          ]
                                        },
                                        {
                                          "r": "56",
                                          "s": [
                                            {
                                              "value": [
                                                "where "
                                              ]
                                            },
                                            {
                                              "r": "56",
                                              "s": [
                                                {
                                                  "r": "54",
                                                  "s": [
                                                    {
                                                      "r": "53",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "HospicePerformed"
                                                          ]
                                                        }
                                                      ]
                                                    },
                                                    {
                                                      "value": [
                                                        "."
                                                      ]
                                                    },
                                                    {
                                                      "r": "54",
                                                      "s": [
                                                        {
                                                          "value": [
                                                            "relevantPeriod"
                                                          ]
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "value": [
                                                    " ",
                                                    "overlaps",
                                                    " "
                                                  ]
                                                },
                                                {
                                                  "r": "55",
                                                  "s": [
                                                    {
                                                      "value": [
                                                        "\"Measurement Period\""
                                                      ]
                                                    }
                                                  ]
                                                }
                                              ]
                                            }
                                          ]
                                        }
                                      ]
                                    },
                                    {
                                      "value": [
                                        "\n\t\t)"
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "expression": {
                  "localId": "59",
                  "locator": "24:2-35:3",
                  "type": "Or",
                  "operand": [
                    {
                      "localId": "50",
                      "locator": "24:2-32:3",
                      "type": "Or",
                      "operand": [
                        {
                          "localId": "41",
                          "locator": "24:2-29:2",
                          "type": "Exists",
                          "operand": {
                            "localId": "40",
                            "locator": "24:9-29:2",
                            "type": "Query",
                            "source": [
                              {
                                "localId": "21",
                                "locator": "24:11-24:74",
                                "alias": "DischargeHospice",
                                "expression": {
                                  "localId": "20",
                                  "locator": "24:11-24:57",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveEncounterPerformed",
                                  "templateId": "PositiveEncounterPerformed",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Encounter Inpatient",
                                    "type": "ValueSetRef"
                                  }
                                }
                              }
                            ],
                            "relationship": [

                            ],
                            "where": {
                              "localId": "39",
                              "locator": "25:4-28:72",
                              "type": "And",
                              "operand": [
                                {
                                  "localId": "34",
                                  "locator": "25:10-27:4",
                                  "type": "Or",
                                  "operand": [
                                    {
                                      "localId": "27",
                                      "locator": "25:12-25:107",
                                      "type": "Equivalent",
                                      "operand": [
                                        {
                                          "localId": "25",
                                          "locator": "25:12-25:56",
                                          "strict": false,
                                          "type": "As",
                                          "operand": {
                                            "localId": "23",
                                            "locator": "25:12-25:48",
                                            "path": "dischargeDisposition",
                                            "scope": "DischargeHospice",
                                            "type": "Property"
                                          },
                                          "asTypeSpecifier": {
                                            "localId": "24",
                                            "locator": "25:53-25:56",
                                            "name": "{urn:hl7-org:elm-types:r1}Code",
                                            "type": "NamedTypeSpecifier"
                                          }
                                        },
                                        {
                                          "localId": "26",
                                          "locator": "25:60-25:107",
                                          "name": "Discharge to home for hospice care (procedure)",
                                          "type": "CodeRef"
                                        }
                                      ]
                                    },
                                    {
                                      "localId": "33",
                                      "locator": "26:9-26:119",
                                      "type": "Equivalent",
                                      "operand": [
                                        {
                                          "localId": "31",
                                          "locator": "26:9-26:53",
                                          "strict": false,
                                          "type": "As",
                                          "operand": {
                                            "localId": "29",
                                            "locator": "26:9-26:45",
                                            "path": "dischargeDisposition",
                                            "scope": "DischargeHospice",
                                            "type": "Property"
                                          },
                                          "asTypeSpecifier": {
                                            "localId": "30",
                                            "locator": "26:50-26:53",
                                            "name": "{urn:hl7-org:elm-types:r1}Code",
                                            "type": "NamedTypeSpecifier"
                                          }
                                        },
                                        {
                                          "localId": "32",
                                          "locator": "26:57-26:119",
                                          "name": "Discharge to healthcare facility for hospice care (procedure)",
                                          "type": "CodeRef"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "localId": "38",
                                  "locator": "28:9-28:72",
                                  "type": "In",
                                  "operand": [
                                    {
                                      "locator": "28:41-28:44",
                                      "type": "End",
                                      "operand": {
                                        "localId": "36",
                                        "locator": "28:9-28:39",
                                        "path": "relevantPeriod",
                                        "scope": "DischargeHospice",
                                        "type": "Property"
                                      }
                                    },
                                    {
                                      "localId": "37",
                                      "locator": "28:53-28:72",
                                      "name": "Measurement Period",
                                      "type": "ParameterRef"
                                    }
                                  ]
                                }
                              ]
                            }
                          }
                        },
                        {
                          "localId": "49",
                          "locator": "30:6-32:3",
                          "type": "Exists",
                          "operand": {
                            "localId": "48",
                            "locator": "30:13-32:3",
                            "type": "Query",
                            "source": [
                              {
                                "localId": "43",
                                "locator": "30:15-30:77",
                                "alias": "HospiceOrder",
                                "expression": {
                                  "localId": "42",
                                  "locator": "30:15-30:64",
                                  "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionOrder",
                                  "templateId": "PositiveInterventionOrder",
                                  "codeProperty": "code",
                                  "type": "Retrieve",
                                  "codes": {
                                    "name": "Hospice care ambulatory",
                                    "type": "ValueSetRef"
                                  }
                                }
                              }
                            ],
                            "relationship": [

                            ],
                            "where": {
                              "localId": "47",
                              "locator": "31:5-31:65",
                              "type": "In",
                              "operand": [
                                {
                                  "localId": "45",
                                  "locator": "31:11-31:37",
                                  "path": "authorDatetime",
                                  "scope": "HospiceOrder",
                                  "type": "Property"
                                },
                                {
                                  "localId": "46",
                                  "locator": "31:46-31:65",
                                  "name": "Measurement Period",
                                  "type": "ParameterRef"
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    {
                      "localId": "58",
                      "locator": "33:6-35:3",
                      "type": "Exists",
                      "operand": {
                        "localId": "57",
                        "locator": "33:13-35:3",
                        "type": "Query",
                        "source": [
                          {
                            "localId": "52",
                            "locator": "33:15-33:85",
                            "alias": "HospicePerformed",
                            "expression": {
                              "localId": "51",
                              "locator": "33:15-33:68",
                              "dataType": "{urn:healthit-gov:qdm:v5_3}PositiveInterventionPerformed",
                              "templateId": "PositiveInterventionPerformed",
                              "codeProperty": "code",
                              "type": "Retrieve",
                              "codes": {
                                "name": "Hospice care ambulatory",
                                "type": "ValueSetRef"
                              }
                            }
                          }
                        ],
                        "relationship": [

                        ],
                        "where": {
                          "localId": "56",
                          "locator": "34:5-34:71",
                          "type": "Overlaps",
                          "operand": [
                            {
                              "localId": "54",
                              "locator": "34:11-34:41",
                              "path": "relevantPeriod",
                              "scope": "HospicePerformed",
                              "type": "Property"
                            },
                            {
                              "localId": "55",
                              "locator": "34:52-34:71",
                              "name": "Measurement Period",
                              "type": "ParameterRef"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      },
      "elm_annotations": {
        "statements": [
          {
            "children": [
              {
                "children": [
                  {
                    "children": [
                      {
                        "text": "define \"Has Hospice\":\n  "
                      }
                    ]
                  },
                  {
                    "children": [
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "exists "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Encounter, Performed\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Encounter Inpatient\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "20"
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "20"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " DischargeHospice"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "21"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n      "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "where "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "( "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "DischargeHospice"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "22"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "dischargeDisposition"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "23"
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "23"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " as "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "Code"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "24"
                                                              }
                                                            ],
                                                            "node_type": "As",
                                                            "ref_id": "25"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " ~ "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Discharge to home for hospice care (procedure)\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "CodeRef",
                                                            "ref_id": "26"
                                                          }
                                                        ],
                                                        "node_type": "Equivalent",
                                                        "ref_id": "27"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\n          or "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "DischargeHospice"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "ref_id": "28"
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "."
                                                                      }
                                                                    ]
                                                                  },
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "children": [
                                                                          {
                                                                            "text": "dischargeDisposition"
                                                                          }
                                                                        ]
                                                                      }
                                                                    ],
                                                                    "node_type": "Property",
                                                                    "ref_id": "29"
                                                                  }
                                                                ],
                                                                "node_type": "Property",
                                                                "ref_id": "29"
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": " as "
                                                                  }
                                                                ]
                                                              },
                                                              {
                                                                "children": [
                                                                  {
                                                                    "children": [
                                                                      {
                                                                        "text": "Code"
                                                                      }
                                                                    ]
                                                                  }
                                                                ],
                                                                "ref_id": "30"
                                                              }
                                                            ],
                                                            "node_type": "As",
                                                            "ref_id": "31"
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "text": " ~ "
                                                              }
                                                            ]
                                                          },
                                                          {
                                                            "children": [
                                                              {
                                                                "children": [
                                                                  {
                                                                    "text": "\"Discharge to healthcare facility for hospice care (procedure)\""
                                                                  }
                                                                ]
                                                              }
                                                            ],
                                                            "node_type": "CodeRef",
                                                            "ref_id": "32"
                                                          }
                                                        ],
                                                        "node_type": "Equivalent",
                                                        "ref_id": "33"
                                                      }
                                                    ],
                                                    "node_type": "Or",
                                                    "ref_id": "34"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\n      )"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Or",
                                                "ref_id": "34"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "\n        and "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "DischargeHospice"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "ref_id": "35"
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "."
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "relevantPeriod"
                                                              }
                                                            ]
                                                          }
                                                        ],
                                                        "node_type": "Property",
                                                        "ref_id": "36"
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "36"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": " ends during "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Measurement Period\""
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "ParameterRef",
                                                    "ref_id": "37"
                                                  }
                                                ],
                                                "node_type": "In",
                                                "ref_id": "38"
                                              }
                                            ],
                                            "ref_id": "39"
                                          }
                                        ],
                                        "ref_id": "39"
                                      }
                                    ],
                                    "node_type": "Query",
                                    "ref_id": "40"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n  )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "40"
                              }
                            ],
                            "node_type": "Exists",
                            "ref_id": "41"
                          },
                          {
                            "children": [
                              {
                                "text": "\n    or "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "exists "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "text": "( "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "[\"Intervention, Order\": "
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "children": [
                                                              {
                                                                "text": "\"Hospice care ambulatory\""
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "]"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Retrieve",
                                                    "ref_id": "42"
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "42"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " HospiceOrder"
                                                  }
                                                ]
                                              }
                                            ],
                                            "ref_id": "43"
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "text": "\n        "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "text": "where "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "HospiceOrder"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "ref_id": "44"
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "."
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "authorDatetime"
                                                          }
                                                        ]
                                                      }
                                                    ],
                                                    "node_type": "Property",
                                                    "ref_id": "45"
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "45"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": " during "
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "\"Measurement Period\""
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "ParameterRef",
                                                "ref_id": "46"
                                              }
                                            ],
                                            "ref_id": "47"
                                          }
                                        ],
                                        "ref_id": "47"
                                      }
                                    ],
                                    "node_type": "Query",
                                    "ref_id": "48"
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n    )"
                                      }
                                    ]
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "48"
                              }
                            ],
                            "node_type": "Exists",
                            "ref_id": "49"
                          }
                        ],
                        "node_type": "Or",
                        "ref_id": "50"
                      },
                      {
                        "children": [
                          {
                            "text": "\n    or "
                          }
                        ]
                      },
                      {
                        "children": [
                          {
                            "children": [
                              {
                                "text": "exists "
                              }
                            ]
                          },
                          {
                            "children": [
                              {
                                "children": [
                                  {
                                    "text": "( "
                                  }
                                ]
                              },
                              {
                                "children": [
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "[\"Intervention, Performed\": "
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "children": [
                                                          {
                                                            "text": "\"Hospice care ambulatory\""
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "]"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Retrieve",
                                                "ref_id": "51"
                                              }
                                            ],
                                            "node_type": "Retrieve",
                                            "ref_id": "51"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " HospicePerformed"
                                              }
                                            ]
                                          }
                                        ],
                                        "ref_id": "52"
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "text": "\n        "
                                      }
                                    ]
                                  },
                                  {
                                    "children": [
                                      {
                                        "children": [
                                          {
                                            "text": "where "
                                          }
                                        ]
                                      },
                                      {
                                        "children": [
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "HospicePerformed"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "ref_id": "53"
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "text": "."
                                                  }
                                                ]
                                              },
                                              {
                                                "children": [
                                                  {
                                                    "children": [
                                                      {
                                                        "text": "relevantPeriod"
                                                      }
                                                    ]
                                                  }
                                                ],
                                                "node_type": "Property",
                                                "ref_id": "54"
                                              }
                                            ],
                                            "node_type": "Property",
                                            "ref_id": "54"
                                          },
                                          {
                                            "children": [
                                              {
                                                "text": " overlaps "
                                              }
                                            ]
                                          },
                                          {
                                            "children": [
                                              {
                                                "children": [
                                                  {
                                                    "text": "\"Measurement Period\""
                                                  }
                                                ]
                                              }
                                            ],
                                            "node_type": "ParameterRef",
                                            "ref_id": "55"
                                          }
                                        ],
                                        "ref_id": "56"
                                      }
                                    ],
                                    "ref_id": "56"
                                  }
                                ],
                                "node_type": "Query",
                                "ref_id": "57"
                              },
                              {
                                "children": [
                                  {
                                    "text": "\n    )"
                                  }
                                ]
                              }
                            ],
                            "node_type": "Query",
                            "ref_id": "57"
                          }
                        ],
                        "node_type": "Exists",
                        "ref_id": "58"
                      }
                    ],
                    "node_type": "Or",
                    "ref_id": "59"
                  }
                ],
                "ref_id": "60"
              }
            ],
            "define_name": "Has Hospice"
          }
        ],
        "identifier": {
          "id": "Hospice",
          "version": "0.1.000"
        }
      },
      "is_main_library": false,
      "is_top_level": true,
      "library_name": "Hospice",
      "library_version": "0.1.000",
      "statement_dependencies": [
        {
          "statement_name": "Has Hospice"
        }
      ]
    }
  ],
  "created_at": null,
  "description": "The percentage of patients 18-75 years of age with diabetes who had a nephropathy screening test or evidence of nephropathy during the measurement period",
  "hqmf_id": "40280382-5FA6-FE85-0160-0918E74D2075",
  "hqmf_set_id": "7B2A9277-43DA-4D99-9BEE-6AC271A07747",
  "hqmf_version_number": "0",
  "main_cql_library": "DiabetesMedicalAttentionforNephropathy",
  "measure_attributes": [
    {
      "code": "OTH",
      "value": "134",
      "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": "134",
        "media_type": "text/plain"
      }
    },
    {
      "code": "OTH",
      "value": "0062",
      "name": "NQF Number",
      "code_obj": {
        "type": "CD",
        "null_flavor": "OTH",
        "original_text": "NQF Number"
      },
      "value_obj": {
        "type": "ED",
        "value": "0062",
        "media_type": "text/plain"
      }
    },
    {
      "code": "COPY",
      "value": "This Physician Performance Measure (Measure) and related data specifications were developed by the National Committee for Quality Assurance (NCQA). The Measure is copyrighted but can be reproduced and distributed, without modification, for noncommercial purposes (eg, use by healthcare providers in connection with their practices) without obtaining approval from NCQA. Commercial use is defined as the sale, licensing, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. All commercial uses must be approved by NCQA and are subject to a license at the discretion of NCQA. NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. (C) 2012-2017 National Committee for Quality Assurance. All Rights Reserved. \n\nLimited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any CPT or other codes contained in the specifications.\n\nCPT(R) contained in the Measure specifications is copyright 2004-2016 American Medical Association. LOINC(R) copyright 2004-2016 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2016 International Health Terminology Standards Development Organisation. ICD-10 copyright 2016 World Health Organization. All Rights Reserved.\n\nThe American Hospital Association holds a copyright to the National Uniform Billing Committee (NUBC) codes contained in the measure specifications. The NUBC codes in the specifications are included with the permission of the AHA. The NUBC codes contained in the specifications may be used by health plans and other health care delivery organizations for the purpose of calculating and reporting Measure results or using Measure results for their internal quality improvement purposes. All other uses of the NUBC codes require a license from the AHA. Anyone desiring to use the NUBC codes in a commercial product to generate Measure results, or for any other commercial use, must obtain a commercial use license directly from the AHA. To inquire about licensing, contact ub04@healthforum.com.",
      "name": "Copyright",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "COPY",
        "title": "Copyright"
      },
      "value_obj": {
        "type": "ED",
        "value": "This Physician Performance Measure (Measure) and related data specifications were developed by the National Committee for Quality Assurance (NCQA). The Measure is copyrighted but can be reproduced and distributed, without modification, for noncommercial purposes (eg, use by healthcare providers in connection with their practices) without obtaining approval from NCQA. Commercial use is defined as the sale, licensing, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. All commercial uses must be approved by NCQA and are subject to a license at the discretion of NCQA. NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. (C) 2012-2017 National Committee for Quality Assurance. All Rights Reserved. \n\nLimited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any CPT or other codes contained in the specifications.\n\nCPT(R) contained in the Measure specifications is copyright 2004-2016 American Medical Association. LOINC(R) copyright 2004-2016 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2016 International Health Terminology Standards Development Organisation. ICD-10 copyright 2016 World Health Organization. All Rights Reserved.\n\nThe American Hospital Association holds a copyright to the National Uniform Billing Committee (NUBC) codes contained in the measure specifications. The NUBC codes in the specifications are included with the permission of the AHA. The NUBC codes contained in the specifications may be used by health plans and other health care delivery organizations for the purpose of calculating and reporting Measure results or using Measure results for their internal quality improvement purposes. All other uses of the NUBC codes require a license from the AHA. Anyone desiring to use the NUBC codes in a commercial product to generate Measure results, or for any other commercial use, must obtain a commercial use license directly from the AHA. To inquire about licensing, contact ub04@healthforum.com.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DISC",
      "value": "The performance Measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURE AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.\n \nDue to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].",
      "name": "Disclaimer",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DISC",
        "title": "Disclaimer"
      },
      "value_obj": {
        "type": "ED",
        "value": "The performance Measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURE AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.\n \nDue to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].",
        "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": "As the seventh leading cause of death in the U.S., diabetes kills approximately 75,000 people a year (CDC FastStats 2015). Diabetes is a group of diseases marked by high blood glucose levels, resulting from the body's inability to produce or use insulin (CDC Statistics 2014, ADA Basics 2013). People with diabetes are at increased risk of serious health complications including vision loss, heart disease, stroke, kidney failure, amputation of toes, feet or legs, and premature death. (CDC Fact Sheet 2014). \n\nIn 2012, diabetes cost the U.S. an estimated $245 billion: $176 billion in direct medical costs and $69 billion in reduced productivity. This is a 41 percent increase from the estimated $174 billion spent on diabetes in 2007 (ADA Economic 2013).  \n\nIn 2011, diabetes accounted for 44% of new kidney failure cases. In the same year, 49,677 diabetics started treatment for kidney failure and 228,924 people of all ages with kidney failure due to diabetes were living on chronic dialysis or with a kidney transplant (CDC Statistics, 2014).",
      "name": "Rationale",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "RAT",
        "title": "Rationale"
      },
      "value_obj": {
        "type": "ED",
        "value": "As the seventh leading cause of death in the U.S., diabetes kills approximately 75,000 people a year (CDC FastStats 2015). Diabetes is a group of diseases marked by high blood glucose levels, resulting from the body's inability to produce or use insulin (CDC Statistics 2014, ADA Basics 2013). People with diabetes are at increased risk of serious health complications including vision loss, heart disease, stroke, kidney failure, amputation of toes, feet or legs, and premature death. (CDC Fact Sheet 2014). \n\nIn 2012, diabetes cost the U.S. an estimated $245 billion: $176 billion in direct medical costs and $69 billion in reduced productivity. This is a 41 percent increase from the estimated $174 billion spent on diabetes in 2007 (ADA Economic 2013).  \n\nIn 2011, diabetes accounted for 44% of new kidney failure cases. In the same year, 49,677 diabetics started treatment for kidney failure and 228,924 people of all ages with kidney failure due to diabetes were living on chronic dialysis or with a kidney transplant (CDC Statistics, 2014).",
        "media_type": "text/plain"
      }
    },
    {
      "code": "CRS",
      "value": "American Diabetes Association (2017):\n\nScreening\n- At least once a year, quantitatively assess urinary albumin (eg, spot urinary albumin-to-creatinine ratio [UACR]) and estimated glomerular filtration rate (eGFR) in patients with type 1 diabetes duration of greater than or equal to 5 years in all patients with type 2 diabetes, and in all patients with comorbid hypertension. (Level of evidence: B)\n\nTreatment\n- An angiotensin-converting enzyme (ACE) inhibitor or angiotensin receptor blocker (ARB) is not recommended for the primary prevention of diabetic kidney disease in patients with diabetes who have normal blood pressure, normal UACR (<30 mg/g), and normal estimated glomerular filtration rate. (Level of evidence: B)\n- Either an ACE inhibitor or ARB is suggested for the treatment of the nonpregnant patient with modestly elevated UACR (30-299 mg/day) (Level of evidence: C) and is strongly recommended for those with urinary albumin excretion >=300 mg/day. (Level of evidence: A)\n- When ACE inhibitors, ARBs, or diuretics are used, monitor serum creatinine and potassium levels for the development of increased creatinine or changes in potassium. (Level of evidence: E)\n- Continued monitoring of UACR in patients with albuminuria treated with an ACE inhibitor or ARBs is reasonable to assess progression of diabetic kidney disease. (Level of evidence: E)\n\nAmerican Association of Clinical Endocrinologists (2015): \n- Beginning 5 years after diagnosis in patients with type 1 diabetes (if diagnosed before age 30) or at diagnosis in patients with type 2 diabetes and those with type 1 diabetes diagnosed after age 30, annual assessment of serum creatinine to determine the estimated glomerular filtration rate (eGFR) and urine albumin excretion rate (AER) should be performed to identify, stage, and monitor progression of diabetic nephropathy (Grade C; best evidence level 3). \n- Patients with nephropathy should be counseled regarding the need for optimal glycemic control, blood pressure control, dyslipidemia control, and smoking cessation (Grade B; best evidence level 2). \n- In addition, they should have routine monitoring of albuminuria, kidney function electrolytes, and lipids (Grade B; best evidence level 2). \n- Associated conditions such as anemia and bone and mineral disorders should be assessed as kidney function declines (Grade D; best evidence level 4). \n- Referral to a nephrologist is recommended well before the need for renal replacement therapy (Grade D; best evidence level 4).",
      "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": "American Diabetes Association (2017):\n\nScreening\n- At least once a year, quantitatively assess urinary albumin (eg, spot urinary albumin-to-creatinine ratio [UACR]) and estimated glomerular filtration rate (eGFR) in patients with type 1 diabetes duration of greater than or equal to 5 years in all patients with type 2 diabetes, and in all patients with comorbid hypertension. (Level of evidence: B)\n\nTreatment\n- An angiotensin-converting enzyme (ACE) inhibitor or angiotensin receptor blocker (ARB) is not recommended for the primary prevention of diabetic kidney disease in patients with diabetes who have normal blood pressure, normal UACR (<30 mg/g), and normal estimated glomerular filtration rate. (Level of evidence: B)\n- Either an ACE inhibitor or ARB is suggested for the treatment of the nonpregnant patient with modestly elevated UACR (30-299 mg/day) (Level of evidence: C) and is strongly recommended for those with urinary albumin excretion >=300 mg/day. (Level of evidence: A)\n- When ACE inhibitors, ARBs, or diuretics are used, monitor serum creatinine and potassium levels for the development of increased creatinine or changes in potassium. (Level of evidence: E)\n- Continued monitoring of UACR in patients with albuminuria treated with an ACE inhibitor or ARBs is reasonable to assess progression of diabetic kidney disease. (Level of evidence: E)\n\nAmerican Association of Clinical Endocrinologists (2015): \n- Beginning 5 years after diagnosis in patients with type 1 diabetes (if diagnosed before age 30) or at diagnosis in patients with type 2 diabetes and those with type 1 diabetes diagnosed after age 30, annual assessment of serum creatinine to determine the estimated glomerular filtration rate (eGFR) and urine albumin excretion rate (AER) should be performed to identify, stage, and monitor progression of diabetic nephropathy (Grade C; best evidence level 3). \n- Patients with nephropathy should be counseled regarding the need for optimal glycemic control, blood pressure control, dyslipidemia control, and smoking cessation (Grade B; best evidence level 2). \n- In addition, they should have routine monitoring of albuminuria, kidney function electrolytes, and lipids (Grade B; best evidence level 2). \n- Associated conditions such as anemia and bone and mineral disorders should be assessed as kidney function declines (Grade D; best evidence level 4). \n- Referral to a nephrologist is recommended well before the need for renal replacement therapy (Grade D; best evidence level 4).",
        "media_type": "text/plain"
      }
    },
    {
      "code": "IDUR",
      "value": "Higher score indicates 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 score indicates better quality",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "American Diabetes Association. Microvascular complications and foot care. Sec. 10. In Standards of Medical Care in Diabetes-2017. Diabetes Care 2017;40(Suppl. 1):S88-S98.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "American Diabetes Association. Microvascular complications and foot care. Sec. 10. In Standards of Medical Care in Diabetes-2017. Diabetes Care 2017;40(Suppl. 1):S88-S98.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "American Diabetes Association. 2013. Diabetes Basics. www.diabetes.org/diabetes-basics/?loc=GlobalNavDB.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "American Diabetes Association. 2013. Diabetes Basics. www.diabetes.org/diabetes-basics/?loc=GlobalNavDB.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "American Diabetes Association (ADA). April 2013. Economic Costs of Diabetes in the U.S. in 2012. Diabetes Care. Vol. 36 no. 4 \n1033-46. http://care.diabetesjournals.org/content/36/4/1033.full.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "American Diabetes Association (ADA). April 2013. Economic Costs of Diabetes in the U.S. in 2012. Diabetes Care. Vol. 36 no. 4 \n1033-46. http://care.diabetesjournals.org/content/36/4/1033.full.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Centers for Disease Control and Prevention (CDC). 2014. National Diabetes Statistics Report. \nhttp://www.cdc.gov/diabetes/pdfs/data/2014-report-estimates-of-diabetes-and-its-burden-in-the-united-states.pdf",
      "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 (CDC). 2014. National Diabetes Statistics Report. \nhttp://www.cdc.gov/diabetes/pdfs/data/2014-report-estimates-of-diabetes-and-its-burden-in-the-united-states.pdf",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Centers for Disease Control and Prevention (CDC). 2015. FastStats: Deaths and Mortality. www.cdc.gov/nchs/fastats/deaths.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 (CDC). 2015. FastStats: Deaths and Mortality. www.cdc.gov/nchs/fastats/deaths.htm.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Centers for Disease Control and Prevention. 2014. CDC Features. Diabetes Latest. www.cdc.gov/features/diabetesfactsheet/.",
      "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. 2014. CDC Features. Diabetes Latest. www.cdc.gov/features/diabetesfactsheet/.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "REF",
      "value": "Handelsman Y, Bloomgarden ZT, Grunberger G, Umpierrez G, Zimmerman RS, Bailey TS, et al. (2015) American Association of Clinical Endocrinologists and American College of Endocrinology-Clinical Practice Guidelines for Developing a Diabetes Mellitus Comprehensive Care Plan-2015. Endocr Pract 21 Suppl 1: 1-87.",
      "name": "Reference",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "REF",
        "title": "Reference"
      },
      "value_obj": {
        "type": "ED",
        "value": "Handelsman Y, Bloomgarden ZT, Grunberger G, Umpierrez G, Zimmerman RS, Bailey TS, et al. (2015) American Association of Clinical Endocrinologists and American College of Endocrinology-Clinical Practice Guidelines for Developing a Diabetes Mellitus Comprehensive Care Plan-2015. Endocr Pract 21 Suppl 1: 1-87.",
        "media_type": "text/plain"
      }
    },
    {
      "code": "DEF",
      "value": "None",
      "name": "Definition",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "DEF",
        "title": "Definition"
      },
      "value_obj": {
        "type": "ED",
        "value": "None",
        "media_type": "text/plain"
      }
    },
    {
      "code": "GUIDE",
      "value": "Only patients with a diagnosis of Type 1 or Type 2 diabetes should be included in the denominator of this measure; patients with a diagnosis of secondary diabetes due to another condition should not be included",
      "name": "Guidance",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "GUIDE",
        "title": "Guidance"
      },
      "value_obj": {
        "type": "ED",
        "value": "Only patients with a diagnosis of Type 1 or Type 2 diabetes should be included in the denominator of this measure; patients with a diagnosis of secondary diabetes due to another condition should not be included",
        "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 18-75 years of age with diabetes with a visit during the measurement period",
      "name": "Initial Population",
      "code_obj": {
        "type": "CD",
        "system": "2.16.840.1.113883.5.4",
        "code": "IPOP",
        "title": "Initial Population"
      },
      "value_obj": {
        "type": "ED",
        "value": "Patients 18-75 years of age with diabetes with a visit during the measurement 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": "Exclude patients who were in hospice care during the measurement year",
      "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": "Exclude patients who were in hospice care during the measurement year",
        "media_type": "text/plain"
      }
    },
    {
      "code": "NUMER",
      "value": "Patients with a screening for nephropathy or evidence of nephropathy during the measurement 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 with a screening for nephropathy or evidence of nephropathy during the measurement 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": "6CD39B4B-16E6-4FD4-9241-527F9F4A48D0",
      "preconditions": [
        {
          "id": 2,
          "preconditions": [
            {
              "id": 1,
              "reference": "DiabetesMedicalAttentionforNephropathy__Initial_Population__D9836559_E946_49E8_A122_0B0C13F9770B"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENOM": {
      "conjunction?": true,
      "type": "DENOM",
      "hqmf_id": "B735F4BD-DFAE-45E3-BAA9-E09BDF731B8E",
      "preconditions": [
        {
          "id": 4,
          "preconditions": [
            {
              "id": 3,
              "reference": "DiabetesMedicalAttentionforNephropathy__Denominator__D9836559_E946_49E8_A122_0B0C13F9770B"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "NUMER": {
      "conjunction?": true,
      "type": "NUMER",
      "hqmf_id": "ECFD4C68-90F8-4143-8298-21798069AE8E",
      "preconditions": [
        {
          "id": 6,
          "preconditions": [
            {
              "id": 5,
              "reference": "DiabetesMedicalAttentionforNephropathy__Numerator__D9836559_E946_49E8_A122_0B0C13F9770B"
            }
          ],
          "conjunction_code": "allTrue"
        }
      ]
    },
    "DENEX": {
      "conjunction?": true,
      "type": "DENEX",
      "hqmf_id": "F82CC93D-C1A2-4E10-A087-81D666395C48",
      "preconditions": [
        {
          "id": 8,
          "preconditions": [
            {
              "id": 7,
              "reference": "DiabetesMedicalAttentionforNephropathy__Denominator_Exclusions__D9836559_E946_49E8_A122_0B0C13F9770B"
            }
          ],
          "conjunction_code": "atLeastOneTrue"
        }
      ]
    }
  },
  "population_sets": [
    {
      "population_set_id": "PopulationCriteria1",
      "populations": {
        "DENEX": {
          "hqmf_id": "F82CC93D-C1A2-4E10-A087-81D666395C48",
          "library_name": "DiabetesMedicalAttentionforNephropathy",
          "statement_name": "Denominator Exclusions"
        },
        "DENOM": {
          "hqmf_id": "B735F4BD-DFAE-45E3-BAA9-E09BDF731B8E",
          "library_name": "DiabetesMedicalAttentionforNephropathy",
          "statement_name": "Denominator"
        },
        "IPP": {
          "hqmf_id": "6CD39B4B-16E6-4FD4-9241-527F9F4A48D0",
          "library_name": "DiabetesMedicalAttentionforNephropathy",
          "statement_name": "Initial Population"
        },
        "NUMER": {
          "hqmf_id": "ECFD4C68-90F8-4143-8298-21798069AE8E",
          "library_name": "DiabetesMedicalAttentionforNephropathy",
          "statement_name": "Numerator"
        },
        "_type": "CQM::ProportionPopulationMap"
      },
      "title": "Population Criteria Section"
    }
  ],
  "source_data_criteria": [
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.101.12.1048",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: Face-to-FaceInteraction",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742a5",
      "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.464.1003.109.12.1013",
      "components": null,
      "dataElementCodes": [

      ],
      "description": "Procedure, Performed: DialysisServices",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "id": "5d289cbc31fe5f8b4f7742a6",
      "incisionDatetime": null,
      "method": null,
      "negationRationale": null,
      "performer": null,
      "priority": null,
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmTitle": "Procedure, Performed",
      "qdmVersion": "5.5",
      "rank": null,
      "reason": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "status": null,
      "_type": "QDM::ProcedurePerformed"
    },
    {
      "anatomicalLocationSite": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.109.12.1012",
      "components": null,
      "dataElementCodes": [

      ],
      "description": "Procedure, Performed: KidneyTransplant",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "id": "5d289cbc31fe5f8b4f7742a7",
      "incisionDatetime": null,
      "method": null,
      "negationRationale": null,
      "performer": null,
      "priority": null,
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmTitle": "Procedure, Performed",
      "qdmVersion": "5.5",
      "rank": null,
      "reason": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "status": null,
      "_type": "QDM::ProcedurePerformed"
    },
    {
      "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": "5d289cbc31fe5f8b4f7742a8",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "gender",
      "qdmTitle": "Patient Characteristic Sex",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicSex"
    },
    {
      "admissionSource": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.109.12.1014",
      "dataElementCodes": [

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

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742a9",
      "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.113883.3.526.3.1139",
      "dataElementCodes": [

      ],
      "description": "Medication, Active: ACEInhibitororARB",
      "dosage": null,
      "frequency": null,
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.44",
      "id": "5d289cbc31fe5f8b4f7742aa",
      "qdmCategory": "medication",
      "qdmStatus": "active",
      "qdmTitle": "Medication, Active",
      "qdmVersion": "5.5",
      "recorder": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "route": null,
      "_type": "QDM::MedicationActive"
    },
    {
      "anatomicalLocationSite": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.109.12.1028",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: KidneyFailure",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cbc31fe5f8b4f7742ab",
      "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.1025",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: PreventiveCareServices-EstablishedOfficeVisit18andUp",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742ac",
      "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.464.1003.109.12.1004",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: DiabeticNephropathy",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cbc31fe5f8b4f7742ad",
      "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.1016",
      "dataElementCodes": [

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

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742ae",
      "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.113762.1.4.1108.15",
      "dataElementCodes": [

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

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

      ],
      "description": "Intervention, Performed: OtherServicesRelatedtoDialysis",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.36",
      "id": "5d289cbc31fe5f8b4f7742b1",
      "negationRationale": null,
      "performer": null,
      "qdmCategory": "intervention",
      "qdmStatus": "performed",
      "qdmTitle": "Intervention, Performed",
      "qdmVersion": "5.5",
      "reason": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "status": null,
      "_type": "QDM::InterventionPerformed"
    },
    {
      "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": "5d289cbc31fe5f8b4f7742b2",
      "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.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": "5d289cbc31fe5f8b4f7742b3",
      "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.464.1003.109.12.1017",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: HypertensiveChronicKidneyDisease",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cbc31fe5f8b4f7742b4",
      "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.3591",
      "dataElementCodes": [

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

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

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742b6",
      "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.464.1003.109.12.1018",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: GlomerulonephritisandNephroticSyndrome",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cbc31fe5f8b4f7742b7",
      "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.464.1003.109.12.1016",
      "dataElementCodes": [

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

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

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742b9",
      "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.464.1003.109.12.1011",
      "components": null,
      "dataElementCodes": [

      ],
      "description": "Procedure, Performed: VascularAccessforDialysis",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.67",
      "id": "5d289cbc31fe5f8b4f7742ba",
      "incisionDatetime": null,
      "method": null,
      "negationRationale": null,
      "performer": null,
      "priority": null,
      "qdmCategory": "procedure",
      "qdmStatus": "performed",
      "qdmTitle": "Procedure, Performed",
      "qdmVersion": "5.5",
      "rank": null,
      "reason": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "status": null,
      "_type": "QDM::ProcedurePerformed"
    },
    {
      "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": "5d289cbc31fe5f8b4f7742bb",
      "qdmCategory": "patient_characteristic",
      "qdmStatus": "ethnicity",
      "qdmTitle": "Patient Characteristic Ethnicity",
      "qdmVersion": "5.5",
      "_type": "QDM::PatientCharacteristicEthnicity"
    },
    {
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.109.12.1024",
      "components": null,
      "dataElementCodes": [

      ],
      "description": "Laboratory Test, Performed: UrineProteinTests",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.42",
      "id": "5d289cbc31fe5f8b4f7742bc",
      "method": null,
      "negationRationale": null,
      "performer": null,
      "qdmCategory": "laboratory_test",
      "qdmStatus": "performed",
      "qdmTitle": "Laboratory Test, Performed",
      "qdmVersion": "5.5",
      "reason": null,
      "referenceRange": null,
      "relevantDatetime": null,
      "relevantPeriod": null,
      "result": null,
      "resultDatetime": null,
      "status": null,
      "_type": "QDM::LaboratoryTestPerformed"
    },
    {
      "anatomicalLocationSite": null,
      "authorDatetime": null,
      "codeListId": "2.16.840.1.113883.3.464.1003.103.12.1001",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: Diabetes",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cbc31fe5f8b4f7742bd",
      "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.1023",
      "dataElementCodes": [

      ],
      "description": "Encounter, Performed: PreventiveCareServices-InitialOfficeVisit18andUp",
      "diagnoses": null,
      "dischargeDisposition": null,
      "facilityLocations": [

      ],
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.5",
      "id": "5d289cbc31fe5f8b4f7742be",
      "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.526.3.1003",
      "dataElementCodes": [

      ],
      "description": "Diagnosis: Proteinuria",
      "hqmfOid": "2.16.840.1.113883.10.20.28.4.110",
      "id": "5d289cbc31fe5f8b4f7742bf",
      "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"
    }
  ],
  "title": "Diabetes: Medical Attention for Nephropathy",
  "updated_at": null,
  "value_set_ids": [
    "5d289cbc31fe5f8b4f774284",
    "5d289cbc31fe5f8b4f774285",
    "5d289cbc31fe5f8b4f774286",
    "5d289cbc31fe5f8b4f774287",
    "5d289cbc31fe5f8b4f774288",
    "5d289cbc31fe5f8b4f774289",
    "5d289cbc31fe5f8b4f77428a",
    "5d289cbc31fe5f8b4f77428b",
    "5d289cbc31fe5f8b4f77428c",
    "5d289cbc31fe5f8b4f77428d",
    "5d289cbc31fe5f8b4f77428e",
    "5d289cbc31fe5f8b4f77428f",
    "5d289cbc31fe5f8b4f774290",
    "5d289cbc31fe5f8b4f774291",
    "5d289cbc31fe5f8b4f774292",
    "5d289cbc31fe5f8b4f774293",
    "5d289cbc31fe5f8b4f774294",
    "5d289cbc31fe5f8b4f774295",
    "5d289cbc31fe5f8b4f774296",
    "5d289cbc31fe5f8b4f774297",
    "5d289cbc31fe5f8b4f774298",
    "5d289cbc31fe5f8b4f774299",
    "5d289cbc31fe5f8b4f77429a",
    "5d289cbc31fe5f8b4f77429b",
    "5d289cbc31fe5f8b4f77429c",
    "5d289cbc31fe5f8b4f77429d",
    "5d289cbc31fe5f8b4f77429e",
    "5d289cbc31fe5f8b4f77429f",
    "5d289cbc31fe5f8b4f7742a0",
    "5d289cbc31fe5f8b4f7742a1",
    "5d289cbc31fe5f8b4f7742a2",
    "5d289cbc31fe5f8b4f7742a3",
    "5d289cbc31fe5f8b4f7742a4"
  ]
}