{
  "resourceType" : "Library",
  "id" : "IMMZD2DTTyphoidViPSLogic",
  "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;\">IMMZD2DTTyphoidViPSLogic</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD2DTTyphoidViPSLogic</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-IMMZD2DTTyphoidViPSLogic.html\">IMMZD2DTTyphoidViPSLogic</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.Typhoid.ViPS 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-IMMZD2DTTyphoidEncounterElements.html\">IMMZD2DTTyphoidEncounterElements</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 Typhoid vaccination</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is not due for Typhoid vaccination Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is due for Typhoid vaccination</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Client is due for Typhoid vaccination Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Primary series is complete. Client is not due for typhoid booster dose</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Primary series is complete. Client is not due for typhoid booster dose Guidance</th><th>string</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Primary series is complete. Client is due for typhoid booster dose</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Primary series is complete. Client is due for typhoid booster dose 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: IMMZD2DTTyphoidViPSLogic (IMMZ.D2.DT.Typhoid.ViPS)\n * Rule: Determine if the client is due for a typhoid vaccination according to the national immunization schedule\n * Decision Table: Unconjugated Vi polysaccharide (ViPS) schedule\n * Trigger: IMMZ.D2 Determine required vaccination(s) if any\n */\nlibrary IMMZD2DTTyphoidViPSLogic\n\nusing FHIR version '4.0.1'\ninclude FHIRHelpers version '4.0.1'\n\ninclude IMMZD2DTTyphoidEncounterElements 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 Typhoid vaccination&quot; then &quot;Client is not due for Typhoid vaccination Guidance&quot;\n    when &quot;Client is due for Typhoid vaccination&quot; then &quot;Client is due for Typhoid vaccination Guidance&quot;\n    when &quot;Primary series is complete. Client is not due for typhoid booster dose&quot; then &quot;Primary series is complete. Client is not due for typhoid booster dose Guidance&quot;\n    when &quot;Primary series is complete. Client is due for typhoid booster dose&quot; then &quot;Primary series is complete. Client is due for typhoid booster dose 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 Typhoid vaccination\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;\n*/\ndefine &quot;Client is not due for Typhoid vaccination&quot;:\n  Encounter.&quot;Client's age is less than 2 years&quot;\n\n/*\n@output: Client is not due for Typhoid vaccination Guidance\n@guidance: Should not vaccinate client with typhoid dose as client's age is less than 2 years.\nCheck for any other vaccines due and inform the caregiver of when to come back for the first dose.\n*/\ndefine &quot;Client is not due for Typhoid vaccination Guidance&quot;:\n  'Should not vaccinate client with typhoid dose as client\\'s age is less than 2 years.\nCheck for any other vaccines due and inform the caregiver of when to come back for the first dose.'\n\n/*\n@output: Client is due for Typhoid vaccination\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;\n*/\ndefine &quot;Client is due for Typhoid vaccination&quot;:\n  Encounter.&quot;No typhoid primary series doses were administered&quot;\n    and Encounter.&quot;Client's age is more than or equal to 2 years&quot;\n\n/*\n@output: Client is due for Typhoid vaccination Guidance\n@guidance: Should vaccinate client with typhoid dose as no typhoid doses were administered and client is within appropriate age range.\nCheck for contraindications.\n*/\ndefine &quot;Client is due for Typhoid vaccination Guidance&quot;:\n  'Should vaccinate client with typhoid dose as no typhoid doses were administered and client is within appropriate age range.\nCheck for contraindications.'\n\n/*\n@output: Primary series is complete. Client is not due for typhoid booster dose\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Not due&quot;\n&quot;Completed the primary vaccination series&quot; (where &quot;Vaccine type&quot; = &quot;Typhoid vaccines&quot;) = TRUE\n*/\ndefine &quot;Primary series is complete. Client is not due for typhoid booster dose&quot;:\n  Encounter.&quot;One typhoid primary series dose was administered&quot;\n    and Encounter.&quot;The latest typhoid dose was administered less than 3 years ago&quot;\n\n/*\n@output: Primary series is complete. Client is not due for typhoid booster dose Guidance\n@guidance: Should not vaccinate client with typhoid booster dose as the latest typhoid dose was administered less than 3 years ago.\nCheck for any other vaccines due and inform the caregiver of when to come back for the next dose.\n*/\ndefine &quot;Primary series is complete. Client is not due for typhoid booster dose Guidance&quot;:\n  'Should not vaccinate client with typhoid booster dose as the latest typhoid dose was administered less than 3 years ago.\nCheck for any other vaccines due and inform the caregiver of when to come back for the next dose.'\n\n/*\n@output: Primary series is complete. Client is due for typhoid booster dose\n@pseudocode: &quot;Immunization recommendation status&quot; = &quot;Due&quot;\n&quot;Completed the primary vaccination series&quot; (where &quot;Vaccine type&quot; = &quot;Typhoid vaccines&quot;) = TRUE\n*/\ndefine &quot;Primary series is complete. Client is due for typhoid booster dose&quot;:\n  Encounter.&quot;One typhoid primary series dose was administered&quot;\n    and Encounter.&quot;The latest typhoid dose was administered more than 3 years ago&quot;\n\n/*\n@output: Primary series is complete. Client is due for typhoid booster dose Guidance\n@guidance: Should vaccinate client with typhoid booster dose as the latest dose was administered more than 3 years ago.\nCheck for contraindications.\n*/\ndefine &quot;Primary series is complete. Client is due for typhoid booster dose Guidance&quot;:\n  'Should vaccinate client with typhoid booster dose as the latest dose was administered more than 3 years ago.\nCheck for contraindications.'\n\n\n/*\n@test: Test expected results based on example patients\n*/\ndefine &quot;Test Validation&quot;:\n  case\n    when Patient.id = 'Typhoid19.1' then &quot;Client is not due for Typhoid vaccination&quot; and &quot;Guidance&quot; = 'Should not vaccinate client with typhoid dose as client\\'s age is less than 2 years.\nCheck for any other vaccines due and inform the caregiver of when to come back for the first dose.'\n    when Patient.id = 'Typhoid20.2' then &quot;Client is due for Typhoid vaccination&quot; and &quot;Guidance&quot; = 'Should vaccinate client with typhoid dose as no typhoid doses were administered and client is within appropriate age range.\nCheck for contraindications.'\n    when Patient.id = 'Typhoid21.2' then &quot;Primary series is complete. Client is not due for typhoid booster dose&quot; and &quot;Guidance&quot; = 'Should not vaccinate client with typhoid booster dose as the latest typhoid dose was administered less than 3 years ago.\nCheck for any other vaccines due and inform the caregiver of when to come back for the next dose.'\n    when Patient.id = 'Typhoid22.2' then &quot;Primary series is complete. Client is due for typhoid booster dose&quot; and &quot;Guidance&quot; = 'Should vaccinate client with typhoid booster dose as the latest dose was administered more than 3 years ago.\nCheck for contraindications.'\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/IMMZD2DTTyphoidViPSLogic",
  "version" : "1.0.0",
  "name" : "IMMZD2DTTyphoidViPSLogic",
  "title" : "IMMZD2DTTyphoidViPSLogic",
  "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.Typhoid.ViPS decision table in the Immunization CPG",
  "relatedArtifact" : [{
    "type" : "depends-on",
    "display" : "Library Encounter",
    "resource" : "http://smart.who.int/immunizations/Library/IMMZD2DTTyphoidEncounterElements"
  }],
  "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 Typhoid vaccination",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "boolean"
  },
  {
    "name" : "Client is not due for Typhoid vaccination Guidance",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "string"
  },
  {
    "name" : "Client is due for Typhoid vaccination",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "boolean"
  },
  {
    "name" : "Client is due for Typhoid vaccination Guidance",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "string"
  },
  {
    "name" : "Primary series is complete. Client is not due for typhoid booster dose",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "boolean"
  },
  {
    "name" : "Primary series is complete. Client is not due for typhoid booster dose Guidance",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "string"
  },
  {
    "name" : "Primary series is complete. Client is due for typhoid booster dose",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "type" : "boolean"
  },
  {
    "name" : "Primary series is complete. Client is due for typhoid booster dose 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" : "LyoKICogTGlicmFyeTogSU1NWkQyRFRUeXBob2lkVmlQU0xvZ2ljIChJTU1aLkQyLkRULlR5cGhvaWQuVmlQUykKICogUnVsZTogRGV0ZXJtaW5lIGlmIHRoZSBjbGllbnQgaXMgZHVlIGZvciBhIHR5cGhvaWQgdmFjY2luYXRpb24gYWNjb3JkaW5nIHRvIHRoZSBuYXRpb25hbCBpbW11bml6YXRpb24gc2NoZWR1bGUKICogRGVjaXNpb24gVGFibGU6IFVuY29uanVnYXRlZCBWaSBwb2x5c2FjY2hhcmlkZSAoVmlQUykgc2NoZWR1bGUKICogVHJpZ2dlcjogSU1NWi5EMiBEZXRlcm1pbmUgcmVxdWlyZWQgdmFjY2luYXRpb24ocykgaWYgYW55CiAqLwpsaWJyYXJ5IElNTVpEMkRUVHlwa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