WHO Immunization Implementation Guide
0.2.0 - ci-build

WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/tree/123/merge and changes regularly. See the Directory of published versions

: IMMZ.D2.DT.Measles.MCV dose 0 - JSON Representation

Draft as of 2026-03-03

Raw json | Download

{
  "resourceType" : "PlanDefinition",
  "id" : "IMMZD2DTMeaslesMCVDose0",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"🔗 ,
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition"🔗 ,
      "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishableplandefinition"
    ]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTMeaslesMCVDose0</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-IMMZD2DTMeaslesMCVDose0.html\">IMMZ.D2.DT.Measles.MCV dose 0</a></td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">0.2.0</td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZ.D2.DT.Measles.MCV dose 0</td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">draft</td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/7.0.1/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>eca-rule</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2026-03-03 13:07:11+0000</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">WHO</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\"><div><p>IMMZ.D2.DT.Measles.MCV dose 0\nMeasles-containing vaccine dose 0 (MCV0) administration</p>\n</div></td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Knowledge Capability: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                computable \n            </td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Related Artifacts: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                <p><b>References</b></p>\n                <ul>\n                    \n                    <li><div><p>WHO recommendations for routine immunization - summary tables (January 2025)</p>\n</div><br/><a href=\"null\"/></li>\n                    \n                </ul>\n                \n                \n                \n                \n                \n                \n            </td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Libraries: </b></th>\n            <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    \n                    <tr>\n                        <td><a href=\"Library-IMMZD2DTMeaslesMCVDose0Logic.html\">IMMZD2DTMeaslesMCVDose0Logic</a></td>\n                    </tr>\n                    \n                </table>\n            </td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Actions: </b></th>\n            <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    \n                    <tr>\n                        <td>\n                            \n                            <b> Check for Guidance for the patient regarding IMMZ.D2.DT.Measles.MCV dose 0.:</b> Show Guidance for the patient regarding IMMZ.D2.DT.Measles.MCV dose 0.\n                            \n                            <br/>\n                            \n                            \n                            <b>If:</b>\n                            \n                            <i>Applicability:</i>\n                            \n                            Has Guidance\n                            \n                            <i>(Has Guidance)</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                            <b>Then:</b> <i>Definition:</i> <a href=\"ActivityDefinition-IMMZD2DTCR.html\">IMMZ.D2.DT.CR</a><br/>\n                            \n                            <i>Dynamic Values:</i><br/>\n                            \n                            status: <i>('active')</i>\n                            <br/>\n                            \n                            payload.contentString: <i>(Guidance)</i>\n                            <br/>\n                            \n                            category.coding: <i>(Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' })</i>\n                            <br/>\n                            \n                            priority: <i>(Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' })</i>\n                            <br/>\n                            \n                            \n                            \n                            \n                        </td>\n                    </tr>\n                    \n                </table>\n            </td>\n        </tr>\n        \n    </table>\n</div>\n</div>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "extension" : [
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Current Patient Age In Months"
            },
            {
              "url" : "statement",
              "valueString" : "/** \n * @dataElement Patient age in months\n */\ndefine \"Current Patient Age In Months\":\n  AgeInMonthsAt(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 0
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is less than 6 months"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is less than 6 months\n@pseudocode: Today's date − \"Date of birth\" < 6 months\n@code: Client's age is less than 6 months-41\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"Client's age is less than 6 months\":\n  Encounter.\"Current Patient Age In Months\" < 6"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 1
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for MCV0 Case 1"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for MCV0 Case 1\n@pseudocode: \"Immunization recommendation status\" = \"Not due\"\n*/\ndefine \"Client is not due for MCV0 Case 1\":\n  Encounter.\"Client's age is less than 6 months\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 2
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZElements"
            },
            {
              "url" : "name",
              "valueString" : "Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @dataElement All Doses Administered to Patient\n */\ndefine \"Doses Administered to Patient\":\n  [Immunization] I\n    where I.status = 'completed'\n    and I.isSubpotent is not true"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 3
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesElements"
            },
            {
              "url" : "name",
              "valueString" : "MCV Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: MCV Doses Administered to Patient\n*/\ndefine \"MCV Doses Administered to Patient\":\n  Elements.\"Doses Administered to Patient\" I\n  where\n    I.vaccineCode in Concepts.\"Measles-containing vaccines\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 4
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesElements"
            },
            {
              "url" : "name",
              "valueString" : "MCV Dose 0 Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: MCV Dose 0 Doses Administered to Patient\n*/\ndefine \"MCV Dose 0 Doses Administered to Patient\":\n  \"MCV Doses Administered to Patient\".seriesDose0()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 5
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "MCV Dose 0 Doses Administered to Patient"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: MCV Dose 0 Doses Administered to Patient\n*/\ndefine \"MCV Dose 0 Doses Administered to Patient\":\n  MeaslesElements.\"MCV Dose 0 Doses Administered to Patient\".onOrBefore(Today)"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 6
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Number of MCV Dose 0 Doses Administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@internal: Number of MCV Dose 0 Doses Administered\n*/\ndefine \"Number of MCV Dose 0 Doses Administered\":\n  Count(\"MCV Dose 0 Doses Administered to Patient\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 7
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "MCV0 was not administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: MCV0 was not administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Measles-containing vaccines\" and \"Type of dose\" = \"Dose 0\") = 0\n@code: MCV0 was not administered-119\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"MCV0 was not administered\":\n  \"Number of MCV Dose 0 Doses Administered\" = 0"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 8
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is between 6 months and 9 months"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is between 6 months and 9 months\n@pseudocode: 6 months ≤ Today's date − \"Date of birth\" < 9 months\n@code: Client's age is between 6 months and 9 months-52\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"Client's age is between 6 months and 9 months\":\n  6 <= Encounter.\"Current Patient Age In Months\"\n  and Encounter.\"Current Patient Age In Months\" < 9"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 9
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZElements"
            },
            {
              "url" : "name",
              "valueString" : "Live Attenuated Vaccines"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n  @dataElement: Live attenuated vaccines\n*/\ndefine \"Live Attenuated Vaccines\":\n  \"Doses Administered to Patient\" I \n    where I.vaccineCode in Concepts.\"Live Attenuated\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 10
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Live Attenuated Vaccines"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@dataElement Live attenuated vaccines\n*/\ndefine \"Live Attenuated Vaccines\":\n  Elements.\"Live Attenuated Vaccines\" I\n    where I.occurrence.toInterval() same day or before Today"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 11
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Date of Latest Live Attenuated Vaccine"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@dataElement Date and time of last live attenuated vaccine\n*/\ndefine \"Date of Latest Live Attenuated Vaccine\":\n  date from start of \"Live Attenuated Vaccines\".mostRecent().occurrence.toInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 12
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Live vaccine was administered in the last 4 weeks"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Live vaccine was administered in the last 4 weeks\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Live vaccine\" = TRUE) < 4 weeks\n*/\ndefine \"Live vaccine was administered in the last 4 weeks\":\n\t\"Date of Latest Live Attenuated Vaccine\" is not null \n    and duration in weeks between \"Date of Latest Live Attenuated Vaccine\" and Today < 4"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 13
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Live vaccine was administered in the last 4 weeks"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Live vaccine was administered in the last 4 weeks\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Live vaccine\" = TRUE) < 4 weeks\n@code: Live vaccine was administered in the last 4 weeks-92\n@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)\n@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"Live vaccine was administered in the last 4 weeks\":\n  Encounter.\"Live vaccine was administered in the last 4 weeks\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 14
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for MCV0 Case 2"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for MCV0 Case 2\n@pseudocode: \"Immunization recommendation status\" = \"Not due\"\n*/\ndefine \"Client is not due for MCV0 Case 2\":\n  Encounter.\"MCV0 was not administered\"\n    and Encounter.\"Client's age is between 6 months and 9 months\"\n    and Encounter.\"Live vaccine was administered in the last 4 weeks\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 15
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "Client's age is more than or equal to 9 months"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: Client's age is more than or equal to 9 months\n@pseudocode: Today's date − \"Date of birth\" ≥ 9 months\n@code: Client's age is more than or equal to 9 months-41\n@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"Client's age is more than or equal to 9 months\":\n  Encounter.\"Current Patient Age In Months\" >= 9"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 16
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for MCV0 Case 3"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for MCV0 Case 3\n@pseudocode: \"Immunization recommendation status\" = \"Not due\"\n*/\ndefine \"Client is not due for MCV0 Case 3\":\n  Encounter.\"Client's age is more than or equal to 9 months\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 17
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "MCV0 was administered"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: MCV0 was administered\n@pseudocode: Count of vaccines administered (where \"Vaccine type\" = \"Measles-containing vaccines\" and \"Type of dose\" = \"Dose 0\") = 1\n@code: MCV0 was administered-119\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"MCV0 was administered\":\n  \"Number of MCV Dose 0 Doses Administered\" = 1"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 18
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for MCV0 Case 4"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for MCV0 Case 4\n@pseudocode: \"Immunization recommendation status\" = \"Not due\"\n*/\ndefine \"Client is not due for MCV0 Case 4\":\n  Encounter.\"MCV0 was administered\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 19
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for MCV0"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for MCV0\n@pseudocode: \"Immunization recommendation status\" = \"Not due\"\n*/\ndefine \"Client is not due for MCV0\":\n  \"Client is not due for MCV0 Case 1\"\n    or \"Client is not due for MCV0 Case 2\"\n    or \"Client is not due for MCV0 Case 3\"\n    or \"Client is not due for MCV0 Case 4\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 20
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Client is not due for MCV0 Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Client is not due for MCV0 Guidance\n@guidance = Should not vaccinate client with MCV0 as client's age is less than 6 months. Check for any vaccines due and inform the caregiver of when to come back for MCV0.\n@guidance = Should not vaccinate client with MCV0 as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for MCV0.\n@guidance = Should not vaccinate client with MCV0 as client's age is more than 9 months.\nCheck measles routine immunization schedule.\n@guidance = MCV0 was administered.\nCheck measles routine immunization schedule.\n*/\ndefine \"Client is not due for MCV0 Guidance\":\n  case\n    when \"Client is not due for MCV0 Case 1\" then 'Should not vaccinate client with MCV0 as client\\'s age is less than 6 months. Check for any vaccines due and inform the caregiver of when to come back for MCV0.'\n    when \"Client is not due for MCV0 Case 2\" then 'Should not vaccinate client with MCV0 as live vaccine was administered in the past 4 weeks. Check for any vaccines due and inform the caregiver of when to come back for MCV0.'\n    when \"Client is not due for MCV0 Case 3\" then 'Should not vaccinate client with MCV0 as client\\'s age is more than 9 months.\nCheck measles routine immunization schedule.'\n    when \"Client is not due for MCV0 Case 4\" then 'MCV0 was administered.\nCheck measles routine immunization schedule.'\n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 21
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "No live vaccine was administered in the last 4 weeks"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: No live vaccine was administered in the last 4 weeks\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Live vaccine\" = TRUE) ≥ 4 weeks\n*/\ndefine \"No live vaccine was administered in the last 4 weeks\":\n  not(\"Live vaccine was administered in the last 4 weeks\")"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 22
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesEncounterElements"
            },
            {
              "url" : "name",
              "valueString" : "No live vaccine was administered in the last 4 weeks"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@input: No live vaccine was administered in the last 4 weeks\n@pseudocode: Today's date − latest \"Date and time of vaccination\" (where \"Live vaccine\" = TRUE) ≥ 4 weeks\n@code: No live vaccine was administered in the last 4 weeks-92\n@decision: IMMZ.D2.DT.Measles.Ongoing transmission: Countries with ongoing transmission in which the risk of measles mortality remains high (countries that provide first dose of measles-containing vaccine (MCV) at 9 months and second dose of MCV at 15 months)\n@decision: IMMZ.D2.DT.Measles.Low transmission: Countries with low levels of measles transmission (countries that provide first dose of measles-containing vaccine (MCV) at 12 months and second dose of MCV at 15 months)\n@decision: IMMZ.D2.DT.Measles.MCV dose 0: Measles-containing vaccine dose 0 (MCV0) administration\n*/\ndefine \"No live vaccine was administered in the last 4 weeks\":\n  Encounter.\"No live vaccine was administered in the last 4 weeks\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 23
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Consider MCV0."
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Consider MCV0.\n@pseudocode: Create a clinical note.\n\"Immunization recommendation status\" = \"Further evaluation needed\"\n*/\ndefine \"Consider MCV0.\":\n  Encounter.\"MCV0 was not administered\"\n    and Encounter.\"Client's age is between 6 months and 9 months\"\n    and Encounter.\"No live vaccine was administered in the last 4 weeks\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 24
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Consider MCV0. Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@output: Consider MCV0. Guidance\n@guidance: May vaccinate client with MCV0 as client is within appropriate age range, MCV0 was not administered and no live vaccine was administered in the past 4 weeks. Check if one of the MCV0 specific scenarios is applicable.\n*/\ndefine \"Consider MCV0. Guidance\":\n  'May vaccinate client with MCV0 as client is within appropriate age range, MCV0 was not administered and no live vaccine was administered in the past 4 weeks. Check if one of the MCV0 specific scenarios is applicable.'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 25
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@dynamicValue: Guidance\n*/\ndefine \"Guidance\":\n  case \n    when \"Client is not due for MCV0\" then \"Client is not due for MCV0 Guidance\"\n    when \"Consider MCV0.\" then \"Consider MCV0. Guidance\" \n    else ''\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 26
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZD2DTMeaslesMCVDose0Logic"
            },
            {
              "url" : "name",
              "valueString" : "Has Guidance"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Guidance\":\n  \"Guidance\" is not null and \"Guidance\" != ''"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 27
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZCommon"
            },
            {
              "url" : "name",
              "valueString" : "onOrBefore"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @description: Gets immunizations on or before a date\n */\ndefine fluent function onOrBefore(immunizations List<Immunization>, beforeDate Date):\n  immunizations I where\n    I.occurrence.toInterval() same day or before beforeDate"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 28
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "IMMZCommon"
            },
            {
              "url" : "name",
              "valueString" : "seriesDose0"
            },
            {
              "url" : "statement",
              "valueString" : "/**\n * @description: Gets the doses from the dose 0 series\n */\ndefine fluent function seriesDose0(immunizations List<Immunization>):\n  immunizations I where\n    exists( I.protocolApplied pa where pa.series = 'Dose 0' )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 29
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value string): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 30
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ImmunizationStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 31
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToBoolean"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToBoolean(value boolean): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 32
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToConcept"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 33
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToCode"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 34
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "WHOCommon"
            },
            {
              "url" : "name",
              "valueString" : "mostRecent"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function mostRecent(immunizations List<Immunization>):\n  Last(\n    immunizations I\n      sort by start of occurrence.toInterval()\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 35
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        }
      ],
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "FHIR model information",
          "resource" : "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library Encounter",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZD2DTMeaslesEncounterElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library Encounter",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZEncounterElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library Common",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library MeaslesElements",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZD2DTMeaslesElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library Elements",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library Concepts",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/immunizations/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library Elements",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library Concepts",
          "resource" : "http://smart.who.int/immunizations/Library/IMMZConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Measles-containing vaccines",
          "resource" : "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.DE9"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Live Attenuated",
          "resource" : "http://smart.who.int/immunizations/ValueSet/IMMZ.Z.LiveAttenuated"
        }
      ],
      "parameter" : [
        {
          "name" : "Today",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "date"
        },
        {
          "name" : "Guidance",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Has Guidance",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Patient",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Patient"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode",
            "occurrence"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        },
        {
          "type" : "Immunization",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Immunization"
          ],
          "mustSupport" : [
            "status",
            "isSubpotent",
            "vaccineCode"
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
      "valueCode" : "computable"
    },
    {
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical" : "#effective-data-requirements"
    }
  ],
  "url" : "http://smart.who.int/immunizations/PlanDefinition/IMMZD2DTMeaslesMCVDose0",
  "version" : "0.2.0",
  "name" : "IMMZD2DTMeaslesMCVDose0",
  "title" : "IMMZ.D2.DT.Measles.MCV dose 0",
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
        "code" : "eca-rule"
      }
    ]
  },
  "status" : "draft",
  "experimental" : false,
  "date" : "2026-03-03T13:07:11+00:00",
  "publisher" : "WHO",
  "contact" : [
    {
      "name" : "WHO",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://who.int"
        }
      ]
    }
  ],
  "description" : "IMMZ.D2.DT.Measles.MCV dose 0\nMeasles-containing vaccine dose 0 (MCV0) administration",
  "relatedArtifact" : [
    {
      "type" : "citation",
      "citation" : "WHO recommendations for routine immunization - summary tables (January 2025)"
    }
  ],
  "library" : [
    🔗 "http://smart.who.int/immunizations/Library/IMMZD2DTMeaslesMCVDose0Logic"
  ],
  "action" : [
    {
      "title" : "Check for Guidance for the patient regarding IMMZ.D2.DT.Measles.MCV dose 0.",
      "description" : "Show Guidance for the patient regarding IMMZ.D2.DT.Measles.MCV dose 0.",
      "condition" : [
        {
          "kind" : "applicability",
          "expression" : {
            "description" : "Has Guidance",
            "language" : "text/cql-identifier",
            "expression" : "Has Guidance"
          }
        }
      ],
      "definitionCanonical" : "http://smart.who.int/immunizations/ActivityDefinition/IMMZD2DTCR",
      "dynamicValue" : [
        {
          "path" : "status",
          "expression" : {
            "language" : "text/cql-expression",
            "expression" : "'active'"
          }
        },
        {
          "path" : "payload.contentString",
          "expression" : {
            "language" : "text/cql-identifier",
            "expression" : "Guidance"
          }
        },
        {
          "path" : "category.coding",
          "expression" : {
            "description" : "Category of communication",
            "language" : "text/cql-expression",
            "expression" : "Code { system: 'http://terminology.hl7.org/CodeSystem/communication-category', code: 'alert' }"
          }
        },
        {
          "path" : "priority",
          "expression" : {
            "description" : "Alert priority",
            "language" : "text/cql-expression",
            "expression" : "Code { system: 'http://hl7.org/fhir/request-priority', code: 'routine' }"
          }
        }
      ]
    }
  ]
}