Id: HIVSTITestingFHIR Url: http://ecqi.healthit.gov/ecqms/Library/HIVSTITestingFHIR Version: 0.1.000 Identifier: value: HIVSTITestingFHIR Name: HIVSTITestingFHIR Title: HIVSTITestingFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-11T15:54:16+00:00 Description: HIVSTITestingFHIR 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 ;; 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.110.12.1052 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.1258.1 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.1166.117 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.464.1003.101.12.1008 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.1048 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.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.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.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.1080 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.11.1150 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 Content: text/cql library HIVSTITestingFHIR version '0.1.000'#xD; #xD; using QICore version '4.1.1'#xD; #xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; #xD; codesystem "CPT": 'http://www.ama-assn.org/go/cpt'#xD; #xD; valueset "Annual Wellness Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'#xD; valueset "Chlamydia Screening": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1052'#xD; valueset "Face-to-Face Interaction": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1048'#xD; valueset "Gonorrhea Screening": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1258.1'#xD; valueset "HIV": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.120.12.1003'#xD; valueset "Home Healthcare Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'#xD; valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'#xD; valueset "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'#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, 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 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, 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; valueset "Syphilis Tests": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1166.117'#xD; valueset "Telephone Visits": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'#xD; valueset "Preventive Care Services - Other": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1150' /*code "Unlisted preventive medicine service": '99429' from "CPT" display 'Unlisted preventive medicine service'*/ /*additional details in CQLIT-368*/#xD; #xD; #xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Initial Population":#xD; AgeInYearsAt(date from start of "Measurement Period") >= 13#xD; and "Has Qualifying Encounter During Measurement Period"#xD; and "Has HIV Diagnosis Before End of Measurement Period"#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"#xD; #xD; define "Numerator":#xD; "Has Chlamydia Testing"#xD; and "Has Gonorrhea Testing"#xD; and "Has Syphilis Testing"#xD; #xD; define "Has Qualifying Encounter During Measurement Period":#xD; exists ( ( ["Encounter": "Office Visit"]#xD; union ["Encounter": "Outpatient Consultation"]#xD; union ["Encounter": "Annual Wellness Visit"]#xD; union ["Encounter": "Face-to-Face Interaction"]#xD; union ["Encounter": "Home Healthcare Services"]#xD; union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"]#xD; union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"]#xD; union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"]#xD; union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"]#xD; union ["Encounter": "Telephone Visits"]#xD; union ["Encounter": "Preventive Care Services - Other"] ) QualifyingEncounter#xD; where QualifyingEncounter.period during day of "Measurement Period"#xD; )#xD; #xD; define "Has HIV Diagnosis Before End of Measurement Period":#xD; exists ["Condition": "HIV"] HIVDx#xD; where QICoreCommon."ToPrevalenceInterval" ( HIVDx ) starts on or before day of end of "Measurement Period"#xD; #xD; define "Has Chlamydia Testing":#xD; exists ["Observation": "Chlamydia Screening"] ChlamydiaTest#xD; where ChlamydiaTest.value is not null#xD; and QICoreCommon."Latest" ( ChlamydiaTest.effective ) during day of "Measurement Period"#xD; #xD; define "Has Gonorrhea Testing":#xD; exists ["Observation": "Gonorrhea Screening"] GonorrheaTest#xD; where GonorrheaTest.value is not null#xD; and QICoreCommon."Latest" ( GonorrheaTest.effective ) during day of "Measurement Period"#xD; #xD; define "Has Syphilis Testing":#xD; exists ["Observation": "Syphilis Tests"] SyphilisTest#xD; where SyphilisTest.value is not null#xD; and QICoreCommon."Latest" ( SyphilisTest.effective ) during day of "Measurement Period" Content: application/elm+xml Encoded data (138792 characters) Content: application/elm+json Encoded data (198608 characters)
Value set Preventive Care Services Established Office Visit, 18 and Up
Value set Preventive Care Services Initial Office Visit, 18 and Up
Value set Preventive Care Services, Initial Office Visit, 0 to 17
Value set Preventive Care, Established Office Visit, 0 to 17
Value set Preventive Care Services - Other
Has Qualifying Encounter During Measurement Period
Has HIV Diagnosis Before End of Measurement Period