Id: ControllingHighBloodPressureFHIR Url: http://ecqi.healthit.gov/ecqms/Library/ControllingHighBloodPressureFHIR Version: 0.0.001 Identifier: value: ControllingHighBloodPressureFHIR Name: ControllingHighBloodPressureFHIR Title: ControllingHighBloodPressureFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-28T15:49:23+00:00 Description: ControllingHighBloodPressureFHIR Use Context: code value display program ep-ec EP/EC Related Artifacts: Dependencies Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Patient http://hl7.org/fhir/Patient ;;;; Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; Reference http://hl7.org/fhir/Reference ;; Observation http://hl7.org/fhir/StructureDefinition/bp Observation http://hl7.org/fhir/StructureDefinition/bp ;;;;; Observation http://hl7.org/fhir/StructureDefinition/bp Observation http://hl7.org/fhir/StructureDefinition/bp ;;;;; Observation http://hl7.org/fhir/StructureDefinition/bp ;;;;; Observation http://hl7.org/fhir/StructureDefinition/bp ;;;;; Observation http://hl7.org/fhir/StructureDefinition/bp ;;;;; Observation http://hl7.org/fhir/StructureDefinition/bp ;;;;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.104.12.1011 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080 Coverage http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 uri http://hl7.org/fhir/uri ; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 45755-6 display: Hospice care [Minimum Data Set] Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;; code filter: path: code system: http://loinc.org code: 45755-6 display: Hospice care [Minimum Data Set] ServiceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 ServiceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest ;;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.378 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1029 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1012 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1013 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1014 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1014 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient DeviceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300 DeviceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 98181-1 display: Medical equipment used Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;; code filter: path: code system: http://loinc.org code: 98181-1 display: Medical equipment used Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ;; Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083 Quantity urn:hl7-org:elm-types:r1/Quantity ;; MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510 MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 71802-3 display: Housing status Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;; code filter: path: code system: http://loinc.org code: 71802-3 display: Housing status Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;;; code filter: path: code system: http://loinc.org code: 71802-3 display: Housing status Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 71007-9 display: Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal) Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ;; code filter: path: code system: http://loinc.org code: 71007-9 display: Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal) Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Coverage http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Content: text/cql library ControllingHighBloodPressureFHIR version '0.0.001'#xD; #xD; using QICore version '4.1.1'#xD; #xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include Status version '1.6.000' called Status#xD; include AdvancedIllnessandFrailty version '1.6.000' called AIFrailLTCF#xD; include AdultOutpatientEncounters version '4.6.000' called AdultOutpatientEncounters#xD; include Hospice version '6.7.000' called Hospice#xD; include PalliativeCare version '1.7.000' called PalliativeCare#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; #xD; valueset "Chronic Kidney Disease, Stage 5": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1002'#xD; valueset "Dialysis Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1013'#xD; valueset "Emergency Department Evaluation and Management Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010'#xD; valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'#xD; valueset "End Stage Renal Disease": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.353'#xD; valueset "ESRD Monthly Outpatient Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1014'#xD; valueset "Essential Hypertension": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.104.12.1011'#xD; valueset "Kidney Transplant": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1012'#xD; valueset "Kidney Transplant Recipient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.109.12.1029'#xD; valueset "Pregnancy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.378'#xD; #xD; code "Diastolic blood pressure": '8462-4' from "LOINC" display 'Diastolic blood pressure'#xD; code "Systolic blood pressure": '8480-6' from "LOINC" display 'Systolic blood pressure'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Initial Population":#xD; AgeInYearsAt(date from #xD; end of "Measurement Period"#xD; ) in Interval[18, 85]#xD; and exists "Essential Hypertension Diagnosis"#xD; and exists AdultOutpatientEncounters."Qualifying Encounters"#xD; #xD; define "Essential Hypertension Diagnosis":#xD; ( [Condition: "Essential Hypertension"] ) Hypertension#xD; where Hypertension.prevalenceInterval ( ) overlaps Interval[start of "Measurement Period", start of "Measurement Period" + 6 months )#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Denominator Exclusions":#xD; Hospice."Has Hospice Services"#xD; or exists ( "Pregnancy or Renal Diagnosis" )#xD; or exists ( "End Stage Renal Disease Procedures" )#xD; or exists ( "End Stage Renal Disease Encounter" )#xD; or AIFrailLTCF."Is Age 66 to 80 with Advanced Illness and Frailty or Is Age 81 or Older with Frailty"#xD; or AIFrailLTCF."Is Age 66 or Older Living Long Term in a Nursing Home"#xD; or PalliativeCare."Has Palliative Care in the Measurement Period"#xD; #xD; define "Pregnancy or Renal Diagnosis":#xD; ( [Condition: "Pregnancy"]#xD; union [Condition: "End Stage Renal Disease"]#xD; union [Condition: "Kidney Transplant Recipient"]#xD; union [Condition: "Chronic Kidney Disease, Stage 5"] ) PregnancyESRDDiagnosis#xD; where PregnancyESRDDiagnosis.prevalenceInterval ( ) overlaps "Measurement Period"#xD; #xD; define "End Stage Renal Disease Procedures":#xD; ( ( [Procedure: "Kidney Transplant"]#xD; union [Procedure: "Dialysis Services"]#xD; ).isProcedurePerformed ( ) ) ESRDProcedure#xD; where ESRDProcedure.performed.toInterval ( ) ends on or before end of "Measurement Period"#xD; #xD; define "End Stage Renal Disease Encounter":#xD; ( ( [Encounter: "ESRD Monthly Outpatient Services"] ).isEncounterPerformed ( ) ) ESRDEncounter#xD; where ESRDEncounter.period.toInterval ( ) starts on or before end of "Measurement Period"#xD; #xD; define "Numerator":#xD; "Has Systolic Blood Pressure Less Than 140"#xD; and "Has Diastolic Blood Pressure Less Than 90"#xD; #xD; define "Has Systolic Blood Pressure Less Than 140":#xD; "Lowest Systolic Reading on Most Recent Blood Pressure Day" < 140 'mm[Hg]'#xD; #xD; define "Has Diastolic Blood Pressure Less Than 90":#xD; "Lowest Diastolic Reading on Most Recent Blood Pressure Day" < 90 'mm[Hg]'#xD; #xD; define "Lowest Systolic Reading on Most Recent Blood Pressure Day":#xD; First("Qualifying Systolic Blood Pressure Reading" SBPReading#xD; where SBPReading.effective.latest() same day as "Most Recent Blood Pressure Day"#xD; return singleton from(SBPReading.component SBPComponent#xD; where SBPComponent.code ~ "Systolic blood pressure"#xD; return SBPComponent.value as Quantity#xD; )#xD; sort asc#xD; )#xD; #xD; define "Lowest Diastolic Reading on Most Recent Blood Pressure Day":#xD; First("Qualifying Diastolic Blood Pressure Reading" DBPReading#xD; where DBPReading.effective.latest() same day as "Most Recent Blood Pressure Day"#xD; return singleton from(DBPReading.component DBPComponent#xD; where DBPComponent.code ~ "Diastolic blood pressure"#xD; return DBPComponent.value as Quantity#xD; )#xD; sort asc#xD; )#xD; #xD; define "Qualifying Systolic Blood Pressure Reading":#xD; ( ( ["observation-bp"] ).isObservationBP ( ) ) BloodPressure#xD; where ( not ( ( BloodPressure.encounter.getEncounter ( ) ).class.code in { 'EMER', 'IMP', 'ACUTE', 'NONAC', 'PRENC', 'SS' } ) )#xD; and BloodPressure.effective.latest ( ) during day of "Measurement Period"#xD; #xD; define "Qualifying Diastolic Blood Pressure Reading":#xD; ( ( ["observation-bp"] ).isObservationBP ( ) ) BloodPressure#xD; where ( not ( ( BloodPressure.encounter.getEncounter ( ) ).class.code in { 'EMER', 'IMP', 'ACUTE', 'NONAC', 'PRENC', 'SS' } ) )#xD; and BloodPressure.effective.latest ( ) during day of "Measurement Period"#xD; #xD; define fluent function getEncounter(reference Reference):#xD; singleton from ( [Encounter] E#xD; where E.id = reference.reference.getId ( )#xD; )#xD; #xD; define "Most Recent Blood Pressure Day":#xD; Last("Blood Pressure Days" BPDays#xD; sort asc#xD; )#xD; #xD; define "Blood Pressure Days":#xD; ( "Qualifying Diastolic Blood Pressure Reading" DBPExam#xD; return date from DBPExam.effective.latest ( )#xD; )#xD; intersect ( "Qualifying Systolic Blood Pressure Reading" SBPExam#xD; return date from SBPExam.effective.latest ( )#xD; )#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex" Content: application/elm+xml Encoded data (171184 characters) Content: application/elm+json Encoded data (244476 characters)
Value set Chronic Kidney Disease, Stage 5
Value set Emergency Department Evaluation and Management Visit
Value set ESRD Monthly Outpatient Services
Value set Preventive Care Services Established Office Visit, 18 and Up
Value set Preventive Care Services Initial Office Visit, 18 and Up
Qualifying Systolic Blood Pressure Reading
Qualifying Diastolic Blood Pressure Reading
Lowest Systolic Reading on Most Recent Blood Pressure Day
Has Systolic Blood Pressure Less Than 140
Lowest Diastolic Reading on Most Recent Blood Pressure Day
Has Diastolic Blood Pressure Less Than 90
Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)