WHO Immunization Implementation Guide
1.0.0 - release

WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 1.0.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/132/merge and changes regularly. See the Directory of published versions

: IMMZD2DTHepatitisAInactivatedHAV2DosesLogic - JSON Representation

Draft as of 2026-03-31

Raw json | Download

{
  "resourceType" : "Library",
  "id" : "IMMZD2DTHepatitisAInactivatedHAV2DosesLogic",
  "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\">\n<div>\n    <table class=\"grid dict\">\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTHepatitisAInactivatedHAV2DosesLogic</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTHepatitisAInactivatedHAV2DosesLogic</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">1.0.0</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-IMMZD2DTHepatitisAInactivatedHAV2DosesLogic.html\">IMMZD2DTHepatitisAInactivatedHAV2DosesLogic</a></td>\n        </tr>\n        \n\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.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</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-31 13:54:17+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>This library defines decision support logic for the IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses decision table in the Immunization CPG</p>\n</div></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\n        \n        <tr>\n            <th scope=\"row\"><b>Related Artifacts: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                \n                <p><b>Dependencies</b></p>\n                <ul>\n                  \n                    <li><a href=\"Library-IMMZD2DTHepatitisAEncounterElements.html\">IMMZD2DTHepatitisAEncounterElements</a></li>\n                  \n                </ul>\n                \n                \n                \n                \n                \n            </td>\n        </tr>\n        \n\n        \n        <tr>\n          <th scope=\"row\"><b>Parameters: </b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>\n              \n                <tr><th>Today</th><th>date</th><th>0</th><th>1</th><th>In</th></tr>\n              \n                <tr><th>Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is not due for Hepatitis A vaccination Case 1</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is not due for Hepatitis A vaccination Case 2</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is not due for Hepatitis A vaccination</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is not due for Hepatitis A vaccination Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is due for Hepatitis A vaccination Case 1</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is due for Hepatitis A vaccination Case 2</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is due for Hepatitis A vaccination</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is due for Hepatitis A vaccination Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Hepatitis A immunization schedule is complete</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Hepatitis A immunization schedule is complete Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Has Guidance</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Test Validation</th><th>Resource</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n\n        \n\n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">/*\n * Library: IMMZD2DTHepatitisAInactivatedHAV2DosesLogic (IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses)\n * Rule: Determine if the client is due for a hepatitis A vaccination according to the national immunization schedule\n * Decision Table: Inactivated hepatitis A virus (HAV), 2-dose schedule\n * Trigger: IMMZ.D2 Determine required vaccination(s) if any\n */\nlibrary IMMZD2DTHepatitisAInactivatedHAV2DosesLogic\n\nusing FHIR version '4.0.1'\ninclude FHIRHelpers version '4.0.1'\n\ninclude IMMZD2DTHepatitisAEncounterElements called Encounter\n\nparameter Today Date default Today()\n\ncontext Patient\n\n\n/*\n@dynamicValue: Guidance\n*/\ndefine &quot;Guidance&quot;:\n  case \n    when &quot;Client is not due for Hepatitis A vaccination&quot; then &quot;Client is not due for Hepatitis A vaccination Guidance&quot;\n    when &quot;Client is due for Hepatitis A vaccination&quot; then &quot;Client is due for Hepatitis A vaccination Guidance&quot;\n    when &quot;Hepatitis A immunization schedule is complete&quot; then &quot;Hepatitis A immunization schedule is complete Guidance&quot; \n    else ''\n  end\n  \ndefine &quot;Has Guidance&quot;:\n  &quot;Guidance&quot; is not null and &quot;Guidance&quot; != ''\n\n/*\n@output: Client is not due for Hepatitis A vaccination Case 1\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;\n*/\ndefine &quot;Client is not due for Hepatitis A vaccination Case 1&quot;:\n  Encounter.&quot;Client's age is less than 12 months&quot;\n\n/*\n@output: Client is not due for Hepatitis A vaccination Case 2\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;\n*/\ndefine &quot;Client is not due for Hepatitis A vaccination Case 2&quot;:\n  Encounter.&quot;One hepatitis A primary series dose was administered&quot;\n    and Encounter.&quot;The latest Hepatitis A dose was administered less than 6 months ago&quot;\n\n/*\n@output: Client is not due for Hepatitis A vaccination\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;\n*/\ndefine &quot;Client is not due for Hepatitis A vaccination&quot;:\n  &quot;Client is not due for Hepatitis A vaccination Case 1&quot;\n    or &quot;Client is not due for Hepatitis A vaccination Case 2&quot;\n\n/*\n@output: Client is not due for Hepatitis A vaccination Guidance\n@guidance = Should not vaccinate client with first hepatitis A dose as client's age is less than 12 months. \nCheck for any other vaccines due and inform the caregiver of when to come back for the first dose.\n@guidance = Should not vaccinate client with second hepatitis A dose as the latest hepatitis A dose was administered less than 6 months ago. \nCheck for any vaccines due and inform the caregiver of when to come back for the second dose.\n*/\ndefine &quot;Client is not due for Hepatitis A vaccination Guidance&quot;:\n  case\n    when &quot;Client is not due for Hepatitis A vaccination Case 1&quot; then 'Should not vaccinate client with first hepatitis A dose as client\\'s age is less than 12 months. \nCheck for any other vaccines due and inform the caregiver of when to come back for the first dose.'\n    when &quot;Client is not due for Hepatitis A vaccination Case 2&quot; then 'Should not vaccinate client with second hepatitis A dose as the latest hepatitis A dose was administered less than 6 months ago. \nCheck for any vaccines due and inform the caregiver of when to come back for the second dose.'\n    else ''\n  end\n\n/*\n@output: Client is due for Hepatitis A vaccination Case 1\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;\n*/\ndefine &quot;Client is due for Hepatitis A vaccination Case 1&quot;:\n  Encounter.&quot;No hepatitis A primary series doses were administered&quot;\n    and Encounter.&quot;Client's age is more than or equal to 12 months&quot;\n\n/*\n@output: Client is due for Hepatitis A vaccination Case 2\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;\n*/\ndefine &quot;Client is due for Hepatitis A vaccination Case 2&quot;:\n  Encounter.&quot;One hepatitis A primary series dose was administered&quot;\n    and Encounter.&quot;The latest Hepatitis A dose was administered more than 6 months ago&quot;\n\n/*\n@output: Client is due for Hepatitis A vaccination\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;\n*/\ndefine &quot;Client is due for Hepatitis A vaccination&quot;:\n  &quot;Client is due for Hepatitis A vaccination Case 1&quot;\n    or &quot;Client is due for Hepatitis A vaccination Case 2&quot;\n\n/*\n@output: Client is due for Hepatitis A vaccination Guidance\n@guidance = Should vaccinate client with first hepatitis A dose as no Hepatitis A doses were administered and client is within the appropriate age range. \nCheck for contraindications.\n@guidance = Should vaccinate client with second hepatitis A dose as the latest hepatitis A dose was administered more than 6 months ago. \nCheck for contraindications.\n*/\ndefine &quot;Client is due for Hepatitis A vaccination Guidance&quot;:\n  case\n    when &quot;Client is due for Hepatitis A vaccination Case 1&quot; then 'Should vaccinate client with first hepatitis A dose as no Hepatitis A doses were administered and client is within the appropriate age range. \nCheck for contraindications.'\n    when &quot;Client is due for Hepatitis A vaccination Case 2&quot; then 'Should vaccinate client with second hepatitis A dose as the latest hepatitis A dose was administered more than 6 months ago. \nCheck for contraindications.'\n    else ''\n  end\n\n/*\n@output: Hepatitis A immunization schedule is complete\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Complete&quot;\n&quot;Completed the primary vaccination series&quot; = TRUE (where &quot;Vaccine type&quot; = &quot;Hepatitis A-containing vaccines&quot;)\n*/\ndefine &quot;Hepatitis A immunization schedule is complete&quot;:\n  Encounter.&quot;Two hepatitis A primary series doses were administered&quot;\n\n/*\n@output: Hepatitis A immunization schedule is complete Guidance\n@guidance: Hepatitis A immunization schedule is complete. Two hepatitis A primary series doses were administered. \nCheck for any other vaccines due.\n*/\ndefine &quot;Hepatitis A immunization schedule is complete Guidance&quot;:\n  'Hepatitis A immunization schedule is complete. Two hepatitis A primary series doses were administered. \nCheck for any other vaccines due.'\n\n\n/*\n@test: Test expected results based on example patients\n*/\ndefine &quot;Test Validation&quot;:\n  case\n    when Patient.id = 'HepatitisA08.1' then &quot;Client is not due for Hepatitis A vaccination Case 1&quot; and &quot;Guidance&quot; = 'Should not vaccinate client with first hepatitis A dose as client\\'s age is less than 12 months. \nCheck for any other vaccines due and inform the caregiver of when to come back for the first dose.'\n    when Patient.id = 'HepatitisA09.2' then &quot;Client is due for Hepatitis A vaccination Case 1&quot; and &quot;Guidance&quot; = 'Should vaccinate client with first hepatitis A dose as no Hepatitis A doses were administered and client is within the appropriate age range. \nCheck for contraindications.'\n    when Patient.id = 'HepatitisA10.2' then &quot;Client is not due for Hepatitis A vaccination Case 2&quot; and &quot;Guidance&quot; = 'Should not vaccinate client with second hepatitis A dose as the latest hepatitis A dose was administered less than 6 months ago. \nCheck for any vaccines due and inform the caregiver of when to come back for the second dose.'\n    when Patient.id = 'HepatitisA11.2' then &quot;Client is due for Hepatitis A vaccination Case 2&quot; and &quot;Guidance&quot; = 'Should vaccinate client with second hepatitis A dose as the latest hepatitis A dose was administered more than 6 months ago. \nCheck for contraindications.'\n    when Patient.id = 'HepatitisA12.1' then &quot;Hepatitis A immunization schedule is complete&quot; and &quot;Guidance&quot; = 'Hepatitis A immunization schedule is complete. Two hepatitis A primary series doses were administered. \nCheck for any other vaccines due.'\n    else 'No test case set'\n  end\n</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n    </table>\n</div>\n</div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
      "valueCode" : "computable"
    }
  ],
  "url" : "http://smart.who.int/immunizations/Library/IMMZD2DTHepatitisAInactivatedHAV2DosesLogic",
  "version" : "1.0.0",
  "name" : "IMMZD2DTHepatitisAInactivatedHAV2DosesLogic",
  "title" : "IMMZD2DTHepatitisAInactivatedHAV2DosesLogic",
  "status" : "draft",
  "experimental" : false,
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2026-03-31T13:54:17+00:00",
  "publisher" : "WHO",
  "contact" : [
    {
      "name" : "WHO",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://who.int"
        }
      ]
    }
  ],
  "description" : "This library defines decision support logic for the IMMZ.D2.DT.Hepatitis A.Inactivated HAV 2 doses decision table in the Immunization CPG",
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "display" : "Library Encounter",
      "resource" : "http://smart.who.int/immunizations/Library/IMMZD2DTHepatitisAEncounterElements"
    }
  ],
  "parameter" : [
    {
      "name" : "Today",
      "use" : "in",
      "min" : 0,
      "max" : "1",
      "type" : "date"
    },
    {
      "name" : "Patient",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "Patient"
    },
    {
      "name" : "Client is not due for Hepatitis A vaccination Case 1",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Client is not due for Hepatitis A vaccination Case 2",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Client is not due for Hepatitis A vaccination",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Client is not due for Hepatitis A vaccination Guidance",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "Client is due for Hepatitis A vaccination Case 1",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Client is due for Hepatitis A vaccination Case 2",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Client is due for Hepatitis A vaccination",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Client is due for Hepatitis A vaccination Guidance",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "Hepatitis A immunization schedule is complete",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Hepatitis A immunization schedule is complete Guidance",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "Guidance",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "Has Guidance",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    },
    {
      "name" : "Test Validation",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "Resource"
    }
  ],
  "content" : [
    {
      "contentType" : "text/cql",
      "data" : "LyoKICogTGlicmFyeTogSU1NWkQyRFRIZXBh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