eCQM QICore Content Implementation Guide
2024.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2024.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2024/ and changes regularly. See the Directory of published versions

Measure: Childhood Immunization StatusFHIR

Official URL: https://madie.cms.gov/Measure/ChildhoodImmunizationStatusFHIR Version: 0.1.000
Draft as of 2024-12-18 Responsible: National Committee for Quality Assurance Computable Name: ChildhoodImmunizationStatusFHIR
Other Identifiers: Short Name (use: usual, ), UUID:020b451b-0c5e-4582-b069-90128f33a482 (use: official, ), UUID:c8393d3b-dc18-4f63-8d7e-c7976b42abd4 (use: official, ), Publisher (use: official, )

Copyright/Legal: This Physician Performance Measure (Measure) and related data specifications are owned and were developed by the National Committee for Quality Assurance (NCQA). NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. NCQA holds a copyright in the Measure. The Measure can be reproduced and distributed, without modification, for noncommercial purposes (e.g., use by healthcare providers in connection with their practices) without obtaining approval from NCQA. Commercial use is defined as the sale, licensing, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. All commercial uses or requests for modification must be approved by NCQA and are subject to a license at the discretion of NCQA. (C) 2012-2024 National Committee for Quality Assurance. All Rights Reserved. Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any third-party codes contained in the specifications. CPT(R) codes, descriptions and other data are copyright 2024. American Medical Association. All rights reserved. CPT is a trademark of the American Medical Association. Fee schedules, relative value units, conversion factors and/or related components are not assigned by the AMA, are not part of CPT, and the AMA is not recommending their use. The AMA does not directly or indirectly practice medicine or dispense medical services. The AMA assumes no liability for data contained or not contained herein. Applicable FARS/DFARS restrictions apply to government use. Some measure specifications contain coding from LOINC(R) (http://loinc.org). The LOINC table, LOINC codes, LOINC panels and form file, LOINC linguistic variants file, LOINC/RSNA Radiology Playbook, and LOINC/IEEE Medical Device Code Mapping Table are copyright 2004-2024 Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee, and are available at no cost under the license at http://loinc.org/terms-of-use. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2023 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved. Some measures use RxNorm, a standardized nomenclature and coding for clinical drugs and drug delivery devices, which is made publicly available courtesy of the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services. NLM is not responsible for the measures and does not endorse or recommend this or any other product. “HL7” is the registered trademark of Health Level Seven International.

Percentage of children 2 years of age who had four diphtheria, tetanus and acellular pertussis (DTaP); three polio (IPV), one measles, mumps and rubella (MMR); three or four H influenza type B (HiB); three hepatitis B (HepB); one chicken pox (VZV); four pneumococcal conjugate (PCV); one hepatitis A (HepA); two or three rotavirus (RV); and two influenza (flu) vaccines by their second birthday

UNKNOWN

Title: Childhood Immunization StatusFHIR
Id: ChildhoodImmunizationStatusFHIR
Version: 0.1.000
Url: Childhood Immunization StatusFHIR
short-name identifier:

CMS117FHIR

version-independent identifier:

urn:uuid:020b451b-0c5e-4582-b069-90128f33a482

version-specific identifier:

urn:uuid:c8393d3b-dc18-4f63-8d7e-c7976b42abd4

publisher (CMS) identifier:

117FHIR

Effective Period: 2025-01-01..2025-12-31
Status: draft
Publisher: National Committee for Quality Assurance
Author: National Committee for Quality Assurance
Description:

Percentage of children 2 years of age who had four diphtheria, tetanus and acellular pertussis (DTaP); three polio (IPV), one measles, mumps and rubella (MMR); three or four H influenza type B (HiB); three hepatitis B (HepB); one chicken pox (VZV); four pneumococcal conjugate (PCV); one hepatitis A (HepA); two or three rotavirus (RV); and two influenza (flu) vaccines by their second birthday

Purpose:

UNKNOWN

Copyright:

This Physician Performance Measure (Measure) and related data specifications are owned and were developed by the National Committee for Quality Assurance (NCQA). NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. NCQA holds a copyright in the Measure. The Measure can be reproduced and distributed, without modification, for noncommercial purposes (e.g., use by healthcare providers in connection with their practices) without obtaining approval from NCQA. Commercial use is defined as the sale, licensing, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. All commercial uses or requests for modification must be approved by NCQA and are subject to a license at the discretion of NCQA. (C) 2012-2024 National Committee for Quality Assurance. All Rights Reserved. Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any third-party codes contained in the specifications. CPT(R) codes, descriptions and other data are copyright 2024. American Medical Association. All rights reserved. CPT is a trademark of the American Medical Association. Fee schedules, relative value units, conversion factors and/or related components are not assigned by the AMA, are not part of CPT, and the AMA is not recommending their use. The AMA does not directly or indirectly practice medicine or dispense medical services. The AMA assumes no liability for data contained or not contained herein. Applicable FARS/DFARS restrictions apply to government use. Some measure specifications contain coding from LOINC(R) (http://loinc.org). The LOINC table, LOINC codes, LOINC panels and form file, LOINC linguistic variants file, LOINC/RSNA Radiology Playbook, and LOINC/IEEE Medical Device Code Mapping Table are copyright 2004-2024 Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee, and are available at no cost under the license at http://loinc.org/terms-of-use. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2023 International Health Terminology Standards Development Organisation. ICD-10 copyright 2024 World Health Organization. All Rights Reserved. Some measures use RxNorm, a standardized nomenclature and coding for clinical drugs and drug delivery devices, which is made publicly available courtesy of the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services. NLM is not responsible for the measures and does not endorse or recommend this or any other product. “HL7” is the registered trademark of Health Level Seven International.

Disclaimer:

The performance Measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURE AND SPECIFICATIONS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. Due to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM].

Scoring:

Proportion

Rationale:

Infants and toddlers are particularly vulnerable to infectious diseases because their immune systems have not built up the necessary defenses to fight infection (HHS-OIDP, 2022). One study estimated that routine childhood vaccines administered in 2019 prevented 24 million diseases (Talbird et al., 2022). Another recent study estimated that routine childhood vaccinations prevented 17.8 million cases of disease and 31,000 deaths for children born in 2017, in addition to saving $13.7 billion in health care costs (Carrico et al., 2022). Immunizing a child not only protects that child's health but also the health of the community, especially for those who are not immunized or are unable to be immunized due to other health complications (HHS-OIDP, 2022).

Clinical recommendation statement:

This measure looks for childhood vaccinations that should be completed by age 2, in accordance with the Centers for Disease Control and Prevention Advisory Committee on Immunization Practices (CDC ACIP) recommended child and adolescent immunization schedule (CDC, 2023). -- For the 2023–24 season, see the 2023–24 ACIP influenza vaccine recommendations (Grohskopf, 2023).

Guidance (Usage): The measure allows a grace period by measuring compliance with these recommendations between birth and age two. This eCQM is a patient-based measure. This FHIR-based measure has been derived from the QDM-based measure: CMS117v13. Please refer to the HL7 QI-Core Implementation Guide (http://hl7.org/fhir/us/qicore/STU4.1.1/) for more information on QI-Core and mapping recommendations from QDM to QI-Core 4.1.1 (http://hl7.org/fhir/us/qicore/STU4.1.1/qdm-to-qicore.html).
Population Criteria:
6528188d4f0107128cb3758f
Initial Population: Children who turn 2 years of age during the measurement period and have a visit during the measurement period
Denominator: Equals Initial Population
Denominator Exclusion: Exclude children who are in hospice care for any part of the measurement period. Exclude children with any of the following on or before the child’s second birthday: - Severe combined immunodeficiency - Immunodeficiency - Human Immunodeficiency Virus (HIV) - Lymphoreticular cancer, multiple myeloma or leukemia - Intussusception
Numerator: DTaP Children with any of the following on or before the child’s second birthday meet criteria: - At least four DTaP vaccinations, with different dates of service. Do not count a vaccination administered prior to 42 days after birth. - Anaphylaxis due to the diphtheria, tetanus or pertussis vaccine. - Encephalitis due to the diphtheria, tetanus or pertussis vaccine. IPV Children with either of the following on or before the child’s second birthday meet criteria: - At least three IPV vaccinations, with different dates of service. Do not count a vaccination administered prior to 42 days after birth. - Anaphylaxis due to the IPV vaccine. MMR Children with any of the following meet criteria: - At least one MMR vaccination on or between the child’s first and second birthdays. - Anaphylaxis due to the MMR vaccine on or before the child’s second birthday. - All of the following anytime on or before the child’s second birthday (on the same or different date of service): - History of measles. - History of mumps. - History of rubella. HiB Children with either of the following meet criteria on or before the child’s second birthday: - At least three HiB vaccinations, with different dates of service. Do not count a vaccination administered prior to 42 days after birth. - Anaphylaxis due to the HiB vaccine. HepB Children with any of the following on or before the child’s second birthday meet criteria: - At least three hepatitis B vaccinations, with different dates of service. - One of the three vaccinations can be a newborn hepatitis B vaccination during the eight-day period that begins on the date of birth and ends seven days after the date of birth. For example, if the member’s date of birth is December 1, the newborn hepatitis B vaccination must be on or between December 1 and December 8. - Anaphylaxis due to the hepatitis B vaccine. - History of hepatitis B illness. VZV Children with any of the following meet criteria: - At least one VZV vaccination, with a date of service on or between the child’s first and second birthdays. - Anaphylaxis due to the VZV vaccine on or before the child’s second birthday. - History of varicella zoster (e.g., chicken pox) illness on or before the child’s second birthday. PCV Children with either of the following on or before the child’s second birthday meet criteria: - At least four pneumococcal conjugate vaccinations, with different dates of service on or before the child’s second birthday. Do not count a vaccination administered prior to 42 days after birth. - Anaphylaxis due to the pneumococcal vaccine. HepA Children with any of the following meet criteria: - At least one hepatitis A vaccination, with a date of service on or between the child’s first and second birthdays. - Anaphylaxis due to the hepatitis A vaccine on or before the child’s second birthday. - History of hepatitis A illness on or before the child’s second birthday. RV Children with any of the following meet criteria: - At least two doses of the two-dose rotavirus vaccine on different dates of service on or before the child’s second birthday. Do not count a vaccination administered prior to 42 days after birth. - At least three doses of the three-dose rotavirus vaccine on different dates of service on or before the child’s second birthday. Do not count a vaccination administered prior to 42 days after birth. - At least one dose of the two-dose rotavirus vaccine and at least two doses of the three-dose rotavirus vaccine, all on different dates of service, on or before the child’s second birthday. Do not count a vaccination administered prior to 42 days after birth. - Anaphylaxis due to the rotavirus vaccine on or before the child’s second birthday. Flu Children with either of the following on or before their second birthday meet criteria: - At least two influenza vaccinations, with different dates of service on or before the child’s second birthday. Do not count a vaccination administered prior to 6 months (180 days) after birth. - One of the two vaccinations can be a Live Attenuated Influenza Vaccine (LAIV) vaccination administered on the child’s second birthday. Do not count a LAIV vaccination administered before the child’s second birthday. - Anaphylaxis due to the influenza vaccine.
Libraries:
ChildhoodImmunizationStatusFHIR
Terminology and Other Dependencies:
  • Library/Status|1.8.000
  • Library/QICoreCommon|2.1.000
  • Library/FHIRHelpers|4.4.000
  • Library/Hospice|6.12.000
  • SNOMED CT (all versions)
  • ICD-10 Procedure Codes
  • Vaccine Administered Code Set (CVX)
  • Current Procedural Terminology (CPT®)
  • Observation Category Codes
  • Logical Observation Identifiers, Names and Codes (LOINC)
  • DTaP Vaccine
  • DTaP Vaccine Administered
  • Anaphylactic Reaction to DTaP Vaccine
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1164
  • Inactivated Polio Vaccine (IPV)
  • Inactivated Polio Vaccine (IPV) Administered
  • Measles, Mumps and Rubella (MMR) Vaccine
  • Measles, Mumps and Rubella (MMR) Vaccine Administered
  • Measles
  • Mumps
  • Rubella
  • Hib Vaccine (3 dose schedule)
  • Hib Vaccine (3 dose schedule) Administered
  • Hib Vaccine (4 dose schedule)
  • Hib Vaccine (4 dose schedule) Administered
  • Hepatitis B Vaccine
  • Hepatitis B Vaccine Administered
  • Hepatitis B
  • Varicella Zoster Vaccine (VZV)
  • Varicella Zoster Vaccine (VZV) Administered
  • Varicella Zoster
  • Pneumococcal Conjugate Vaccine
  • Pneumococcal Conjugate Vaccine Administered
  • Hepatitis A Vaccine
  • Hepatitis A Vaccine Administered
  • Hepatitis A
  • Rotavirus Vaccine (2 dose schedule) Administered
  • Rotavirus Vaccine (3 dose schedule)
  • Rotavirus Vaccine (3 dose schedule) Administered
  • Influenza Vaccine
  • Influenza Vaccine Administered
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1087
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1088
  • Office Visit
  • Home Healthcare Services
  • Preventive Care, Established Office Visit, 0 to 17
  • 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.1089
  • Telephone Visits
  • Encounter Inpatient
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003
  • Hospice Care Ambulatory
  • http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165
  • Severe Combined Immunodeficiency
  • Disorders of the Immune System
  • HIV
  • Malignant Neoplasm of Lymphatic and Hematopoietic Tissue
  • Intussusception
  • Parameters:
    name use min max type
    Measurement Period In 0 1 Period
    Numerator Out 0 1 boolean
    Denominator Out 0 1 boolean
    Initial Population Out 0 1 boolean
    Denominator Exclusions Out 0 1 boolean
    DataRequirements:
    Resource Type Resource Elements Valueset Name Valueset
    Patient(QICorePatient)
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value DTaP Vaccine DTaP Vaccine
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Inactivated Polio Vaccine (IPV) Inactivated Polio Vaccine (IPV)
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Measles, Mumps and Rubella (MMR) Vaccine Measles, Mumps and Rubella (MMR) Vaccine
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Hib Vaccine (3 dose schedule) Hib Vaccine (3 dose schedule)
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Hib Vaccine (4 dose schedule) Hib Vaccine (4 dose schedule)
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Hepatitis B Vaccine Hepatitis B Vaccine
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Varicella Zoster Vaccine (VZV) Varicella Zoster Vaccine (VZV)
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Pneumococcal Conjugate Vaccine Pneumococcal Conjugate Vaccine
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Hepatitis A Vaccine Hepatitis A Vaccine
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Rotavirus Vaccine (3 dose schedule) Rotavirus Vaccine (3 dose schedule)
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Child Influenza Vaccine Influenza Vaccine
    Immunization(QICoreImmunization) vaccineCode occurrence occurrence.value status status.value Influenza Virus LAIV Vaccine http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1087
    Procedure(QICoreProcedure) code performed status status.value DTaP Vaccine Administered DTaP Vaccine Administered
    Procedure(QICoreProcedure) code performed status status.value Inactivated Polio Vaccine (IPV) Administered Inactivated Polio Vaccine (IPV) Administered
    Procedure(QICoreProcedure) code performed status status.value Measles, Mumps and Rubella (MMR) Vaccine Administered Measles, Mumps and Rubella (MMR) Vaccine Administered
    Procedure(QICoreProcedure) code performed status status.value Hib Vaccine (3 dose schedule) Administered Hib Vaccine (3 dose schedule) Administered
    Procedure(QICoreProcedure) code performed status status.value Hib Vaccine (4 dose schedule) Administered Hib Vaccine (4 dose schedule) Administered
    Procedure(QICoreProcedure) code performed status status.value Hepatitis B Vaccine Administered Hepatitis B Vaccine Administered
    Procedure(QICoreProcedure) code performed status status.value
    Procedure(QICoreProcedure) code performed status status.value Varicella Zoster Vaccine (VZV) Administered Varicella Zoster Vaccine (VZV) Administered
    Procedure(QICoreProcedure) code performed status status.value Pneumococcal Conjugate Vaccine Administered Pneumococcal Conjugate Vaccine Administered
    Procedure(QICoreProcedure) code performed status status.value Hepatitis A Vaccine Administered Hepatitis A Vaccine Administered
    Procedure(QICoreProcedure) code performed status status.value Rotavirus Vaccine (2 dose schedule) Administered Rotavirus Vaccine (2 dose schedule) Administered
    Procedure(QICoreProcedure) code performed status status.value Rotavirus Vaccine (3 dose schedule) Administered Rotavirus Vaccine (3 dose schedule) Administered
    Procedure(QICoreProcedure) code performed status status.value Child Influenza Vaccine Administered Influenza Vaccine Administered
    Procedure(QICoreProcedure) code performed status status.value Influenza Virus LAIV Vaccine Administered http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1088
    Procedure(QICoreProcedure) code performed status status.value Hospice Care Ambulatory Hospice Care Ambulatory
    Condition(QICoreCondition) code Anaphylactic Reaction to DTaP Vaccine Anaphylactic Reaction to DTaP Vaccine
    Condition(QICoreCondition) code Encephalitis Due to Diphtheria, Tetanus or Pertussis Vaccine http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1164
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code Measles Measles
    Condition(QICoreCondition) code Mumps Mumps
    Condition(QICoreCondition) code Rubella Rubella
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code Hepatitis B Hepatitis B
    Condition(QICoreCondition) code Varicella Zoster Varicella Zoster
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code Hepatitis A Hepatitis A
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code
    Condition(QICoreCondition) code Hospice Diagnosis http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165
    Condition(QICoreCondition) code Severe Combined Immunodeficiency Severe Combined Immunodeficiency
    Condition(QICoreCondition) code Disorders of the Immune System Disorders of the Immune System
    Condition(QICoreCondition) code HIV HIV
    Condition(QICoreCondition) code Malignant Neoplasm of Lymphatic and Hematopoietic Tissue Malignant Neoplasm of Lymphatic and Hematopoietic Tissue
    Condition(QICoreCondition) code Intussusception Intussusception
    Encounter(QICoreEncounter) type status status.value period
    Encounter(QICoreEncounter) type status status.value period Office Visit Office Visit
    Encounter(QICoreEncounter) type status status.value period Home Healthcare Services Home Healthcare Services
    Encounter(QICoreEncounter) type status status.value period Preventive Care, Established Office Visit, 0 to 17 Preventive Care, Established Office Visit, 0 to 17
    Encounter(QICoreEncounter) type status status.value period Preventive Care Services, Initial Office Visit, 0 to 17 Preventive Care Services, Initial Office Visit, 0 to 17
    Encounter(QICoreEncounter) type status status.value period Virtual Encounter http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089
    Encounter(QICoreEncounter) type status status.value period Telephone Visits Telephone Visits
    Encounter(QICoreEncounter) type hospitalization hospitalization.dischargeDisposition period status status.value Encounter Inpatient Encounter Inpatient
    Encounter(QICoreEncounter) type period status status.value Hospice Encounter http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003
    Observation(QICoreObservation) code value effective status status.value category
    ServiceRequest(QICoreServiceRequest) code authoredOn authoredOn.value status status.value intent intent.value Hospice Care Ambulatory Hospice Care Ambulatory
    Direct Reference Codes:
    display code system
    Anaphylaxis caused by vaccine product containing human poliovirus antigen (disorder) 471321000124106 http://snomed.info/sct
    Anaphylaxis caused by vaccine product containing Measles morbillivirus and Mumps orthorubulavirus and Rubella virus antigens (disorder) 471331000124109 http://snomed.info/sct
    Anaphylaxis caused by vaccine product containing only Haemophilus influenzae type b antigen (disorder) 433621000124101 http://snomed.info/sct
    Introduction of Serum, Toxoid and Vaccine into Muscle, Percutaneous Approach 3E0234Z http://www.cms.gov/Medicare/Coding/ICD10
    Anaphylaxis caused by vaccine product containing Hepatitis B virus antigen (disorder) 428321000124101 http://snomed.info/sct
    Anaphylaxis caused by vaccine containing Human alphaherpesvirus 3 antigen (disorder) 471341000124104 http://snomed.info/sct
    Anaphylaxis caused by vaccine product containing Streptococcus pneumoniae antigen (disorder) 471141000124102 http://snomed.info/sct
    Anaphylaxis caused by vaccine product containing Hepatitis A virus antigen (disorder) 471311000124103 http://snomed.info/sct
    rotavirus, live, monovalent vaccine 119 http://hl7.org/fhir/sid/cvx
    Anaphylaxis due to rotavirus vaccine (disorder) 428331000124103 http://snomed.info/sct
    Anaphylaxis caused by vaccine product containing Influenza virus antigen (disorder) 471361000124100 http://snomed.info/sct
    Office or other outpatient visit for the evaluation and management of an established patient that may not require the presence of a physician or other qualified health care professional 99211 http://www.ama-assn.org/go/cpt
    Discharge to home for hospice care (procedure) 428361000124107 http://snomed.info/sct
    Discharge to healthcare facility for hospice care (procedure) 428371000124100 http://snomed.info/sct
    survey survey http://terminology.hl7.org/CodeSystem/observation-category
    Yes (qualifier value) 373066001 http://snomed.info/sct
    Hospice care [Minimum Data Set] 45755-6 http://loinc.org
    Logic Definitions:
    Group Scoring Population Criteria Expression
    6528188d4f0107128cb3758f Group scoring: proportion Measure scoring:

    Proportion

    Type:

    Process

    Rate Aggregation: None
    Improvement Notation:

    increase

    Initial Population
    define "Initial Population":
      AgeInYearsAt(date from 
        end of "Measurement Period"
      ) = 2
        and exists ( "Qualifying Encounters" )
    Denominator
    define "Denominator":
      "Initial Population"
    Denominator Exclusion
    define "Denominator Exclusions":
      Hospice."Has Hospice Services"
        or "Has Severe Combined Immunodeficiency"
        or "Has Immunodeficiency"
        or "Has HIV"
        or "Has Lymphoreticular Cancer, Multiple Myeloma or Leukemia"
        or "Has Intussusception"
    Numerator
    define "Numerator":
      ( exists ( "Four DTaP Vaccinations" )
          or exists ( "DTaP Numerator Inclusion Conditions" )
      )
        and ( exists ( "Three Polio Vaccinations" )
            or exists ( "Polio Numerator Inclusion Conditions" )
        )
        and ( exists ( "One MMR Vaccination" )
            or exists ( "MMR Numerator Inclusion Conditions" )
            or ( exists ( "Measles Indicators" )
                and exists ( "Mumps Indicators" )
                and exists ( "Rubella Indicators" )
            )
        )
        and ( "Has Appropriate Number of Hib Immunizations"
            or exists ( "Hib Numerator Inclusion Conditions" )
        )
        and ( exists ( "Three Hepatitis B Vaccinations" )
            or ( exists ( "Meets HepB Vaccination Requirement" )
                or exists ( "Hepatitis B Numerator Inclusion Conditions" )
            )
        )
        and ( exists ( "One Chicken Pox Vaccination" )
            or exists ( "Varicella Zoster Numerator Inclusion Conditions" )
        )
        and ( exists ( "Four Pneumococcal Conjugate Vaccinations" )
            or exists ( "Pneumococcal Conjugate Numerator Inclusion Conditions" )
        )
        and ( exists ( "One Hepatitis A Vaccinations" )
            or exists ( "Hepatitis A Numerator Inclusion Conditions" )
        )
        and ( "Has Appropriate Number of Rotavirus Immunizations"
            or exists ( "Rotavirus Numerator Inclusion Conditions" )
        )
        and ( exists ( "Two Influenza Vaccinations" )
            or ( "Two Influenza Vaccinations Including One LAIV Vaccination" )
            or exists ( "Influenza Numerator Inclusion Conditions" )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Date of Second Birthday
    define "Date of Second Birthday":
      Patient.birthDate + 2 years
    Library Name Name
    ChildhoodImmunizationStatusFHIR Vaccine Administration Interval - 42 Days up to 2 Years Old
    define "Vaccine Administration Interval - 42 Days up to 2 Years Old":
      Interval[date from Patient.birthDate + 42 days, "Date of Second Birthday"]
    Library Name Name
    ChildhoodImmunizationStatusFHIR DTaP Immunizations or Procedures
    define "DTaP Immunizations or Procedures":
      ( ( ( [Immunization: "DTaP Vaccine"] ).isImmunizationAdministered ( ) ) DTaPVaccination
          where date from DTaPVaccination.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from DTaPVaccination.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "DTaP Vaccine Administered"] ).isProcedurePerformed ( ) ) DTaPProcedure
            where date from DTaPProcedure.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from DTaPProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Four DTaP Vaccinations
    //DTaP
    
    
    define "Four DTaP Vaccinations":
      from
        "DTaP Immunizations or Procedures" DTaPVaccination1,
        "DTaP Immunizations or Procedures" DTaPVaccination2,
        "DTaP Immunizations or Procedures" DTaPVaccination3,
        "DTaP Immunizations or Procedures" DTaPVaccination4
        where date from DTaPVaccination2.earliest ( ) 1 day or more after day of date from DTaPVaccination1.earliest ( )
          and date from DTaPVaccination3.earliest ( ) 1 day or more after day of DTaPVaccination2.earliest ( )
          and date from DTaPVaccination4.earliest ( ) 1 day or more after day of DTaPVaccination3.earliest ( )
        return all DTaPVaccination1
    Library Name Name
    ChildhoodImmunizationStatusFHIR First Two Years
    define "First Two Years":
      Interval[date from Patient.birthDate, "Date of Second Birthday"]
    Library Name Name
    ChildhoodImmunizationStatusFHIR DTaP Numerator Inclusion Conditions
    define "DTaP Numerator Inclusion Conditions":
      ( ( [Condition: "Anaphylactic Reaction to DTaP Vaccine"]
          union [Condition: "Encephalitis Due to Diphtheria, Tetanus or Pertussis Vaccine"]
      ) ) DTaPConditions
        where date from start of DTaPConditions.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Polio Immunizations or Procedures
    //Polio
    
    
    define "Polio Immunizations or Procedures":
      ( ( ( [Immunization: "Inactivated Polio Vaccine (IPV)"] ).isImmunizationAdministered ( ) ) PolioVaccination
          where date from PolioVaccination.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from QICoreCommon."Earliest" ( PolioVaccination.occurrence.toInterval ( ) )
      )
        union ( ( ( [Procedure: "Inactivated Polio Vaccine (IPV) Administered"] ).isProcedurePerformed ( ) ) PolioProcedure
            where date from PolioProcedure.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from PolioProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Three Polio Vaccinations
    define "Three Polio Vaccinations":
      from
        "Polio Immunizations or Procedures" PolioVaccination1,
        "Polio Immunizations or Procedures" PolioVaccination2,
        "Polio Immunizations or Procedures" PolioVaccination3
        where date from PolioVaccination2.earliest ( ) 1 day or more after date from PolioVaccination1.earliest ( )
          and date from PolioVaccination3.earliest ( ) 1 day or more after date from PolioVaccination2.earliest ( )
        return date from PolioVaccination1.earliest ( )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Polio Numerator Inclusion Conditions
    define "Polio Numerator Inclusion Conditions":
      [Condition: "Anaphylaxis caused by vaccine product containing human poliovirus antigen (disorder)"] PolioConditions
        where date from start of PolioConditions.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Date of First Birthday
    define "Date of First Birthday":
      date from Patient.birthDate + 1 year
    Library Name Name
    ChildhoodImmunizationStatusFHIR Date of First Birthday to Date of Second Birthday
    define "Date of First Birthday to Date of Second Birthday":
      Interval["Date of First Birthday", "Date of Second Birthday"]
    Library Name Name
    ChildhoodImmunizationStatusFHIR One MMR Vaccination
    //MMR
    
    
    define "One MMR Vaccination":
      ( ( ( [Immunization: "Measles, Mumps and Rubella (MMR) Vaccine"] ).isImmunizationAdministered ( ) ) MMRVaccination
          where date from MMRVaccination.occurrence.earliest ( ) during "Date of First Birthday to Date of Second Birthday"
          return date from MMRVaccination.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Measles, Mumps and Rubella (MMR) Vaccine Administered"] ).isProcedurePerformed ( ) ) MMRProcedure
            where date from MMRProcedure.performed.earliest ( ) during "Date of First Birthday to Date of Second Birthday"
            return date from MMRProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR MMR Numerator Inclusion Conditions
    define "MMR Numerator Inclusion Conditions":
      ( [Condition: "Anaphylaxis caused by vaccine product containing Measles morbillivirus and Mumps orthorubulavirus and Rubella virus antigens (disorder)"] ) MMRConditions
        where date from start of MMRConditions.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Measles Indicators
    define "Measles Indicators":
      [Condition: "Measles"] MeaslesDiagnosis
        where date from start of MeaslesDiagnosis.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Mumps Indicators
    define "Mumps Indicators":
      [Condition: "Mumps"] MumpsDiagnosis
        where date from start of MumpsDiagnosis.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Rubella Indicators
    define "Rubella Indicators":
      [Condition: "Rubella"] RubellaDiagnosis
        where date from start of RubellaDiagnosis.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hib 3 Dose Immunizations or Procedures
    define "Hib 3 Dose Immunizations or Procedures":
      ( ( ( [Immunization: "Hib Vaccine (3 dose schedule)"] ).isImmunizationAdministered ( ) ) ThreeDoseHibVaccine
          where date from ThreeDoseHibVaccine.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from ThreeDoseHibVaccine.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Hib Vaccine (3 dose schedule) Administered"] ).isProcedurePerformed ( ) ) ThreeDoseHibProcedure
            where date from ThreeDoseHibProcedure.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from ThreeDoseHibProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hib 4 Dose Immunizations or Procedures
    define "Hib 4 Dose Immunizations or Procedures":
      ( ( ( [Immunization: "Hib Vaccine (4 dose schedule)"] ).isImmunizationAdministered ( ) ) HibVaccine
          where date from HibVaccine.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from HibVaccine.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Hib Vaccine (4 dose schedule) Administered"] ).isProcedurePerformed ( ) ) HibProcedure
            where date from HibProcedure.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from HibProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hib 3 or 4 Dose Immunizations
    define "Hib 3 or 4 Dose Immunizations":
      "Hib 3 Dose Immunizations or Procedures"
        union "Hib 4 Dose Immunizations or Procedures"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has Appropriate Number of Hib Immunizations
    //HiB
    
    
    define "Has Appropriate Number of Hib Immunizations":
      exists ( "Hib 3 or 4 Dose Immunizations" HibImmunization //4 dose test
          
          let HasFourDose: Count("Hib 4 Dose Immunizations or Procedures") > 0
          where ( HasFourDose //if pt had at least one 4 dose code
              
              and Count(distinct("Hib 3 or 4 Dose Immunizations" HibVaccinations
                    return date from HibVaccinations.earliest()
                )
              ) >= 4 //pt must have 4 regimens (e.g., 3,3,4,4 or 4,3,4,4)
          
          )
            or ( HasFourDose is false //if pt did not have at least one 4 dose code
                
                and Count(distinct("Hib 3 or 4 Dose Immunizations" HibVaccinations
                      return date from HibVaccinations.earliest()
                  )
                ) >= 3 //pt must have 3 regimens of 3 dose codes
            
            )
      )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hib Numerator Inclusion Conditions
    define "Hib Numerator Inclusion Conditions":
      ( [Condition: "Anaphylaxis caused by vaccine product containing only Haemophilus influenzae type b antigen (disorder)"] ) HibReaction
        where date from start of HibReaction.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hepatitis B Immunizations or Procedures
    define "Hepatitis B Immunizations or Procedures":
      ( ( ( [Immunization: "Hepatitis B Vaccine"] ).isImmunizationAdministered ( ) ) HepatitisBVaccination
          where date from HepatitisBVaccination.occurrence.earliest ( ) during day of "First Two Years"
          return date from HepatitisBVaccination.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Hepatitis B Vaccine Administered"] ).isProcedurePerformed ( ) ) HepatitisBProcedure
            where date from HepatitisBProcedure.performed.earliest ( ) during day of "First Two Years"
            return date from HepatitisBProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Three Hepatitis B Vaccinations
    define "Three Hepatitis B Vaccinations":
      from
        "Hepatitis B Immunizations or Procedures" HepatitisBVaccination1,
        "Hepatitis B Immunizations or Procedures" HepatitisBVaccination2,
        "Hepatitis B Immunizations or Procedures" HepatitisBVaccination3
        where date from HepatitisBVaccination2.earliest ( ) 1 day or more after date from HepatitisBVaccination1.earliest ( )
          and date from HepatitisBVaccination3.earliest ( ) 1 day or more after date from HepatitisBVaccination2.earliest ( )
        return date from HepatitisBVaccination1.earliest ( )
    Library Name Name
    ChildhoodImmunizationStatusFHIR NewBorn Vaccine Requirement
    define "NewBorn Vaccine Requirement":
      ( ( [Procedure: "Introduction of Serum, Toxoid and Vaccine into Muscle, Percutaneous Approach"] ).isProcedurePerformed ( ) ) NewBornVaccine
        where date from NewBornVaccine.performed.earliest ( ) during day of Interval[date from Patient.birthDate, date from Patient.birthDate + 7 days]
        return date from NewBornVaccine.performed.earliest ( )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Meets HepB Vaccination Requirement
    define "Meets HepB Vaccination Requirement":
      from
        "Hepatitis B Immunizations or Procedures" HepatitisBVaccination1,
        "Hepatitis B Immunizations or Procedures" HepatitisBVaccination2,
        "NewBorn Vaccine Requirement" NewBornVaccine3
        where date from HepatitisBVaccination2.earliest ( ) 1 day or more after date from HepatitisBVaccination1.earliest ( )
          and date from HepatitisBVaccination1.earliest ( ) 1 day or more after date from NewBornVaccine3.earliest ( )
          and date from HepatitisBVaccination2.earliest ( ) 1 day or more after date from NewBornVaccine3.earliest ( )
        return date from HepatitisBVaccination1.earliest ( )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hepatitis B Numerator Inclusion Conditions
    //HepB
    
    
    define "Hepatitis B Numerator Inclusion Conditions":
      ( [Condition: "Anaphylaxis caused by vaccine product containing Hepatitis B virus antigen (disorder)"]
        union [Condition: "Hepatitis B"] ) HepBConditions
        where date from start of HepBConditions.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR One Chicken Pox Vaccination
    //VZV
    
    
    define "One Chicken Pox Vaccination":
      ( ( ( [Immunization: "Varicella Zoster Vaccine (VZV)"] ).isImmunizationAdministered ( ) ) ChickenPoxVaccination
          where date from ChickenPoxVaccination.occurrence.earliest ( ) during "Date of First Birthday to Date of Second Birthday"
          return date from ChickenPoxVaccination.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Varicella Zoster Vaccine (VZV) Administered"] ).isProcedurePerformed ( ) ) ChickenPoxProcedure
            where date from ChickenPoxProcedure.performed.earliest ( ) during "Date of First Birthday to Date of Second Birthday"
            return date from ChickenPoxProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Varicella Zoster Numerator Inclusion Conditions
    define "Varicella Zoster Numerator Inclusion Conditions":
      ( ( [Condition: "Varicella Zoster"]
          union [Condition: "Anaphylaxis caused by vaccine containing Human alphaherpesvirus 3 antigen (disorder)"]
      ) ) VaricellaZoster
        where date from start of VaricellaZoster.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Pneumococcal Conjugate Immunizations or Procedures
    define "Pneumococcal Conjugate Immunizations or Procedures":
      ( ( ( [Immunization: "Pneumococcal Conjugate Vaccine"] ).isImmunizationAdministered ( ) ) PneumococcalVaccination
          where date from PneumococcalVaccination.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from PneumococcalVaccination.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Pneumococcal Conjugate Vaccine Administered"] ).isProcedurePerformed ( ) ) PneumococcalProcedure
            where date from PneumococcalProcedure.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from PneumococcalProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Four Pneumococcal Conjugate Vaccinations
    //PCV
    
    
    define "Four Pneumococcal Conjugate Vaccinations":
      from
        "Pneumococcal Conjugate Immunizations or Procedures" PneumococcalVaccination1,
        "Pneumococcal Conjugate Immunizations or Procedures" PneumococcalVaccination2,
        "Pneumococcal Conjugate Immunizations or Procedures" PneumococcalVaccination3,
        "Pneumococcal Conjugate Immunizations or Procedures" PneumococcalVaccination4
        where date from PneumococcalVaccination2.earliest ( ) 1 day or more after date from PneumococcalVaccination1.earliest ( )
          and date from PneumococcalVaccination3.earliest ( ) 1 day or more after date from PneumococcalVaccination2.earliest ( )
          and date from PneumococcalVaccination4.earliest ( ) 1 day or more after date from PneumococcalVaccination3.earliest ( )
        return date from PneumococcalVaccination1.earliest ( )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Pneumococcal Conjugate Numerator Inclusion Conditions
    define "Pneumococcal Conjugate Numerator Inclusion Conditions":
      [Condition: "Anaphylaxis caused by vaccine product containing Streptococcus pneumoniae antigen (disorder)"] PneumococcalReaction
        where date from start of PneumococcalReaction.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR One Hepatitis A Vaccinations
    //HepA
    
    
    define "One Hepatitis A Vaccinations":
      ( ( ( [Immunization: "Hepatitis A Vaccine"] ).isImmunizationAdministered ( ) ) HepatitisAVaccination
          where date from HepatitisAVaccination.occurrence.earliest ( ) during "Date of First Birthday to Date of Second Birthday"
          return date from HepatitisAVaccination.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Hepatitis A Vaccine Administered"] ).isProcedurePerformed ( ) ) HepatitisAProcedure
            where date from HepatitisAProcedure.performed.earliest ( ) during "Date of First Birthday to Date of Second Birthday"
            return date from HepatitisAProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Hepatitis A Numerator Inclusion Conditions
    define "Hepatitis A Numerator Inclusion Conditions":
      ( [Condition: "Hepatitis A"]
        union [Condition: "Anaphylaxis caused by vaccine product containing Hepatitis A virus antigen (disorder)"] ) HepatitisADiagnosis
        where date from start of HepatitisADiagnosis.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Rotavirus 2 Dose Immunizations or Procedures
    define "Rotavirus 2 Dose Immunizations or Procedures":
      ( ( ( [Immunization: "rotavirus, live, monovalent vaccine"] ).isImmunizationAdministered ( ) ) TwoDoseRotavirusVaccine
          where date from TwoDoseRotavirusVaccine.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from TwoDoseRotavirusVaccine.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Rotavirus Vaccine (2 dose schedule) Administered"] ).isProcedurePerformed ( ) ) TwoDoseRotavirusProcedure
            where date from TwoDoseRotavirusProcedure.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from TwoDoseRotavirusProcedure.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Rotavirus 3 Dose Immunizations or Procedures
    define "Rotavirus 3 Dose Immunizations or Procedures":
      ( ( ( [Immunization: "Rotavirus Vaccine (3 dose schedule)"] ).isImmunizationAdministered ( ) ) ThreeDoseRotavirusVaccine
          where date from ThreeDoseRotavirusVaccine.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from ThreeDoseRotavirusVaccine.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Rotavirus Vaccine (3 dose schedule) Administered"] ).isProcedurePerformed ( ) ) ThreeDoseRotavirusAdministered
            where date from ThreeDoseRotavirusAdministered.performed.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
            return date from ThreeDoseRotavirusAdministered.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Rotavirus 2 or 3 Dose Immunizations
    define "Rotavirus 2 or 3 Dose Immunizations":
      "Rotavirus 2 Dose Immunizations or Procedures"
        union "Rotavirus 3 Dose Immunizations or Procedures"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has Appropriate Number of Rotavirus Immunizations
    //RV
    
    
    define "Has Appropriate Number of Rotavirus Immunizations":
      exists ( "Rotavirus 2 or 3 Dose Immunizations" RotavirusImmunization
          let HasThreeDose: Count("Rotavirus 3 Dose Immunizations or Procedures") > 0
          where ( HasThreeDose
              and Count(distinct("Rotavirus 2 or 3 Dose Immunizations" RotavirusVaccinations
                    return date from RotavirusVaccinations.earliest()
                )
              ) >= 3
          )
            or ( HasThreeDose is false
                and Count(distinct("Rotavirus 2 or 3 Dose Immunizations" RotavirusVaccinations
                      return date from RotavirusVaccinations.earliest()
                  )
                ) >= 2
            )
      )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Rotavirus Numerator Inclusion Conditions
    define "Rotavirus Numerator Inclusion Conditions":
      [Condition: "Anaphylaxis due to rotavirus vaccine (disorder)"] RotavirusConditions
        where date from start of RotavirusConditions.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Vaccine Administration Interval - 180 Days up to 2 Years Old
    define "Vaccine Administration Interval - 180 Days up to 2 Years Old":
      Interval[date from Patient.birthDate + 180 days, "Date of Second Birthday"]
    Library Name Name
    ChildhoodImmunizationStatusFHIR Influenza Immunizations or Procedures
    //Flu
    
    
    define "Influenza Immunizations or Procedures":
      ( ( ( [Immunization: "Child Influenza Vaccine"] ).isImmunizationAdministered ( ) ) InfluenzaVaccine
          where date from InfluenzaVaccine.occurrence.earliest ( ) during day of "Vaccine Administration Interval - 42 Days up to 2 Years Old"
          return date from InfluenzaVaccine.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Child Influenza Vaccine Administered"] ).isProcedurePerformed ( ) ) InfluenzaAdministration
            where date from InfluenzaAdministration.performed.earliest ( ) during day of "Vaccine Administration Interval - 180 Days up to 2 Years Old"
            return date from InfluenzaAdministration.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Two Influenza Vaccinations
    define "Two Influenza Vaccinations":
      from
        "Influenza Immunizations or Procedures" FluVaccination1,
        "Influenza Immunizations or Procedures" FluVaccination2
        where date from FluVaccination2.earliest ( ) 1 day or more after date from FluVaccination1.earliest ( )
        return date from FluVaccination1.earliest ( )
    Library Name Name
    ChildhoodImmunizationStatusFHIR LAIV Vaccinations
    define "LAIV Vaccinations":
      ( ( ( [Immunization: "Influenza Virus LAIV Vaccine"] ).isImmunizationAdministered ( ) ) LAIVVaccine
          where date from LAIVVaccine.occurrence.earliest ( ) during day of Interval["Date of Second Birthday", "Date of Second Birthday"]
          return date from LAIVVaccine.occurrence.earliest ( )
      )
        union ( ( ( [Procedure: "Influenza Virus LAIV Vaccine Administered"] ).isProcedurePerformed ( ) ) InfluenzaAdministration
            where date from InfluenzaAdministration.performed.earliest ( ) during day of Interval["Date of Second Birthday", "Date of Second Birthday"]
            return date from InfluenzaAdministration.performed.earliest ( )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Two Influenza Vaccinations Including One LAIV Vaccination
    define "Two Influenza Vaccinations Including One LAIV Vaccination":
      exists "LAIV Vaccinations"
        and exists "Influenza Immunizations or Procedures"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Influenza Numerator Inclusion Conditions
    define "Influenza Numerator Inclusion Conditions":
      [Condition: "Anaphylaxis caused by vaccine product containing Influenza virus antigen (disorder)"] InfluenzaConditions
        where date from start of InfluenzaConditions.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Numerator
    define "Numerator":
      ( exists ( "Four DTaP Vaccinations" )
          or exists ( "DTaP Numerator Inclusion Conditions" )
      )
        and ( exists ( "Three Polio Vaccinations" )
            or exists ( "Polio Numerator Inclusion Conditions" )
        )
        and ( exists ( "One MMR Vaccination" )
            or exists ( "MMR Numerator Inclusion Conditions" )
            or ( exists ( "Measles Indicators" )
                and exists ( "Mumps Indicators" )
                and exists ( "Rubella Indicators" )
            )
        )
        and ( "Has Appropriate Number of Hib Immunizations"
            or exists ( "Hib Numerator Inclusion Conditions" )
        )
        and ( exists ( "Three Hepatitis B Vaccinations" )
            or ( exists ( "Meets HepB Vaccination Requirement" )
                or exists ( "Hepatitis B Numerator Inclusion Conditions" )
            )
        )
        and ( exists ( "One Chicken Pox Vaccination" )
            or exists ( "Varicella Zoster Numerator Inclusion Conditions" )
        )
        and ( exists ( "Four Pneumococcal Conjugate Vaccinations" )
            or exists ( "Pneumococcal Conjugate Numerator Inclusion Conditions" )
        )
        and ( exists ( "One Hepatitis A Vaccinations" )
            or exists ( "Hepatitis A Numerator Inclusion Conditions" )
        )
        and ( "Has Appropriate Number of Rotavirus Immunizations"
            or exists ( "Rotavirus Numerator Inclusion Conditions" )
        )
        and ( exists ( "Two Influenza Vaccinations" )
            or ( "Two Influenza Vaccinations Including One LAIV Vaccination" )
            or exists ( "Influenza Numerator Inclusion Conditions" )
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Qualifying Encounters
    define "Qualifying Encounters":
      ( ( [Encounter: "Office Visit"]
          union [Encounter: "Home Healthcare Services"]
          union [Encounter: "Preventive Care, Established Office Visit, 0 to 17"]
          union [Encounter: "Preventive Care Services, Initial Office Visit, 0 to 17"]
          union ( [Encounter] E
              where exists ( ( E.type ) T
                  where T ~ "Office or other outpatient visit for the evaluation and management of an established patient that may not require the presence of a physician or other qualified health care professional"
              )
          )
          union [Encounter: "Virtual Encounter"]
          union [Encounter: "Telephone Visits"]
      ).isEncounterPerformed ( ) ) ValidEncounters
        where ValidEncounters.period.toInterval ( ) during day of "Measurement Period"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Initial Population
    define "Initial Population":
      AgeInYearsAt(date from 
        end of "Measurement Period"
      ) = 2
        and exists ( "Qualifying Encounters" )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Denominator
    define "Denominator":
      "Initial Population"
    Library Name Name
    Hospice Has Hospice Services
    define "Has Hospice Services":
      exists ((([Encounter: "Encounter Inpatient"]).isEncounterPerformed()) InpatientEncounter
          where (InpatientEncounter.hospitalization.dischargeDisposition ~ "Discharge to home for hospice care (procedure)"
              or InpatientEncounter.hospitalization.dischargeDisposition ~ "Discharge to healthcare facility for hospice care (procedure)"
          )
            and InpatientEncounter.period.toInterval() ends during day of "Measurement Period"
      )
        or exists ((([Encounter: "Hospice Encounter"]).isEncounterPerformed()) HospiceEncounter
            where HospiceEncounter.period.toInterval() overlaps day of "Measurement Period"
        )
        or exists ((([Observation: "Hospice care [Minimum Data Set]"]).isAssessmentPerformed()) HospiceAssessment
            where HospiceAssessment.value ~ "Yes (qualifier value)"
              and HospiceAssessment.effective.toInterval() overlaps day of "Measurement Period"
        )
        or exists ((([ServiceRequest: "Hospice Care Ambulatory"]).isInterventionOrder()) HospiceOrder
            where HospiceOrder.authoredOn.toInterval() during day of "Measurement Period"
            // and HospiceOrder.doNotPerform is not true
            // https://oncprojectracking.healthit.gov/support/browse/CQLIT-447
        )
        or exists ((([Procedure: "Hospice Care Ambulatory"]).isInterventionPerformed()) HospicePerformed
            where HospicePerformed.performed.toInterval() overlaps day of "Measurement Period"
        )
        or exists (([Condition: "Hospice Diagnosis"]) HospiceCareDiagnosis
            where HospiceCareDiagnosis.prevalenceInterval() overlaps day of "Measurement Period"
        )
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has Severe Combined Immunodeficiency
    define "Has Severe Combined Immunodeficiency":
      exists [Condition: "Severe Combined Immunodeficiency"] SevereImmuneDisorder
        where date from start of SevereImmuneDisorder.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has Immunodeficiency
    define "Has Immunodeficiency":
      exists [Condition: "Disorders of the Immune System"] ImmuneDisorder
        where date from start of ImmuneDisorder.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has HIV
    define "Has HIV":
      exists [Condition: "HIV"] HIV
        where date from start of HIV.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has Lymphoreticular Cancer, Multiple Myeloma or Leukemia
    define "Has Lymphoreticular Cancer, Multiple Myeloma or Leukemia":
      exists [Condition: "Malignant Neoplasm of Lymphatic and Hematopoietic Tissue"] LymphaticMalignantNeoplasm
        where date from start of LymphaticMalignantNeoplasm.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Has Intussusception
    define "Has Intussusception":
      exists [Condition: "Intussusception"] IntussusceptionDisorder
        where date from start of IntussusceptionDisorder.prevalenceInterval ( ) during day of "First Two Years"
    Library Name Name
    ChildhoodImmunizationStatusFHIR Denominator Exclusions
    define "Denominator Exclusions":
      Hospice."Has Hospice Services"
        or "Has Severe Combined Immunodeficiency"
        or "Has Immunodeficiency"
        or "Has HIV"
        or "Has Lymphoreticular Cancer, Multiple Myeloma or Leukemia"
        or "Has Intussusception"
    Library Name Name
    Status isImmunizationAdministered
    //Immunization, Administered: completed only
    define fluent function isImmunizationAdministered(Immunization List<Immunization>):
      Immunization I
        where I.status ~ 'completed'
    Library Name Name
    QICoreCommon earliest
    /*
    @description: Given an interval, return the starting point if the interval has a starting boundary specified,
    otherwise, return the ending point
    */
    define fluent function earliest(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>> ):
      (choice.toInterval()) period
        return
          if (period."hasStart"()) then start of period
          else end of period
    Library Name Name
    Status isProcedurePerformed
    //Procedure, Performed
    define fluent function isProcedurePerformed(Proc List<Procedure>):
      Proc P
        where P.status ~ 'completed'
    Library Name Name
    QICoreCommon prevalenceInterval
    /*
    @description: Returns an interval representing the normalized prevalence period of a given Condition.
    @comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
    onset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting 
    interval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.
    */
    define fluent function prevalenceInterval(condition Condition):
    if condition.clinicalStatus ~ "active"
      or condition.clinicalStatus ~ "recurrence"
      or condition.clinicalStatus ~ "relapse" then
      Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
    else
        (end of condition.abatementInterval()) abatementDate
        return if abatementDate is null then
          Interval[start of condition.onset.toInterval(), abatementDate)
        else
          Interval[start of condition.onset.toInterval(), abatementDate]
    Library Name Name
    QICoreCommon Earliest
    /*
    @description: Given an interval, return the starting point if the interval has a starting boundary specified,
    otherwise, return the ending point
    @deprecated: This function is deprecated. Use the fluent function `earliest()` instead
    */
    define function "Earliest"(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>> ):
      (choice.toInterval()) period
        return
          if (HasStart(period)) then start of period
          else end of period
    Library Name Name
    QICoreCommon toInterval
    /*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of DateTime, Quanitty, Interval<DateTime>, or Interval<Quantity> types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in QICore, allowing this function to be used across any resource.
    The input can be provided as a DateTime, Quantity, Interval<DateTime> or Interval<Quantity>.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a DateTime, the result a DateTime Interval beginning and ending on that DateTime.
    If the input is a Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,
    and the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.
    If the input is a DateTime Interval, the result is the input.
    If the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result
    is a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending
    immediately before one year later than the date the patient turned the age given as the end of the quantity interval.
    If the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval
    */
    define fluent function toInterval(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>, Timing>):
      case
    	  when choice is DateTime then
        	Interval[choice as DateTime, choice as DateTime]
    		when choice is Interval<DateTime> then
      		choice as Interval<DateTime>
    		when choice is Quantity then
    		  Interval[Patient.birthDate + (choice as Quantity),
    			  Patient.birthDate + (choice as Quantity) + 1 year)
    		when choice is Interval<Quantity> then
    		  Interval[Patient.birthDate + (choice.low as Quantity),
    			  Patient.birthDate + (choice.high as Quantity) + 1 year)
    		when choice is Timing then
          Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval<DateTime>
    		else
    			null as Interval<DateTime>
    	end
    Library Name Name
    Status isEncounterPerformed
    //Encounter, Performed
    //General usage unless required otherwise by measure intent (e.g., follow-up encounters)
    define fluent function isEncounterPerformed(Enc List<Encounter>):
      Enc E
        where E.status in {'finished', 'arrived', 'triaged', 'in-progress', 'onleave'}
    Library Name Name
    FHIRHelpers ToConcept
    /*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }
    Library Name Name
    Status isAssessmentPerformed
    //This library contains functions that are based on QDM 5.6 to QICore 4.1.1 March 2023 (https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/wiki/Authoring-Patterns---QICore-v4.1.1). The functions may appear similar to some QICoreCommon functions but different in that they have constraints that are relevant for measures authored by NCQA.
    
    //Assessment, Performed
    define fluent function isAssessmentPerformed(Obs List<Observation>):
      Obs O
        where O.status in { 'final', 'amended', 'corrected' }
              and exists ( O.category ObservationCategory
              where ( ObservationCategory ) ~ "survey"
          )
    Library Name Name
    Status isInterventionOrder
    //Intervention, Order: active and completed only    
    define fluent function isInterventionOrder(ServiceRequest List<ServiceRequest>):
      ServiceRequest S
        where S.status in { 'active', 'completed' }
          and S.intent = 'order'
    Library Name Name
    Status isInterventionPerformed
    //Intervention, Performed
    define fluent function isInterventionPerformed(Proc List<Procedure>):
      Proc P
        where P.status ~ 'completed'