{
  "resourceType": "Library",
  "id": "IMMZD5DTRotavirusElements",
  "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;\">IMMZD5DTRotavirusElements</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">IMMZD5DTRotavirusElements</td>\n        </tr>\n        \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        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-IMMZD5DTRotavirusElements.html\">IMMZD5DTRotavirusElements</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-29 17:23:09+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 context-independent elements for Rotavirus used throughout 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-WHOConcepts.html\">WHOConcepts</a></li>\n                  \n                    <li><a href=\"Library-WHOCommon.html\">WHOCommon</a></li>\n                  \n                    <li><a href=\"Library-WHOElements.html\">WHOElements</a></li>\n                  \n                    <li><a href=\"Library-IMMZCommon.html\">IMMZCommon</a></li>\n                  \n                    <li><a href=\"Library-IMMZConcepts.html\">IMMZConcepts</a></li>\n                  \n                    <li><a href=\"Library-IMMZElements.html\">IMMZElements</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>Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Draft Medication Request for Rotavirus dose</th><th>MedicationRequest</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>The client has prior history of intussusception</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has severe immunodeficiency</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has a history of severe allergic reactions</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has history of anaphylactic reactions</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has altered immunocompetence</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has spina bifida</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has bladder exstrophy</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has chronic gastrointestinal disease</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has acute gastroenteritis</th><th>boolean</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>The client has moderate to severe fever</th><th>boolean</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/*\n  * Library: IMMZD5DTRotavirusElements\n  */\nlibrary IMMZD5DTRotavirusElements\n\nusing FHIR version '4.0.1'\ninclude FHIRHelpers version '4.0.1'\n\ninclude WHOConcepts\ninclude WHOCommon called WC\ninclude WHOElements called WE\n\ninclude IMMZCommon called Common\ninclude IMMZConcepts called Concepts\ninclude IMMZElements called Elements\n\n\ncontext Patient\n\n/*\n@internal: Draft Medication Request for Rotavirus dose\n*/\ndefine &quot;Draft Medication Request for Rotavirus dose&quot;:\n  Elements.&quot;Draft Medication Request for Patient&quot; MR\n    where MR.medication in Concepts.&quot;Rotavirus vaccines&quot;\n\n/*\n@input: The client has prior history of intussusception\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Prior history of intussusception&quot;\n@code: The client has prior history of intussusception-66\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has prior history of intussusception&quot;:\n  Elements.&quot;The client has prior history of intussusception&quot;\n\n/*\n@input: The client has severe immunodeficiency\n@pseudocode: '&quot;Potential contraindications&quot; = &quot;Immunodeficiency syndromes&quot;\n@code: The client has severe immunodeficiency-61\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has severe immunodeficiency&quot;:\n  Elements.&quot;The client has immunodeficiency syndromes&quot;\n\n/*\n@input: The client has a history of severe allergic reactions\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Severe allergic reactions&quot;\n@code: The client has a history of severe allergic reactions-59\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has a history of severe allergic reactions&quot;:\n  Elements.&quot;The client has history of severe allergic reactions&quot;\n\n/*\n@input: The client has history of anaphylactic reactions\n@pseudocode: &quot;Potential contraindications&quot; = &quot;History of anaphylactic reactions&quot;\n@code: The client has history of anaphylactic reactions-67\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has history of anaphylactic reactions&quot;:\n  Elements.&quot;The client has history of anaphylactic reactions&quot;\n\n/*\n@input: The client has altered immunocompetence\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Altered immunocompetence&quot;\n@code: The client has altered immunocompetence-58\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has altered immunocompetence&quot;:\n  Elements.&quot;The client has altered immunocompetence&quot;\n\n/*\n@input: The client has spina bifida\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Spina bifida&quot;\n@code: The client has spina bifida-46\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has spina bifida&quot;:\n  Elements.&quot;The client has spina bifida&quot;\n\n/*\n@input: The client has bladder exstrophy\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Bladder exstrophy&quot;\n@code: The client has bladder exstrophy-51\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has bladder exstrophy&quot;:\n  Elements.&quot;The client has bladder exstrophy&quot;\n\n/*\n@input: The client has chronic gastrointestinal disease\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Chronic gastrointestinal disease&quot;\n@code: The client has chronic gastrointestinal disease-66\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has chronic gastrointestinal disease&quot;:\n  Elements.&quot;The client has chronic gastrointestinal disease&quot;\n\n/*\n@input: The client has acute gastroenteritis\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Acute gastroenteritis&quot;\n@code: The client has acute gastroenteritis-55\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has acute gastroenteritis&quot;:\n  Elements.&quot;The client has acute gastroenteritis&quot;\n\n/*\n@input: The client has moderate to severe fever\n@pseudocode: &quot;Potential contraindications&quot; = &quot;Moderate to severe fever&quot;\n@code: The client has moderate to severe fever-58\n@decision: IMMZ.D5.DT.Rotavirus contraindications\n*/\ndefine &quot;The client has moderate to severe fever&quot;:\n  Elements.&quot;The client has moderate to severe fever&quot;\n</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><b>Content: </b> application/elm+xml</th></tr>\n              <tr><td><pre><code>Encoded data (30308 characters)</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\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/IMMZD5DTRotavirusElements",
  "version": "0.2.0",
  "name": "IMMZD5DTRotavirusElements",
  "title": "IMMZD5DTRotavirusElements",
  "status": "draft",
  "experimental": false,
  "type": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/library-type",
        "code": "logic-library"
      }
    ]
  },
  "date": "2026-03-29T17:23:09+00:00",
  "publisher": "WHO",
  "contact": [
    {
      "name": "WHO",
      "telecom": [
        {
          "system": "url",
          "value": "http://who.int"
        }
      ]
    }
  ],
  "description": "This library defines context-independent elements for Rotavirus used throughout the Immunization CPG",
  "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 WE",
      "resource": "http://smart.who.int/immunizations/Library/WHOElements"
    },
    {
      "type": "depends-on",
      "display": "Library Common",
      "resource": "http://smart.who.int/immunizations/Library/IMMZCommon"
    },
    {
      "type": "depends-on",
      "display": "Library Concepts",
      "resource": "http://smart.who.int/immunizations/Library/IMMZConcepts"
    },
    {
      "type": "depends-on",
      "display": "Library Elements",
      "resource": "http://smart.who.int/immunizations/Library/IMMZElements"
    }
  ],
  "parameter": [
    {
      "name": "Patient",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "Patient"
    },
    {
      "name": "Draft Medication Request for Rotavirus dose",
      "use": "out",
      "min": 0,
      "max": "*",
      "type": "MedicationRequest"
    },
    {
      "name": "The client has prior history of intussusception",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has severe immunodeficiency",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has a history of severe allergic reactions",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has history of anaphylactic reactions",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has altered immunocompetence",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has spina bifida",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has bladder exstrophy",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has chronic gastrointestinal disease",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has acute gastroenteritis",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    },
    {
      "name": "The client has moderate to severe fever",
      "use": "out",
      "min": 0,
      "max": "1",
      "type": "boolean"
    }
  ],
  "content": [
    {
      "contentType": "text/cql",
      "url": "Library-IMMZD5DTRotavirusElements.cql"
    },
    {
      "contentType": "application/elm+xml",
      "url": "Library-IMMZD5DTRotavirusElements.elm.xml"
    }
  ]
}
