Metadata Title PVS Component Library Version 0.0.001 Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.30 Experimental true Jurisdiction Global (Whole world) Steward (Publisher) HL7 International / Clinical Quality Information Description Pneumococcal Vaccination Status for Older Adults 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: SDE Ethnicity Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Payer Use: Out Min Cardinality: 0 Max Cardinality: * Type: Resource Parameter Name: SDE Race Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Sex Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Coding Parameter Name: Qualifying Encounters Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Denominator Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Denominator Exclusions Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Numerator Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Office Visit Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Annual Wellness Visit Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Preventive Care Services Established Office Visit, 18 and Up Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Preventive Care Services Initial Office Visit, 18 and Up Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Home Healthcare Services Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Discharge Services Nursing Facility Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Nursing Facility Visit Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, status Code Filter(s): Path: type ValueSet: Care Services in Long Term Residential Facility Data Requirement Type: Immunization Profile(s): Immunization Must Support Elements: vaccineCode, status, occurrence Code Filter(s): Path: vaccineCode ValueSet: Pneumococcal Vaccine Data Requirement Type: Procedure Profile(s): Procedure Must Support Elements: code, status, performed Code Filter(s): Path: code ValueSet: Pneumococcal Vaccine Administered 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 PVSComponent version '0.0.001'#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 SupplementalDataElements version '2.0.000' called SDE#xD; include MATGlobalCommonFunctions version '5.0.000' called Global#xD; include Hospice version '2.0.000' called Hospice#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; #xD; valueset "Annual Wellness Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'#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 "Discharge Services - Nursing Facility": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.11.1065'#xD; valueset "Discharged to Health Care Facility for Hospice Care": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.207'#xD; valueset "Discharged to Home for Hospice Care": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.209'#xD; valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'#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 "Hospice care ambulatory": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15'#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 "Pneumococcal Vaccine": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1027'#xD; valueset "Pneumococcal Vaccine Administered": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1034'#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; #xD; code "Birth date": '21112-8' from "LOINC" display 'Birth date'#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 "Initial Population":#xD; Global."CalendarAgeInYearsAt" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of "Measurement Period" ) >= 65#xD; and exists "Qualifying Encounters"#xD; #xD; define "Qualifying Encounters":#xD; ( [Encounter: "Office Visit"]#xD; union [Encounter: "Annual Wellness Visit"]#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: "Home Healthcare Services"]#xD; union [Encounter: "Discharge Services - Nursing Facility"]#xD; union [Encounter: "Nursing Facility Visit"]#xD; union [Encounter: "Care Services in Long-Term Residential Facility"] ) ValidEncounter#xD; where ValidEncounter.period during "Measurement Period"#xD; and ValidEncounter.status = 'finished'#xD; #xD; define "Denominator":#xD; "Initial Population"#xD; #xD; define "Denominator Exclusions":#xD; Hospice."Has Hospice"#xD; #xD; define "Numerator":#xD; exists ( [Immunization: "Pneumococcal Vaccine"] PneumococcalVaccine#xD; where PneumococcalVaccine.status = 'completed'#xD; and PneumococcalVaccine.occurrence as dateTime on or before#xD; end of "Measurement Period"#xD; )#xD; or exists ( [Procedure: "Pneumococcal Vaccine Administered"] PneumococcalVaccineGiven#xD; where PneumococcalVaccineGiven.status = 'completed'#xD; and PneumococcalVaccineGiven.performed as Period on or before#xD; end of "Measurement Period"#xD; )#xD; ELM XML Content Encoded data (65576 characters) ELM JSON Content Encoded data (117184 characters) Generated using version 0.4.9 of the sample-content-ig Liquid templates
HL7 International / Clinical Quality Information
Pneumococcal Vaccination Status for Older Adults
Value set Care Services in Long-Term Residential Facility
Value set Discharge Services - Nursing Facility
Value set Discharged to Health Care Facility for Hospice Care
Value set Discharged to Home for Hospice Care
Value set Pneumococcal Vaccine Administered
Value set Preventive Care Services - Established Office Visit, 18 and Up
Value set Preventive Care Services-Initial Office Visit, 18 and Up