Metadata Title EXM146 - Example Proportion Measure Library Version 4.0.0 Identifier EXM146 Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.12 Approval Date 2019-08-03 Last Review Date 2019-08-03 Experimental true Jurisdiction Global (Whole world) Steward (Publisher) HL7 International / Clinical Quality Information Description This library is used as an example in the FHIR Quality Measure Implementation Guide Type Logic Library Parameter Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: Is Between 2 and 17 Years of Age at Start of Measurement Period Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Antibiotics Use: Out Min Cardinality: 0 Max Cardinality: * Type: MedicationRequest Parameter Name: Pharyngitis Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: Measurement Period Encounters Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Pharyngitis Encounters With Antibiotics Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Denominator Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Pharyngitis With Prior Antibiotics Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: Excluded Encounters Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Denominator Exclusions Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Strep Test Encounters Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Numerator Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: MedicationRequest Profile(s): MedicationRequest Must Support Elements: medication, status, intent, authoredOn Code Filter(s): Path: medication ValueSet: Antibiotic Medications for Pharyngitis Data Requirement Type: Condition Profile(s): Condition Must Support Elements: code, clinicalStatus, verificationStatus, onset Code Filter(s): Path: code ValueSet: Acute Pharyngitis Data Requirement Type: Condition Profile(s): Condition Must Support Elements: code, clinicalStatus, verificationStatus, onset Code Filter(s): Path: code ValueSet: Acute Tonsillitis Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Ambulatory/ED Visit Data Requirement Type: Observation Profile(s): Observation Must Support Elements: code, value, effective Code Filter(s): Path: code ValueSet: Group A Streptococcus Test Library Content CQL Content /*#xD; This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage patterns that meet the needs of the various stakeholders#xD; in the measure development community.#xD; */#xD; library EXM146 version '4.0.0'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; include Common version '2.0.0' called Common#xD; include MATGlobalCommonFunctions version '5.0.000' called Global#xD; #xD; valueset "Acute Pharyngitis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1011'#xD; valueset "Acute Tonsillitis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012'#xD; valueset "Ambulatory/ED Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1061'#xD; valueset "Antibiotic Medications": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1001'#xD; valueset "Group A Streptococcus Test": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1012'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Is Between 2 and 17 Years of Age at Start of Measurement Period":#xD; AgeInYearsAt(start of "Measurement Period") >= 2#xD; and AgeInYearsAt(start of "Measurement Period") <= 17#xD; #xD; define "Antibiotics":#xD; [MedicationRequest: medication in "Antibiotic Medications"] Prescription#xD; where Prescription.status = 'active'#xD; and Prescription.intent = 'order'#xD; #xD; define "Pharyngitis":#xD; ([Condition: code in "Acute Pharyngitis"]#xD; union [Condition: code in "Acute Tonsillitis"]) Pharyngitis#xD; where Pharyngitis.clinicalStatus ~ Global.active#xD; and Pharyngitis.verificationStatus ~ Global.confirmed#xD; #xD; define "Measurement Period Encounters":#xD; [Encounter: "Ambulatory/ED Visit"] Encounter#xD; where Encounter.period during "Measurement Period"#xD; and Encounter.status = 'finished'#xD; and "Is Between 2 and 17 Years of Age at Start of Measurement Period"#xD; #xD; define "Pharyngitis Encounters With Antibiotics":#xD; "Measurement Period Encounters" Encounters#xD; with "Pharyngitis" Pharyngitis such that#xD; Common."Includes Or Starts During"(Pharyngitis, Encounters)#xD; with "Antibiotics" Antibiotics such that Antibiotics.authoredOn#xD; 3 days or less after FHIRHelpers.ToInterval(Encounters.period)#xD; #xD; define "Initial Population":#xD; "Pharyngitis Encounters With Antibiotics"#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Pharyngitis With Prior Antibiotics":#xD; "Pharyngitis" Pharyngitis#xD; with "Antibiotics" Antibiotics such that#xD; Antibiotics.authoredOn 30 days or less before Pharyngitis.onset#xD; #xD; define "Excluded Encounters":#xD; "Pharyngitis Encounters With Antibiotics" Encounters#xD; with "Pharyngitis With Prior Antibiotics" Pharyngitis such that#xD; Common."Includes Or Starts During"(Pharyngitis, Encounters)#xD; #xD; define "Denominator Exclusions":#xD; "Excluded Encounters"#xD; #xD; define "Strep Test Encounters":#xD; "Pharyngitis Encounters With Antibiotics" Encounters#xD; with [Observation: code in "Group A Streptococcus Test"] Tests#xD; such that Tests.value is not null#xD; and Tests.effective starts during#xD; Interval[start of FHIRHelpers.ToInterval(Encounters.period) - 3 days,#xD; end of FHIRHelpers.ToInterval(Encounters.period) + 3 days]#xD; #xD; define "Numerator":#xD; "Strep Test Encounters"#xD; ELM XML Content Encoded data (88576 characters) ELM JSON Content Encoded data (165744 characters) Generated using version 0.4.9 of the sample-content-ig Liquid templates
EXM146 - Example Proportion Measure Library
HL7 International / Clinical Quality Information
This library is used as an example in the FHIR Quality Measure Implementation Guide
Is Between 2 and 17 Years of Age at Start of Measurement Period