{
  "resourceType": "Library",
  "id": "IMMZIndicatorElements",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary",
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablelibrary",
      "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-library",
      "http://hl7.org/fhir/uv/cql/StructureDefinition/cql-module"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b style=\"color: maroon\">Exception parsing generated Narrative (see /tmp/liquid-a4909bf8-aa28-46d6-88b1-a592a21dc482.html): Unable to Parse HTML - node 'Date' has unexpected content ' ' (last text = ' default Interval[@2025-01-01, @2025-12-31]\n\ncontext Patient\n\n/*\n@stratifier: Age in Years\n*/\ndefine &quot;Age Stratifier&quot;:\n  case\n    when AgeInYearsAt(end of &quot;Measurement Period&quot;) ' at line 307 column 53</b></p></div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
      "valueCode": "computable"
    }
  ],
  "url": "http://smart.who.int/immunizations-measles/Library/IMMZIndicatorElements",
  "version": "1.0.0",
  "name": "IMMZIndicatorElements",
  "title": "IMMZIndicatorElements",
  "status": "draft",
  "experimental": true,
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/library-type",
        "code": "logic-library"
      }
    ]
  },
  "date": "2026-10-02T09:24:37+00:00",
  "publisher": "WHO",
  "contact": [
    {
      "name": "WHO",
      "telecom": [
        {
          "system": "url",
          "value": "http://who.int"
        }
      ]
    }
  ],
  "description": "This library defines indicator-based elements and terminologies used throughout the Immunization CPG indicators",
  "relatedArtifact": [
    {
      "type": "depends-on",
      "display": "Library WHOConcepts",
      "resource": "http://smart.who.int/immunizations/Library/WHOConcepts"
    },
    {
      "type": "depends-on",
      "display": "Library WC",
      "resource": "http://smart.who.int/immunizations/Library/WHOCommon"
    },
    {
      "type": "depends-on",
      "display": "Library Concepts",
      "resource": "http://smart.who.int/immunizations/Library/IMMZConcepts"
    },
    {
      "type": "depends-on",
      "display": "Library Age",
      "resource": "http://smart.who.int/immunizations/Library/IMMZAgeConcepts"
    },
    {
      "type": "depends-on",
      "display": "Library Common",
      "resource": "http://smart.who.int/immunizations/Library/IMMZCommon"
    },
    {
      "type": "depends-on",
      "display": "Library Elements",
      "resource": "http://smart.who.int/immunizations/Library/IMMZElements"
    },
    {
      "type": "depends-on",
      "display": "Code System Administrative Gender Codes",
      "resource": "http://hl7.org/fhir/administrative-gender"
    }
  ],
  "parameter": [
    {
      "name": "Measurement Period",
      "use": "in",
      "min": 0,
      "max": "1",
      "type": "Period"
    },
    {
      "name": "Patient",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Patient"
    },
    {
      "name": "Age Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "Newborn By Age Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "Infant By Age Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "Toddler By Age Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "Child By Age Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "Adolescent By Age Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "By Age Group Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "By Administrative Gender Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Coding"
    },
    {
      "name": "By Geographic Region Stratifier",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "string"
    },
    {
      "name": "Patient Deceased During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Patient Born During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Patient Under 12 Months Old During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Patient Under 2 Years Old During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "Doses Administered to Patient During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Adverse Events During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "AdverseEvent"
    },
    {
      "name": "Immunizations And Adverse Events During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Resource"
    },
    {
      "name": "Pentavalent Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Pentavalent Doses Administered to Patient During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Measles and Rubella Doses Administered to Patient",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Measles and Rubella Doses Administered to Patient During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "COVID-19 Doses Administered to Patient During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Adverse Events for Immunization",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "AdverseEvent"
    },
    {
      "name": "Immunizations with Adverse Events During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "Immunization"
    },
    {
      "name": "Adverse Event Reactions During Measurement Period",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "AdverseEvent"
    }
  ],
  "dataRequirement": [
    {
      "type": "AdverseEvent",
      "profile": [
        "http://hl7.org/fhir/StructureDefinition/AdverseEvent"
      ]
    },
    {
      "type": "AdverseEvent",
      "profile": [
        "http://hl7.org/fhir/StructureDefinition/AdverseEvent"
      ]
    },
    {
      "type": "Location",
      "profile": [
        "http://hl7.org/fhir/StructureDefinition/Location"
      ]
    },
    {
      "type": "Location",
      "profile": [
        "http://hl7.org/fhir/StructureDefinition/Location"
      ]
    }
  ],
  "content": [
    {
      "contentType": "text/cql",
      "url": "Library-IMMZIndicatorElements.cql"
    },
    {
      "contentType": "application/elm+xml",
      "url": "Library-IMMZIndicatorElements.elm.xml"
    }
  ]
}
