Id: POAGOpticNerveEvaluationFHIR Url: http://ecqi.healthit.gov/ecqms/Library/POAGOpticNerveEvaluationFHIR Version: 0.0.004 Identifier: value: POAGOpticNerveEvaluationFHIR Name: POAGOpticNerveEvaluationFHIR Title: POAGOpticNerveEvaluationFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-14T15:35:13+00:00 Description: POAGOpticNerveEvaluationFHIR 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 ; 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.1285 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.464.1003.101.12.1012 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.1014 Condition http://hl7.org/fhir/Condition ; 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.326 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.113883.3.526.3.1333 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.526.3.1334 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 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 ;; 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-observationnotdone ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1333 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1333 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1334 Observation http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observationnotdone ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1334 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 POAGOpticNerveEvaluationFHIR version '0.0.004'#xD; #xD; using QICore version '4.1.1' /*This spec aligns with AU2022/PY2023 QDM version Notews 1. 8/09.2023: Per BonnieMat-1455 and ticket https://github.com/cqframework/cql-execution/issues/296 using valuesets with negation profiles does not work. */#xD; #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; #xD; codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD; #xD; valueset "Care Services in Long-Term Residential Facility": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014'#xD; valueset "Cup to Disc Ratio": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1333'#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 "Medical Reason": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007'#xD; valueset "Nursing Facility Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012'#xD; valueset "Office Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'#xD; valueset "Ophthalmological Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285'#xD; valueset "Optic Disc Exam for Structural Abnormalities": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1334'#xD; valueset "Outpatient Consultation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008'#xD; valueset "Primary Open-Angle Glaucoma": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.326'#xD; #xD; code "virtual": 'VR' from "ActCode" display 'virtual'#xD; code "AMB": 'AMB' from "ActCode" display 'Ambulatory'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#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 "Denominator":#xD; "Initial Population"#xD; #xD; define "Denominator Exceptions":#xD; exists "Medical Reason for Not Performing Cup to Disc Ratio"#xD; or exists "Medical Reason for Not Performing Optic Disc Exam"#xD; #xD; define "Qualifying Encounter During Measurement Period":#xD; ( ["Encounter": "Office Visit"]#xD; union ["Encounter": "Ophthalmological Services"]#xD; union ["Encounter": "Outpatient Consultation"]#xD; union ["Encounter": "Nursing Facility Visit"]#xD; union ["Encounter": "Care Services in Long-Term Residential Facility"] ) QualifyingEncounter#xD; where QualifyingEncounter.period during "Measurement Period"#xD; and QualifyingEncounter.class !~ "virtual"#xD; and QualifyingEncounter.class ~ "AMB"#xD; and QualifyingEncounter.status = 'finished'#xD; #xD; define "Initial Population":#xD; AgeInYearsAt(date from start of "Measurement Period") >= 18#xD; and exists "Primary Open Angle Glaucoma Encounter"#xD; #xD; define "Primary Open Angle Glaucoma Encounter":#xD; "Qualifying Encounter During Measurement Period" ValidQualifyingEncounter#xD; with ["Condition": "Primary Open-Angle Glaucoma"] PrimaryOpenAngleGlaucoma#xD; such that PrimaryOpenAngleGlaucoma.prevalenceInterval ( ) overlaps ValidQualifyingEncounter.period#xD; and PrimaryOpenAngleGlaucoma.isActive ( )#xD; and not ( PrimaryOpenAngleGlaucoma.verificationStatus ~ QICoreCommon."unconfirmed"#xD; or PrimaryOpenAngleGlaucoma.verificationStatus ~ QICoreCommon."refuted"#xD; or PrimaryOpenAngleGlaucoma.verificationStatus ~ QICoreCommon."entered-in-error"#xD; )#xD; #xD; define "Cup to Disc Ratio Performed with Result":#xD; ["Observation": "Cup to Disc Ratio"] CupToDiscExamPerformed#xD; with "Primary Open Angle Glaucoma Encounter" EncounterWithPOAG#xD; such that CupToDiscExamPerformed.effective.toInterval ( ) during EncounterWithPOAG.period#xD; where CupToDiscExamPerformed.value is not null#xD; and CupToDiscExamPerformed.status in { 'final', 'amended', 'corrected' }#xD; #xD; define "Optic Disc Exam Performed with Result":#xD; ["Observation": "Optic Disc Exam for Structural Abnormalities"] OpticDiscExamPerformed#xD; with "Primary Open Angle Glaucoma Encounter" EncounterWithPOAG#xD; such that OpticDiscExamPerformed.effective.toInterval ( ) during EncounterWithPOAG.period#xD; where OpticDiscExamPerformed.value is not null#xD; and OpticDiscExamPerformed.status in { 'final', 'amended', 'corrected' }#xD; #xD; define "Numerator":#xD; exists "Cup to Disc Ratio Performed with Result"#xD; and exists "Optic Disc Exam Performed with Result"#xD; #xD; define "Medical Reason for Not Performing Cup to Disc Ratio":#xD; ["ObservationNotDone": "Cup to Disc Ratio"] CupToDiscExamNotPerformed#xD; with "Primary Open Angle Glaucoma Encounter" EncounterWithPOAG#xD; such that CupToDiscExamNotPerformed.issued.toInterval ( ) during EncounterWithPOAG.period#xD; where CupToDiscExamNotPerformed.status = 'cancelled'#xD; and CupToDiscExamNotPerformed.notDoneReason in "Medical Reason"#xD; #xD; define "Medical Reason for Not Performing Optic Disc Exam":#xD; ["ObservationNotDone": "Optic Disc Exam for Structural Abnormalities"] OpticDiscExamNotPerformed#xD; with "Primary Open Angle Glaucoma Encounter" EncounterWithPOAG#xD; such that OpticDiscExamNotPerformed.issued.toInterval ( ) during EncounterWithPOAG.period#xD; where OpticDiscExamNotPerformed.status = 'cancelled'#xD; and OpticDiscExamNotPerformed.notDoneReason in "Medical Reason" Content: application/elm+xml Encoded data (157320 characters) Content: application/elm+json Encoded data (225172 characters)
Code system ConditionClinicalStatusCodes
Code system ConditionVerificationStatusCodes
Value set Care Services in Long-Term Residential Facility
Value set Optic Disc Exam for Structural Abnormalities
Qualifying Encounter During Measurement Period
Medical Reason for Not Performing Cup to Disc Ratio
Medical Reason for Not Performing Optic Disc Exam