PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.cqm@3.0.0-ballot
    http://hl7.org/fhir/uv/cqm/Measure/DEVComponent
{
  "description": "Rate of emergency department visits per 1,000 patient-months for patients 18-75 years of age with diabetes during the measurement period. This is an example only.",
  "_filename": "examples/Measure-DEVComponent.json",
  "package_name": "hl7.fhir.uv.cqm",
  "date": "2026-10-25",
  "group": [ {
    "extension": [ {
      "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId",
      "valueString": "primary"
    } ],
    "population": [ {
      "id": "initial-population",
      "code": {
        "coding": [ {
          "code": "initial-population",
          "system": "http://terminology.hl7.org/CodeSystem/measure-population",
          "display": "Initial Population"
        } ]
      },
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Initial Population"
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
        "valueString": "primary-devcomponent-initial-population"
      } ]
    }, {
      "id": "denominator",
      "code": {
        "coding": [ {
          "code": "denominator",
          "system": "http://terminology.hl7.org/CodeSystem/measure-population",
          "display": "Denominator"
        } ]
      },
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Denominator"
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
        "valueString": "primary-devcomponent-denominator"
      } ]
    }, {
      "id": "denominator-exclusion",
      "code": {
        "coding": [ {
          "code": "denominator-exclusion",
          "system": "http://terminology.hl7.org/CodeSystem/measure-population",
          "display": "Denominator Exclusion"
        } ]
      },
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Denominator Exclusion"
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
        "valueString": "primary-devcomponent-denominator-exclusion"
      } ]
    }, {
      "id": "numerator",
      "code": {
        "coding": [ {
          "code": "numerator",
          "system": "http://terminology.hl7.org/CodeSystem/measure-population",
          "display": "Numerator"
        } ]
      },
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Numerator"
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
        "valueString": "primary-devcomponent-numerator"
      } ]
    }, {
      "id": "denominator-observation",
      "code": {
        "coding": [ {
          "code": "measure-observation",
          "system": "http://terminology.hl7.org/CodeSystem/measure-population",
          "display": "Measure Observation"
        } ]
      },
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Denominator Observation"
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference",
        "valueString": "denominator"
      }, {
        "url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-aggregateMethod",
        "valueCode": "sum"
      }, {
        "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
        "valueString": "primary-devcomponent-denominator-observation"
      } ]
    }, {
      "id": "numerator-observation",
      "code": {
        "coding": [ {
          "code": "measure-observation",
          "system": "http://terminology.hl7.org/CodeSystem/measure-population",
          "display": "Measure Observation"
        } ]
      },
      "criteria": {
        "language": "text/cql-identifier",
        "expression": "Numerator Observation"
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference",
        "valueString": "numerator"
      }, {
        "url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-aggregateMethod",
        "valueCode": "sum"
      }, {
        "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
        "valueString": "primary-devcomponent-numerator-observation"
      } ]
    } ]
  } ],
  "meta": {
    "profile": [ "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure", "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure", "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure", "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-ratiomeasure", "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure" ]
  },
  "publisher": "HL7 International / Clinical Quality Information",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": "DEVComponent",
  "useContext": [ {
    "code": {
      "code": "venue",
      "system": "http://terminology.hl7.org/CodeSystem/usage-context-type",
      "display": "Clinical Venue"
    },
    "valueCodeableConcept": {
      "coding": [ {
        "code": "ec",
        "system": "http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes",
        "display": "EC"
      } ]
    }
  } ],
  "type": "[{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/measure-type\\\", :code \\\"outcome\\\", :display \\\"Outcome\\\"}]}]",
  "experimental": "true",
  "resourceType": "Measure",
  "title": "Diabetes: Emergency Department Visits per 1,000 Patient-Months",
  "supplementalData": [ {
    "id": "sde-ethnicity",
    "usage": [ {
      "coding": [ {
        "code": "supplemental-data",
        "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage"
      } ]
    } ],
    "criteria": {
      "language": "text/cql-identifier",
      "expression": "SDE Ethnicity"
    },
    "extension": [ {
      "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
      "valueString": "devcomponent-sde-ethnicity"
    } ]
  }, {
    "id": "sde-payer",
    "usage": [ {
      "coding": [ {
        "code": "supplemental-data",
        "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage"
      } ]
    } ],
    "criteria": {
      "language": "text/cql-identifier",
      "expression": "SDE Payer"
    },
    "extension": [ {
      "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
      "valueString": "devcomponent-sde-payer"
    } ]
  }, {
    "id": "sde-race",
    "usage": [ {
      "coding": [ {
        "code": "supplemental-data",
        "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage"
      } ]
    } ],
    "criteria": {
      "language": "text/cql-identifier",
      "expression": "SDE Race"
    },
    "extension": [ {
      "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
      "valueString": "devcomponent-sde-race"
    } ]
  }, {
    "id": "sde-sex",
    "usage": [ {
      "coding": [ {
        "code": "supplemental-data",
        "system": "http://terminology.hl7.org/CodeSystem/measure-data-usage"
      } ]
    } ],
    "criteria": {
      "language": "text/cql-identifier",
      "expression": "SDE Sex"
    },
    "extension": [ {
      "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId",
      "valueString": "devcomponent-sde-sex"
    } ]
  } ],
  "library": [ "http://hl7.org/fhir/uv/cqm/Library/DEVComponent" ],
  "package_version": "3.0.0-ballot",
  "extension": [ {
    "url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis",
    "valueCode": "boolean"
  }, {
    "url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-scoringUnit",
    "valueCodeableConcept": {
      "text": "per 1,000 patient-months",
      "coding": [ {
        "code": "/1000.mo",
        "system": "http://unitsofmeasure.org",
        "display": "/1000.mo"
      } ]
    }
  }, {
    "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
    "valueReference": {
      "reference": "Device/software-system-example"
    }
  }, {
    "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
    "valueCanonical": "#effective-data-requirements"
  } ],
  "contained": [ {
    "dataRequirement": [ {
      "type": "Patient",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ],
      "mustSupport": [ "url", "extension", "value" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
      } ],
      "mustSupport": [ "type", "period", "status" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
      } ],
      "mustSupport": [ "type", "period", "status" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
      } ],
      "mustSupport": [ "type", "period", "status" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
      } ],
      "mustSupport": [ "type", "period", "status" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
      } ],
      "mustSupport": [ "type", "period", "status" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
      } ],
      "mustSupport": [ "type", "status", "hospitalization", "hospitalization.dischargeDisposition", "period" ]
    }, {
      "type": "Encounter",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
      } ],
      "mustSupport": [ "type", "period", "status" ]
    }, {
      "type": "Condition",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Condition" ],
      "codeFilter": [ {
        "path": "code",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001"
      } ],
      "mustSupport": [ "code" ]
    }, {
      "type": "Coverage",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Coverage" ],
      "codeFilter": [ {
        "path": "type",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
      } ],
      "mustSupport": [ "type", "period" ]
    }, {
      "type": "ServiceRequest",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
      "codeFilter": [ {
        "path": "code",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
      } ],
      "mustSupport": [ "code", "intent", "authoredOn" ]
    }, {
      "type": "Procedure",
      "profile": [ "http://hl7.org/fhir/StructureDefinition/Procedure" ],
      "codeFilter": [ {
        "path": "code",
        "valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
      } ],
      "mustSupport": [ "code", "status", "performed" ]
    } ],
    "name": "EffectiveDataRequirements",
    "type": {
      "coding": [ {
        "code": "module-definition",
        "system": "http://terminology.hl7.org/CodeSystem/library-type"
      } ]
    },
    "resourceType": "Library",
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
      "valueCoding": {
        "code": "428361000124107",
        "system": "http://snomed.info/sct",
        "display": "Discharge to home for hospice care (procedure)",
        "version": "http://snomed.info/sct/731000124108/version/201709"
      }
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
      "valueCoding": {
        "code": "428371000124100",
        "system": "http://snomed.info/sct",
        "display": "Discharge to healthcare facility for hospice care (procedure)",
        "version": "http://snomed.info/sct/731000124108/version/201709"
      }
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "SupplementalDataElements"
      }, {
        "url": "name",
        "valueString": "SDE Sex"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end"
      }, {
        "url": "displaySequence",
        "valueInteger": 0
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "SDE Sex"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Sex\":\n  SDE.\"SDE Sex\""
      }, {
        "url": "displaySequence",
        "valueInteger": 1
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Emergency Department Visits"
      }, {
        "url": "statement",
        "valueString": "define \"Emergency Department Visits\":\n  [Encounter: \"Emergency Department Visit\"] EDVisit\n      where EDVisit.period during \"Measurement Period\"\n        and EDVisit.status = 'finished'"
      }, {
        "url": "displaySequence",
        "valueInteger": 2
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Numerator"
      }, {
        "url": "statement",
        "valueString": "define \"Numerator\":\n  exists \"Emergency Department Visits\""
      }, {
        "url": "displaySequence",
        "valueInteger": 3
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "AdultOutpatientEncounters"
      }, {
        "url": "name",
        "valueString": "Qualifying Encounters"
      }, {
        "url": "statement",
        "valueString": "define \"Qualifying Encounters\":\n  ([Encounter: \"Office Visit\"]\n    union [Encounter: \"Annual Wellness Visit\"]\n    union [Encounter: \"Preventive Care Services - Established Office Visit, 18 and Up\"]\n    union [Encounter: \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\n    union [Encounter: \"Home Healthcare Services\"]\n  ) ValidEncounter\n    where ValidEncounter.period during \"Measurement Period\"\n      and ValidEncounter.status  = 'finished'"
      }, {
        "url": "displaySequence",
        "valueInteger": 4
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Diabetes Diagnosis"
      }, {
        "url": "statement",
        "valueString": "define \"Diabetes Diagnosis\":\n  [Condition: \"Diabetes\"] DiabetesCondition\n      where Global.\"Prevalence Period\" ( DiabetesCondition ) overlaps \"Measurement Period\""
      }, {
        "url": "displaySequence",
        "valueInteger": 5
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Initial Population"
      }, {
        "url": "statement",
        "valueString": "define \"Initial Population\":\n  Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), end of \"Measurement Period\" ) in Interval[18, 75]\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\"\n      and exists \"Diabetes Diagnosis\""
      }, {
        "url": "displaySequence",
        "valueInteger": 6
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Denominator"
      }, {
        "url": "statement",
        "valueString": "define \"Denominator\":\n  \"Initial Population\""
      }, {
        "url": "displaySequence",
        "valueInteger": 7
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "SupplementalDataElements"
      }, {
        "url": "name",
        "valueString": "SDE Payer"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }"
      }, {
        "url": "displaySequence",
        "valueInteger": 8
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "SDE Payer"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Payer\":\n  SDE.\"SDE Payer\""
      }, {
        "url": "displaySequence",
        "valueInteger": 9
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "SupplementalDataElements"
      }, {
        "url": "name",
        "valueString": "SDE Ethnicity"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"
      }, {
        "url": "displaySequence",
        "valueInteger": 10
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "SDE Ethnicity"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""
      }, {
        "url": "displaySequence",
        "valueInteger": 11
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "Hospice"
      }, {
        "url": "name",
        "valueString": "Has Hospice"
      }, {
        "url": "statement",
        "valueString": "define \"Has Hospice\":\n\texists (\n    [Encounter: \"Encounter Inpatient\"] DischargeHospice\n\t\t\twhere DischargeHospice.status = 'finished'\n\t\t    and (\n\t        DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n\t\t\t\t    or DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\"\n\t    \t)\n\t\t\t\tand DischargeHospice.period ends during \"Measurement Period\"\n\t)\n    or exists (\n      [ServiceRequest: \"Hospice care ambulatory\"] HospiceOrder\n        where HospiceOrder.intent = 'order'\n            and HospiceOrder.authoredOn in \"Measurement Period\"\n    )\n    or exists (\n      [Procedure: \"Hospice care ambulatory\"] HospicePerformed\n        where HospicePerformed.status = 'completed'\n          and Global.\"Normalize Interval\"(HospicePerformed.performed) overlaps \"Measurement Period\"\n    )"
      }, {
        "url": "displaySequence",
        "valueInteger": 12
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Denominator Exclusion"
      }, {
        "url": "statement",
        "valueString": "define \"Denominator Exclusion\":\n  Hospice.\"Has Hospice\""
      }, {
        "url": "displaySequence",
        "valueInteger": 13
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "SupplementalDataElements"
      }, {
        "url": "name",
        "valueString": "SDE Race"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"
      }, {
        "url": "displaySequence",
        "valueInteger": 14
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "SDE Race"
      }, {
        "url": "statement",
        "valueString": "define \"SDE Race\":\n  SDE.\"SDE Race\""
      }, {
        "url": "displaySequence",
        "valueInteger": 15
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToString"
      }, {
        "url": "statement",
        "valueString": "define function ToString(value AdministrativeGender): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 16
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToInterval"
      }, {
        "url": "statement",
        "valueString": "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"
      }, {
        "url": "displaySequence",
        "valueInteger": 17
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToString"
      }, {
        "url": "statement",
        "valueString": "define function ToString(value EncounterStatus): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 18
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Denominator Observation"
      }, {
        "url": "statement",
        "valueString": "// Patient-months of eligibility contributed by each patient in the denominator\ndefine function \"Denominator Observation\"():\n  months between start of \"Measurement Period\" and successor of end of \"Measurement Period\""
      }, {
        "url": "displaySequence",
        "valueInteger": 19
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "MATGlobalCommonFunctions"
      }, {
        "url": "name",
        "valueString": "CalendarAgeInYearsAt"
      }, {
        "url": "statement",
        "valueString": "define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\n\tyears between ToDate(BirthDateTime)and ToDate(AsOf)"
      }, {
        "url": "displaySequence",
        "valueInteger": 20
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "MATGlobalCommonFunctions"
      }, {
        "url": "name",
        "valueString": "ToDate"
      }, {
        "url": "statement",
        "valueString": "define function \"ToDate\"(Value DateTime):\n\tDateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)"
      }, {
        "url": "displaySequence",
        "valueInteger": 21
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToDate"
      }, {
        "url": "statement",
        "valueString": "define function ToDate(value date): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 22
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "MATGlobalCommonFunctions"
      }, {
        "url": "name",
        "valueString": "Prevalence Period"
      }, {
        "url": "statement",
        "valueString": "define function \"Prevalence Period\"(condition Condition):\n  Interval[start of \"Normalize Interval\"(condition.onset), end of \"Normalize Abatement\"(condition)]"
      }, {
        "url": "displaySequence",
        "valueInteger": 23
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "MATGlobalCommonFunctions"
      }, {
        "url": "name",
        "valueString": "Normalize Interval"
      }, {
        "url": "statement",
        "valueString": "/*\n*\n*    CQFMeasures Common Logic\n*\n*/\n\ndefine function \"Normalize Interval\"(choice Choice, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n  case\n\t  when choice is FHIR.dateTime then\n    \tInterval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n\t\twhen choice is FHIR.Period then\n  \t\tFHIRHelpers.ToInterval(choice as FHIR.Period)\n\t\twhen choice is FHIR.instant then\n\t\t\tInterval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n\t\twhen choice is FHIR.Age then\n\t\t  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n\t\t\t  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n\t\twhen choice is FHIR.Range then\n\t\t  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n\t\t\t  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n\t\twhen choice is FHIR.Timing then\n\t\t  Message(null as Interval, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n    when choice is FHIR.string then\n      Message(null as Interval, true, '1', 'Error', 'Cannot compute an interval from a String value')\n\t\telse\n\t\t\tnull as Interval\n\tend"
      }, {
        "url": "displaySequence",
        "valueInteger": 24
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToDateTime"
      }, {
        "url": "statement",
        "valueString": "define function ToDateTime(value dateTime): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 25
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToDateTime"
      }, {
        "url": "statement",
        "valueString": "define function ToDateTime(value instant): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 26
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToQuantity"
      }, {
        "url": "statement",
        "valueString": "/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n    end"
      }, {
        "url": "displaySequence",
        "valueInteger": 27
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToCalendarUnit"
      }, {
        "url": "statement",
        "valueString": "/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end"
      }, {
        "url": "displaySequence",
        "valueInteger": 28
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "MATGlobalCommonFunctions"
      }, {
        "url": "name",
        "valueString": "Normalize Abatement"
      }, {
        "url": "statement",
        "valueString": "define function \"Normalize Abatement\"(condition Condition):\n\tif condition.abatement is FHIR.dateTime then\n\t  Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n\telse if condition.abatement is FHIR.Period then\n\t  FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n\telse if condition.abatement is FHIR.string then\n    Message(null as Interval, true, '1', 'Error', 'Cannot compute an interval from a String value')\n\telse if condition.abatement is FHIR.Age then\n\t\tInterval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n\t\t\tFHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n\telse if condition.abatement is FHIR.Range then\n\t  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n\t\t  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n\telse if condition.abatement is FHIR.boolean then\n\t  Interval[end of \"Normalize Interval\"(condition.onset), condition.recordedDate)\n\telse null"
      }, {
        "url": "displaySequence",
        "valueInteger": 29
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToString"
      }, {
        "url": "statement",
        "valueString": "define function ToString(value uri): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 30
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToConcept"
      }, {
        "url": "statement",
        "valueString": "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"
      }, {
        "url": "displaySequence",
        "valueInteger": 31
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToCode"
      }, {
        "url": "statement",
        "valueString": "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"
      }, {
        "url": "displaySequence",
        "valueInteger": 32
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToString"
      }, {
        "url": "statement",
        "valueString": "define function ToString(value ServiceRequestIntent): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 33
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "FHIRHelpers"
      }, {
        "url": "name",
        "valueString": "ToString"
      }, {
        "url": "statement",
        "valueString": "define function ToString(value ProcedureStatus): value.value"
      }, {
        "url": "displaySequence",
        "valueInteger": 34
      } ]
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
      "extension": [ {
        "url": "libraryName",
        "valueString": "DEVComponent"
      }, {
        "url": "name",
        "valueString": "Numerator Observation"
      }, {
        "url": "statement",
        "valueString": "// Number of emergency department visits contributed by each patient in the numerator\ndefine function \"Numerator Observation\"():\n  Count ( \"Emergency Department Visits\" )"
      }, {
        "url": "displaySequence",
        "valueInteger": 35
      } ]
    } ],
    "status": "active",
    "id": "effective-data-requirements",
    "relatedArtifact": [ {
      "type": "depends-on",
      "display": "FHIR model information",
      "resource": "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"
    }, {
      "type": "depends-on",
      "display": "Library SDE",
      "resource": "http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements"
    }, {
      "type": "depends-on",
      "display": "Library FHIRHelpers",
      "resource": "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.2-ballot"
    }, {
      "type": "depends-on",
      "display": "Library Global",
      "resource": "http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions"
    }, {
      "type": "depends-on",
      "display": "Library AdultOutpatientEncounters",
      "resource": "http://hl7.org/fhir/uv/cqm/Library/AdultOutpatientEncounters"
    }, {
      "type": "depends-on",
      "display": "Library Hospice",
      "resource": "http://hl7.org/fhir/uv/cqm/Library/Hospice"
    }, {
      "type": "depends-on",
      "display": "Code system SNOMEDCT:2017-09",
      "resource": "http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709"
    }, {
      "type": "depends-on",
      "display": "Value set Emergency Department Visit",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
    }, {
      "type": "depends-on",
      "display": "Value set Office Visit",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
    }, {
      "type": "depends-on",
      "display": "Value set Annual Wellness Visit",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
    }, {
      "type": "depends-on",
      "display": "Value set Preventive Care Services - Established Office Visit, 18 and Up",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
    }, {
      "type": "depends-on",
      "display": "Value set Preventive Care Services-Initial Office Visit, 18 and Up",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
    }, {
      "type": "depends-on",
      "display": "Value set Home Healthcare Services",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
    }, {
      "type": "depends-on",
      "display": "Value set Diabetes",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001"
    }, {
      "type": "depends-on",
      "display": "Value set Payer",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"
    }, {
      "type": "depends-on",
      "display": "Value set Encounter Inpatient",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
    }, {
      "type": "depends-on",
      "display": "Value set Hospice care ambulatory",
      "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"
    } ],
    "parameter": [ {
      "max": "1",
      "min": 0,
      "use": "in",
      "name": "Measurement Period",
      "type": "Period"
    }, {
      "max": "1",
      "min": 0,
      "use": "out",
      "name": "SDE Sex",
      "type": "Coding"
    }, {
      "max": "1",
      "min": 0,
      "use": "out",
      "name": "Numerator",
      "type": "boolean"
    }, {
      "max": "1",
      "min": 0,
      "use": "out",
      "name": "Denominator",
      "type": "boolean"
    }, {
      "max": "*",
      "min": 0,
      "use": "out",
      "name": "SDE Payer",
      "type": "Resource"
    }, {
      "max": "1",
      "min": 0,
      "use": "out",
      "name": "Initial Population",
      "type": "boolean"
    }, {
      "max": "*",
      "min": 0,
      "use": "out",
      "name": "SDE Ethnicity",
      "type": "Coding"
    }, {
      "max": "1",
      "min": 0,
      "use": "out",
      "name": "Denominator Exclusion",
      "type": "boolean"
    }, {
      "max": "*",
      "min": 0,
      "use": "out",
      "name": "SDE Race",
      "type": "Coding"
    } ]
  } ],
  "status": "active",
  "language": "en",
  "id": "f82ccb38-7fac-420d-a0f7-f7a6312302e4",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/cqm/Measure/DEVComponent",
  "identifier": [ {
    "use": "official",
    "type": {
      "coding": [ {
        "code": "version-independent",
        "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
        "display": "Version Independent"
      } ]
    },
    "value": "http://example.org/fhir/us/cqm/Measure/DEVComponent",
    "system": "urn:ietf:rfc:3986"
  }, {
    "use": "official",
    "type": {
      "coding": [ {
        "code": "version-specific",
        "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
        "display": "Version Specific"
      } ]
    },
    "value": "http://example.org/fhir/us/cqm/Measure/DEVComponent|0.0.001",
    "system": "urn:ietf:rfc:3986"
  }, {
    "use": "usual",
    "type": {
      "coding": [ {
        "code": "short-name",
        "system": "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
        "display": "Short Name"
      } ]
    },
    "value": "Diabetes ED Visit Rate"
  }, {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.61.29.34",
    "system": "urn:ietf:rfc:3986"
  } ],
  "scoring": {
    "coding": [ {
      "code": "ratio",
      "system": "http://terminology.hl7.org/CodeSystem/measure-scoring",
      "display": "Ratio"
    } ]
  },
  "version": "3.0.0-ballot",
  "contact": [ {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/cqi",
      "system": "url"
    } ]
  } ],
  "improvementNotation": {
    "coding": [ {
      "code": "decrease",
      "system": "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"
    } ]
  },
  "effectivePeriod": {
    "end": "2022-12-31",
    "start": "2022-01-01"
  }
}