Id: HIVScreeningFHIR Url: http://ecqi.healthit.gov/ecqms/Library/HIVScreeningFHIR Version: 0.0.001 Identifier: value: HIVScreeningFHIR Name: HIVScreeningFHIR Title: HIVScreeningFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-14T15:19:44+00:00 Description: HIVScreeningFHIR 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 ;;;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient 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.113762.1.4.1056.50 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation ; code filter: path: code system: http://loinc.org code: 75622-1 display: HIV 1 and 2 tests - Meaningful Use set 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.1022 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.1024 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.1001 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 ;; 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.120.12.1003 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 HIVScreeningFHIR version '0.0.001'#xD; #xD; using QICore version '4.1.1' /*This spec aligns with AU2023/PY2024 QDM version*/#xD; #xD; #xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'#xD; codesystem "ConditionVerificationStatus": 'http://terminology.hl7.org/CodeSystem/condition-ver-status'#xD; #xD; valueset "HIV": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.120.12.1003'#xD; valueset "Human Immunodeficiency Virus (HIV) Laboratory Test Codes (Ab and Ag)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1056.50'#xD; valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'#xD; valueset "Preventive Care Services - Established Office Visit, 18 and Up": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025'#xD; valueset "Preventive Care Services, Initial Office Visit, 0 to 17": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1022'#xD; valueset "Preventive Care Services-Initial Office Visit, 18 and Up": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023'#xD; valueset "Preventive Care, Established Office Visit, 0 to 17": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1024'#xD; #xD; code "Birth date": '21112-8' from "LOINC" display 'Birth date'#xD; code "HIV 1 and 2 tests - Meaningful Use set": '75622-1' from "LOINC" display 'HIV 1 and 2 tests - Meaningful Use set'#xD; code "AMB": 'AMB' from "ActCode" display 'Ambulatory'#xD; code "active": 'active' from "ConditionClinicalStatusCodes"#xD; code "refuted": 'refuted' from "ConditionVerificationStatus"#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Initial Population":#xD; AgeInYearsAt(date from start of "Measurement Period") in Interval[15, 65]#xD; and exists "Qualifying Encounters"#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Numerator":#xD; ( "Has HIV Test Performed" )#xD; #xD; define "Denominator Exclusions":#xD; exists ( ["Condition": "HIV"] HIV#xD; where QICoreCommon."ToPrevalenceInterval" ( HIV Indicators ) starts before start of "Measurement Period"#xD; and HIV.verificationStatus !~ "refuted"#xD; )#xD; #xD; define "Qualifying Encounters":#xD; ( ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"]#xD; union ["Encounter": "Preventive Care Services-Initial Office Visit, 18 and Up"]#xD; union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"]#xD; union ["Encounter": "Preventive Care Services - Established Office Visit, 18 and Up"]#xD; union ["Encounter": "Office Visit"] ) Encounter#xD; where Encounter.period during "Measurement Period"#xD; and Encounter.class ~ "AMB"#xD; and Encounter.status = 'finished'#xD; #xD; define "Has HIV Test Performed":#xD; exists ( ["Observation": "Human Immunodeficiency Virus (HIV) Laboratory Test Codes (Ab and Ag)"]#xD; union ["Observation": "HIV 1 and 2 tests - Meaningful Use set"] ) HIVTest#xD; where AgeInYearsAt(date from start of QICoreCommon."ToInterval"(HIVTest.effective)) in Interval[15, 65]#xD; and QICoreCommon."ToInterval" ( HIVTest.effective ) starts before end of "Measurement Period"#xD; and ( HIVTest.status = 'final'#xD; or HIVTest.status = 'amended'#xD; or HIVTest.status = 'corrected'#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 (113448 characters) Content: application/elm+json Encoded data (163476 characters)
Code system ConditionClinicalStatusCodes
Value set Human Immunodeficiency Virus (HIV) Laboratory Test Codes (Ab and Ag)
Value set Preventive Care Services - Established Office Visit, 18 and Up
Value set Preventive Care Services, Initial Office Visit, 0 to 17
Value set Preventive Care Services-Initial Office Visit, 18 and Up
Value set Preventive Care, Established Office Visit, 0 to 17