{
"description": "This is an example only.",
"_filename": "example/Measure-HBPComponent.json",
"package_name": "hl7.fhir.uv.cqm",
"date": "2025-08-13T17:14:51-06:00",
"group": [ {
"extension": [ {
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId",
"valueString": "primary"
} ],
"population": [ {
"id": "53248B01-E1CF-4C67-AE39-8483F8114CAE",
"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-hbpcomponent-initial-population"
} ]
}, {
"id": "9D2AB719-A4D5-41D3-8785-7DBE8CA10FD3",
"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-hbpcomponent-denominator"
} ]
}, {
"id": "165DEA75-8DF1-4F2C-9F8A-BBEE1A02A5D6",
"code": {
"coding": [ {
"code": "denominator-exclusion",
"system": "http://terminology.hl7.org/CodeSystem/measure-population",
"display": "Denominator Exclusion"
} ]
},
"criteria": {
"language": "text/cql-identifier",
"expression": "Denominator Exclusions"
},
"extension": [ {
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
"valueString": "primary-hbpcomponent-denominator-exclusion"
} ]
}, {
"id": "BF70F2AC-568C-4587-AF54-E4F54E6FCC83",
"code": {
"coding": [ {
"code": "denominator-exception",
"system": "http://terminology.hl7.org/CodeSystem/measure-population",
"display": "Denominator Exception"
} ]
},
"criteria": {
"language": "text/cql-identifier",
"expression": "Denominator Exceptions"
},
"extension": [ {
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId",
"valueString": "primary-hbpcomponent-denominator-exception"
} ]
}, {
"id": "7B0319A6-913B-4F39-8D3C-04FA0A6B5C3A",
"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-hbpcomponent-numerator"
} ]
} ]
} ],
"meta": {
"profile": [ "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure", "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure", "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure" ]
},
"publisher": "HL7 International / Clinical Quality Information",
"jurisdiction": [ {
"coding": [ {
"code": "001",
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
} ]
} ],
"name": "HBPComponent",
"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 \\\"process\\\"}]}]",
"experimental": "true",
"resourceType": "Measure",
"title": "Preventive Care and Screening: Screening for High Blood Pressure and Follow-Up Documented",
"supplementalData": [ {
"id": "cd02ebb6-a0bf-4196-90f9-80f2a8a79bbf",
"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": "hbpcomponent-sde-ethnicity"
} ]
}, {
"id": "a67a3fc7-cedd-4d78-b7b0-4718fa7f3e2b",
"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": "hbpcomponent-sde-payer"
} ]
}, {
"id": "3dc8840d-cc30-44af-a233-3b2b6c602060",
"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": "hbpcomponent-sde-race"
} ]
}, {
"id": "5a4e95aa-f8b3-400f-89b3-02555a361251",
"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": "ccscomponent-sde-sex"
} ]
} ],
"library": [ "http://hl7.org/fhir/uv/cqm/Library/HBPComponent" ],
"package_version": "2.0.0-ballot",
"extension": [ {
"url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis",
"valueCode": "Encounter"
}, {
"url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
"valueReference": {
"reference": "Device/software-system-example"
}
}, {
"url": "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-supplementalDataGuidance",
"extension": [ {
"url": "usage",
"valueCodeableConcept": {
"coding": [ {
"code": "supplemental-data",
"system": "http://terminology.hl7.org/CodeSystem/measure-data-usage"
} ]
}
}, {
"url": "guidance",
"valueMarkdown": "This guidance provides instructions on how to collect and report supplemental data elements for this measure."
} ]
}, {
"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": [ "birthDate", "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.600.1920"
} ],
"mustSupport": [ "type", "period" ]
}, {
"type": "Observation",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Observation" ],
"codeFilter": [ {
"code": [ {
"code": "8480-6",
"system": "http://loinc.org",
"display": "Systolic blood pressure"
} ],
"path": "code"
} ],
"mustSupport": [ "code", "effective", "status", "value" ]
}, {
"type": "Observation",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Observation" ],
"codeFilter": [ {
"code": [ {
"code": "8462-4",
"system": "http://loinc.org",
"display": "Diastolic blood pressure"
} ],
"path": "code"
} ],
"mustSupport": [ "code", "effective", "status", "value" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"code": [ {
"code": "34534-8",
"system": "http://loinc.org",
"display": "12 lead EKG panel"
} ],
"path": "code"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"code": [ {
"code": "11524-6",
"system": "http://loinc.org",
"display": "EKG study"
} ],
"path": "code"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1579"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1578"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1580"
} ],
"mustSupport": [ "code", "authoredOn", "reasonCode" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1581"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1510"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1515"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1518"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1583"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "ServiceRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ],
"codeFilter": [ {
"path": "code",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1482"
} ],
"mustSupport": [ "code", "authoredOn" ]
}, {
"type": "MedicationRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ],
"codeFilter": [ {
"path": "medication",
"valueSet": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.1577"
} ],
"mustSupport": [ "medication", "authoredOn" ]
}, {
"type": "MedicationRequest",
"profile": [ "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ],
"mustSupport": [ "medication.reference", "authoredOn" ]
}, {
"type": "Medication",
"profile": [ "http://hl7.org/fhir/StructureDefinition/Medication" ],
"mustSupport": [ "id", "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": "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.600.263"
} ],
"mustSupport": [ "code" ]
} ],
"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": "8480-6",
"system": "http://loinc.org",
"display": "Systolic blood pressure"
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding": {
"code": "8462-4",
"system": "http://loinc.org",
"display": "Diastolic blood pressure"
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding": {
"code": "34534-8",
"system": "http://loinc.org",
"display": "12 lead EKG panel"
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding": {
"code": "11524-6",
"system": "http://loinc.org",
"display": "EKG study"
}
}, {
"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": "HBPComponent"
}, {
"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": "HBPComponent"
}, {
"url": "name",
"valueString": "Qualifying Encounter During Measurement Period"
}, {
"url": "statement",
"valueString": "define \"Qualifying Encounter During Measurement Period\":\n [Encounter: \"Encounter to Screen for Blood Pressure\"] ValidEncounter\n where ValidEncounter.period during \"Measurement Period\""
}, {
"url": "displaySequence",
"valueInteger": 2
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Normal Blood Pressure Reading"
}, {
"url": "statement",
"valueString": "define \"Encounter with Normal Blood Pressure Reading\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n let EncounterLastSystolicBP: Last([Observation: \"Systolic blood pressure\"] SystolicBP\n where SystolicBP.effective during QualifyingEncounter.period\n sort by effective\n ),\n EncounterLastDiastolicBP: Last([Observation: \"Diastolic blood pressure\"] DiastolicBP\n where DiastolicBP.effective during QualifyingEncounter.period\n sort by effective\n )\n where EncounterLastSystolicBP.value included in Interval[1 'mm[Hg]', 120 'mm[Hg]' )\n and EncounterLastDiastolicBP.value included in Interval[1 'mm[Hg]', 80 'mm[Hg]' )"
}, {
"url": "displaySequence",
"valueInteger": 3
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Prehypertensive Blood Pressure Reading"
}, {
"url": "statement",
"valueString": "define \"Encounter with Prehypertensive Blood Pressure Reading\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n let EncounterLastSystolicBP: Last([Observation: \"Systolic blood pressure\"] SystolicBP\n where SystolicBP.effective during QualifyingEncounter.period\n sort by effective\n ),\n EncounterLastDiastolicBP: Last([Observation: \"Diastolic blood pressure\"] DiastolicBP\n where DiastolicBP.effective during QualifyingEncounter.period\n sort by effective\n )\n where EncounterLastSystolicBP.value included in Interval[1 'mm[Hg]', 140 'mm[Hg]' )\n and EncounterLastDiastolicBP.value included in Interval[1 'mm[Hg]', 90 'mm[Hg]' )\n and ( EncounterLastSystolicBP.value >= 120 'mm[Hg]'\n or EncounterLastDiastolicBP.value >= 80 'mm[Hg]'\n )"
}, {
"url": "displaySequence",
"valueInteger": 4
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Intervention for Hypertension"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Intervention for Hypertension\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with ( [ServiceRequest: \"Lifestyle Recommendation\"]\n union [ServiceRequest: \"Weight Reduction Recommended\"]\n union [ServiceRequest: \"Dietary Recommendations\"]\n union [ServiceRequest: \"Recommendation to Increase Physical Activity\"]\n union [ServiceRequest: \"Referral or Counseling for Alcohol Consumption\"] ) HighBloodPressureIntervention\n such that HighBloodPressureIntervention.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 5
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Follow Up Within One Year"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Follow Up Within One Year\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [ServiceRequest: \"Follow Up Within One Year\"] FollowupOneYear\n such that FollowupOneYear.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 6
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Referral to Alternate Provider for High Blood Pressure Reading"
}, {
"url": "statement",
"valueString": "define \"Encounter with Referral to Alternate Provider for High Blood Pressure Reading\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [ServiceRequest: \"Referral to Primary Care or Alternate Provider\"] Referral\n such that Referral.authoredOn same day as start of QualifyingEncounter.period\n and Referral.reasonCode in \"Finding of Elevated Blood Pressure or Hypertension\""
}, {
"url": "displaySequence",
"valueInteger": 7
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with High Blood Pressure Reading"
}, {
"url": "statement",
"valueString": "define \"Encounter with High Blood Pressure Reading\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n let EncounterLastSystolicBP: Last([Observation: \"Systolic blood pressure\"] SystolicBP\n where SystolicBP.effective during QualifyingEncounter.period\n sort by effective\n ),\n EncounterLastDiastolicBP: Last([Observation: \"Diastolic blood pressure\"] DiastolicBP\n where DiastolicBP.effective during QualifyingEncounter.period\n sort by effective\n )\n where EncounterLastSystolicBP.value > 0 'mm[Hg]'\n and EncounterLastDiastolicBP.value > 0 'mm[Hg]'\n and ( EncounterLastSystolicBP.value >= 140 'mm[Hg]'\n or EncounterLastDiastolicBP.value >= 90 'mm[Hg]'\n )"
}, {
"url": "displaySequence",
"valueInteger": 8
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with High Blood Pressure Reading Within Year Prior"
}, {
"url": "statement",
"valueString": "define \"Encounter with High Blood Pressure Reading Within Year Prior\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n let EncounterLastSystolicBP: Last([Observation: \"Systolic blood pressure\"] SystolicBP\n where SystolicBP.effective 1 year or less before start of QualifyingEncounter.period\n sort by effective\n ),\n EncounterLastDiastolicBP: Last([Observation: \"Diastolic blood pressure\"] DiastolicBP\n where DiastolicBP.effective 1 year or less before start of QualifyingEncounter.period\n sort by effective\n )\n where EncounterLastSystolicBP.value > 0 'mm[Hg]'\n and EncounterLastDiastolicBP.value > 0 'mm[Hg]'\n and ( EncounterLastSystolicBP.value >= 140 'mm[Hg]'\n or EncounterLastDiastolicBP.value >= 90 'mm[Hg]'\n )"
}, {
"url": "displaySequence",
"valueInteger": 9
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with First Hypertensive Reading"
}, {
"url": "statement",
"valueString": "define \"Encounter with First Hypertensive Reading\":\n \"Encounter with High Blood Pressure Reading\"\n except \"Encounter with High Blood Pressure Reading Within Year Prior\""
}, {
"url": "displaySequence",
"valueInteger": 10
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Follow Up Within 4 Weeks"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Follow Up Within 4 Weeks\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [ServiceRequest: \"Follow Up Within 4 Weeks\"] Followup4Weeks\n such that Followup4Weeks.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 11
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Second Hypertensive Reading"
}, {
"url": "statement",
"valueString": "define \"Encounter with Second Hypertensive Reading\":\n \"Encounter with High Blood Pressure Reading\"\n intersect \"Encounter with High Blood Pressure Reading Within Year Prior\""
}, {
"url": "displaySequence",
"valueInteger": 12
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Laboratory Test for Hypertension"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Laboratory Test for Hypertension\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [ServiceRequest: \"Laboratory Tests for Hypertension\"] HypertensionLabs\n such that HypertensionLabs.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 13
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Electrocardiogram for Hypertension"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Electrocardiogram for Hypertension\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with ( [ServiceRequest: \"12 lead EKG panel\"]\n union [ServiceRequest: \"EKG study\"] ) ECG\n such that ECG.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 14
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Hypertension Medication"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Hypertension Medication\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [MedicationRequest: \"Pharmacologic Therapy for Hypertension\"] AntihypertensiveMedication\n such that AntihypertensiveMedication.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 15
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Numerator"
}, {
"url": "statement",
"valueString": "define \"Numerator\":\n \"Encounter with Normal Blood Pressure Reading\"\n union ( \"Encounter with Prehypertensive Blood Pressure Reading\"\n intersect ( ( \"Encounter with Order for Intervention for Hypertension\"\n intersect \"Encounter with Order for Follow Up Within One Year\"\n )\n union \"Encounter with Referral to Alternate Provider for High Blood Pressure Reading\"\n )\n )\n union ( \"Encounter with First Hypertensive Reading\"\n intersect ( ( \"Encounter with Order for Intervention for Hypertension\"\n intersect \"Encounter with Order for Follow Up Within 4 Weeks\"\n )\n union \"Encounter with Referral to Alternate Provider for High Blood Pressure Reading\"\n )\n )\n union ( \"Encounter with Second Hypertensive Reading\"\n intersect ( ( \"Encounter with Order for Intervention for Hypertension\"\n intersect ( \"Encounter with Order for Laboratory Test for Hypertension\"\n union \"Encounter with Order for Electrocardiogram for Hypertension\"\n union \"Encounter with Order for Hypertension Medication\"\n )\n )\n union \"Encounter with Referral to Alternate Provider for High Blood Pressure Reading\"\n )\n )"
}, {
"url": "displaySequence",
"valueInteger": 16
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Initial Population"
}, {
"url": "statement",
"valueString": "define \"Initial Population\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [Patient] BirthDate\n such that Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) >= 18"
}, {
"url": "displaySequence",
"valueInteger": 17
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Denominator"
}, {
"url": "statement",
"valueString": "define \"Denominator\":\n \"Initial Population\""
}, {
"url": "displaySequence",
"valueInteger": 18
} ]
}, {
"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": 19
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "SDE Payer"
}, {
"url": "statement",
"valueString": "define \"SDE Payer\":\n SDE.\"SDE Payer\""
}, {
"url": "displaySequence",
"valueInteger": 20
} ]
}, {
"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": 21
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "SDE Ethnicity"
}, {
"url": "statement",
"valueString": "define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\""
}, {
"url": "displaySequence",
"valueInteger": 22
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Denominator Exclusions"
}, {
"url": "statement",
"valueString": "define \"Denominator Exclusions\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with [Condition: \"Diagnosis of Hypertension\"] Hypertension\n such that Global.\"Prevalence Period\" ( Hypertension ) overlaps before QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 23
} ]
}, {
"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": 24
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "SDE Race"
}, {
"url": "statement",
"valueString": "define \"SDE Race\":\n SDE.\"SDE Race\""
}, {
"url": "displaySequence",
"valueInteger": 25
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement"
}, {
"url": "statement",
"valueString": "define \"Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with ( [Observation: \"Systolic blood pressure\"]\n union [Observation: \"Diastolic blood pressure\"] ) NoBPScreen\n such that ( NoBPScreen.code in \"Medical Reason\"\n or NoBPScreen.code in \"Patient Declined\"\n )\n and NoBPScreen.effective same day as start of QualifyingEncounter.period\n and \"Not Done\"(NoBPScreen)\n and NoBPScreen.status = 'final'"
}, {
"url": "displaySequence",
"valueInteger": 26
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Encounter with Order for Hypertension Follow Up Declined by Patient"
}, {
"url": "statement",
"valueString": "define \"Encounter with Order for Hypertension Follow Up Declined by Patient\":\n \"Qualifying Encounter During Measurement Period\" QualifyingEncounter\n with ( [ServiceRequest: \"12 lead EKG panel\"]\n union [ServiceRequest: \"EKG study\"]\n union [ServiceRequest: \"Follow Up Within One Year\"]\n union [ServiceRequest: \"Follow Up Within 4 Weeks\"]\n union [ServiceRequest: \"Referral to Primary Care or Alternate Provider\"]\n union [ServiceRequest: \"Lifestyle Recommendation\"]\n union [ServiceRequest: \"Weight Reduction Recommended\"]\n union [ServiceRequest: \"Dietary Recommendations\"]\n union [ServiceRequest: \"Recommendation to Increase Physical Activity\"]\n union [ServiceRequest: \"Referral or Counseling for Alcohol Consumption\"]\n union [ServiceRequest: \"Laboratory Tests for Hypertension\"]\n union [MedicationRequest: \"Pharmacologic Therapy for Hypertension\"] ) NoFollowUpOrdered\n such that NoFollowUpOrdered.doNotPerform is true\n and NoFollowUpOrdered.code in \"Patient Declined\"\n and NoFollowUpOrdered.authoredOn same day as start of QualifyingEncounter.period"
}, {
"url": "displaySequence",
"valueInteger": 27
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Denominator Exceptions"
}, {
"url": "statement",
"valueString": "define \"Denominator Exceptions\":\n \"Encounter with Medical Reason for Not Obtaining or Patient Declined Blood Pressure Measurement\"\n union \"Encounter with Order for Hypertension Follow Up Declined by Patient\""
}, {
"url": "displaySequence",
"valueInteger": 28
} ]
}, {
"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": 29
} ]
}, {
"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": 30
} ]
}, {
"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": 31
} ]
}, {
"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": 32
} ]
}, {
"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 FHIR [Range](https://hl7.org/fhir/datatypes.html#Range) value to a CQL Interval of Quantity\n*/\ndefine function ToInterval(range FHIR.Range):\n if range is null then\n null\n else\n Interval[ToQuantity(range.low), ToQuantity(range.high)]"
}, {
"url": "displaySequence",
"valueInteger": 33
} ]
}, {
"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": 34
} ]
}, {
"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": 35
} ]
}, {
"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": 36
} ]
}, {
"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": 37
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "FHIRHelpers"
}, {
"url": "name",
"valueString": "ToString"
}, {
"url": "statement",
"valueString": "define function ToString(value string): value.value"
}, {
"url": "displaySequence",
"valueInteger": 38
} ]
}, {
"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": 39
} ]
}, {
"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": 40
} ]
}, {
"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": 41
} ]
}, {
"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": 42
} ]
}, {
"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": 43
} ]
}, {
"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": 44
} ]
}, {
"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": 45
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "Not Done"
}, {
"url": "statement",
"valueString": "define function \"Not Done\"(res DomainResource ):\n if ( res R\n where ( \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )\n ) is not null then true\n else false"
}, {
"url": "displaySequence",
"valueInteger": 46
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "FHIRHelpers"
}, {
"url": "name",
"valueString": "ToBoolean"
}, {
"url": "statement",
"valueString": "define function ToBoolean(value boolean): value.value"
}, {
"url": "displaySequence",
"valueInteger": 47
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "GetModiferExtension"
}, {
"url": "statement",
"valueString": "define function \"GetModiferExtension\"(res DomainResource, url String ):\n singleton from \"GetModifierExtensions\"(res, url)"
}, {
"url": "displaySequence",
"valueInteger": 48
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "HBPComponent"
}, {
"url": "name",
"valueString": "GetModifierExtensions"
}, {
"url": "statement",
"valueString": "define function \"GetModifierExtensions\"(res DomainResource, url String ):\n res.modifierExtension E\n where E.url = ( url )\n return E"
}, {
"url": "displaySequence",
"valueInteger": 49
} ]
}, {
"url": "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition",
"extension": [ {
"url": "libraryName",
"valueString": "FHIRHelpers"
}, {
"url": "name",
"valueString": "ToString"
}, {
"url": "statement",
"valueString": "define function ToString(value ObservationStatus): value.value"
}, {
"url": "displaySequence",
"valueInteger": 50
} ]
} ],
"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|2.0.000"
}, {
"type": "depends-on",
"display": "Library FHIRHelpers",
"resource": "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"
}, {
"type": "depends-on",
"display": "Library Global",
"resource": "http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000"
}, {
"type": "depends-on",
"display": "Code system LOINC",
"resource": "http://loinc.org"
}, {
"type": "depends-on",
"display": "Value set Encounter to Screen for Blood Pressure",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1920"
}, {
"type": "depends-on",
"display": "Value set Lifestyle Recommendation",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1581"
}, {
"type": "depends-on",
"display": "Value set Weight Reduction Recommended",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1510"
}, {
"type": "depends-on",
"display": "Value set Dietary Recommendations",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1515"
}, {
"type": "depends-on",
"display": "Value set Recommendation to Increase Physical Activity",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1518"
}, {
"type": "depends-on",
"display": "Value set Referral or Counseling for Alcohol Consumption",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1583"
}, {
"type": "depends-on",
"display": "Value set Follow Up Within One Year",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1579"
}, {
"type": "depends-on",
"display": "Value set Referral to Primary Care or Alternate Provider",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1580"
}, {
"type": "depends-on",
"display": "Value set Finding of Elevated Blood Pressure or Hypertension",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1047.514"
}, {
"type": "depends-on",
"display": "Value set Follow Up Within 4 Weeks",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1578"
}, {
"type": "depends-on",
"display": "Value set Laboratory Tests for Hypertension",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1482"
}, {
"type": "depends-on",
"display": "Value set Pharmacologic Therapy for Hypertension",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.1577"
}, {
"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 Diagnosis of Hypertension",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.263"
}, {
"type": "depends-on",
"display": "Value set Medical Reason",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"
}, {
"type": "depends-on",
"display": "Value set Patient Declined",
"resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1582"
} ],
"parameter": [ {
"max": "1",
"min": 0,
"use": "in",
"name": "Measurement Period",
"type": "Period"
}, {
"max": "1",
"min": 0,
"use": "out",
"name": "SDE Sex",
"type": "Coding"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "Numerator",
"type": "Encounter"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "Denominator",
"type": "Encounter"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "SDE Payer",
"type": "Resource"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "Initial Population",
"type": "Encounter"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "SDE Ethnicity",
"type": "Coding"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "Denominator Exclusions",
"type": "Encounter"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "SDE Race",
"type": "Coding"
}, {
"max": "*",
"min": 0,
"use": "out",
"name": "Denominator Exceptions",
"type": "Encounter"
} ]
} ],
"status": "active",
"language": "en",
"id": "7a920061-915d-4e38-b459-05f5cb141605",
"kind": null,
"url": "http://hl7.org/fhir/uv/cqm/Measure/HBPComponent",
"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/HBPComponent",
"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/22v11",
"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": "High Blood Pressure Screening"
}, {
"value": "urn:oid:2.16.840.1.113883.4.642.40.61.29.11",
"system": "urn:ietf:rfc:3986"
} ],
"scoring": {
"coding": [ {
"code": "proportion",
"system": "http://terminology.hl7.org/CodeSystem/measure-scoring",
"display": "Proportion"
} ]
},
"version": "0.0.001",
"contact": [ {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/cqi",
"system": "url"
} ]
} ],
"improvementNotation": {
"coding": [ {
"code": "increase",
"system": "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"
} ]
},
"effectivePeriod": {
"end": "2022-12-31",
"start": "2022-01-01"
}
}