{
  "resourceType": "StructureDefinition",
  "id": "Immunization",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2021-12-28T11:32:45.357+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Medications"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 3
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pher"
    }
  ],
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/Immunization",
  "version": "4.0.1",
  "name": "Immunization",
  "status": "draft",
  "date": "2022-07-08T15:10:50.6856647+00:00",
  "publisher": "Health Level Seven International (Public Health and Emergency Response)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/pher/index.cfm"
        }
      ]
    }
  ],
  "description": "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Immunization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "Immunization",
        "path": "Immunization",
        "short": "Immunization event information",
        "definition": "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party.",
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event"
          },
          {
            "identity": "v2",
            "map": "VXU_V04"
          },
          {
            "identity": "rim",
            "map": "SubstanceAdministration"
          }
        ]
      },
      {
        "id": "Immunization.identifier",
        "path": "Immunization.identifier",
        "short": "Business identifier",
        "definition": "A unique identifier assigned to this immunization record.",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.identifier"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/id"
          }
        ]
      },
      {
        "id": "Immunization.status",
        "path": "Immunization.status",
        "short": "completed | entered-in-error | not-done",
        "definition": "Indicates the current status of the immunization event.",
        "comment": "Will generally be set to show that the immunization has been completed or not done.  This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isModifierReason": "This element is labeled as a modifier because it is a status element that contains statuses entered-in-error and not-done which means that the resource should not be treated as valid",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationStatus"
            }
          ],
          "strength": "required",
          "description": "A set of codes indicating the current status of an Immunization.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-status|4.0.1"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "rim",
            "map": "statusCode"
          }
        ]
      },
      {
        "id": "Immunization.statusReason",
        "path": "Immunization.statusReason",
        "short": "Reason not done",
        "definition": "Indicates the reason the immunization event was not performed.",
        "comment": "This is generally only used for the status of \"not-done\". The reason for performing the immunization event is captured in reasonCode, not here.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationStatusReason"
            }
          ],
          "strength": "example",
          "description": "The reason why a vaccine was not administered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-status-reason"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.statusReason"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde"
          }
        ]
      },
      {
        "id": "Immunization.vaccineCode",
        "path": "Immunization.vaccineCode",
        "short": "Vaccine product administered",
        "definition": "Vaccine that was administered or was to be administered.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VaccineCode"
            }
          ],
          "strength": "example",
          "description": "The code for vaccine product administered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/vaccine-code"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.code"
          },
          {
            "identity": "w5",
            "map": "FiveWs.what[x]"
          },
          {
            "identity": "v2",
            "map": "RXA-5"
          },
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/realmCode/code"
          }
        ]
      },
      {
        "id": "Immunization.patient",
        "path": "Immunization.patient",
        "short": "Who was immunized",
        "definition": "The patient who either received or did not receive the immunization.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.subject"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject[x]"
          },
          {
            "identity": "v2",
            "map": "PID-3"
          },
          {
            "identity": "rim",
            "map": ".partipication[ttypeCode=].role"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject"
          }
        ]
      },
      {
        "id": "Immunization.encounter",
        "path": "Immunization.encounter",
        "short": "Encounter immunization was part of",
        "definition": "The visit or admission or other contact between patient and health care provider the immunization was performed as part of.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.context"
          },
          {
            "identity": "w5",
            "map": "FiveWs.context"
          },
          {
            "identity": "v2",
            "map": "PV1-19"
          },
          {
            "identity": "rim",
            "map": "component->EncounterEvent"
          }
        ]
      },
      {
        "id": "Immunization.occurrence[x]",
        "path": "Immunization.occurrence[x]",
        "short": "Vaccine administration date",
        "definition": "Date vaccine administered or was to be administered.",
        "comment": "When immunizations are given a specific date and time should always be known.   When immunizations are patient reported, a specific date might not be known.  Although partial dates are allowed, an adult patient might not be able to recall the year a childhood immunization was given. An exact date is always preferable, but the use of the String data type is acceptable when an exact date is not known. A small number of vaccines (e.g. live oral typhoid vaccine) are given as a series of patient self-administered dose over a span of time. In cases like this, often, only the first dose (typically a provider supervised dose) is recorded with the occurrence indicating the date/time of the first dose.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.occurrence[x]"
          },
          {
            "identity": "w5",
            "map": "FiveWs.done[x]"
          },
          {
            "identity": "v2",
            "map": "RXA-3"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/effectiveTime/value"
          }
        ]
      },
      {
        "id": "Immunization.recorded",
        "path": "Immunization.recorded",
        "short": "When the immunization was first captured in the subject's record",
        "definition": "The date the occurrence of the immunization was first captured in the record - potentially significantly after the occurrence of the event.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.recorded"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          }
        ]
      },
      {
        "id": "Immunization.primarySource",
        "path": "Immunization.primarySource",
        "short": "Indicates context the data was recorded in",
        "definition": "An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded.",
        "comment": "Reflects the “reliability” of the content.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.source"
          },
          {
            "identity": "v2",
            "map": "RXA-9"
          },
          {
            "identity": "rim",
            "map": "immunization.uncertaintycode (if primary source=false, uncertainty=U)"
          }
        ]
      },
      {
        "id": "Immunization.reportOrigin",
        "path": "Immunization.reportOrigin",
        "short": "Indicates the source of a secondarily reported record",
        "definition": "The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine.",
        "comment": "Should not be populated if primarySource = True, not required even if primarySource = False.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationReportOrigin"
            }
          ],
          "strength": "example",
          "description": "The source of the data for a record which is not from a primary source.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-origin"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.source"
          },
          {
            "identity": "v2",
            "map": "RXA-9"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported) .participation[typeCode=INF].role[classCode=LIC] (this syntax for health care professional) .participation[typeCode=INF].role[classCode=PRS] (this syntax for family member)"
          }
        ]
      },
      {
        "id": "Immunization.location",
        "path": "Immunization.location",
        "short": "Where immunization occurred",
        "definition": "The service delivery location where the vaccine administration occurred.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.location"
          },
          {
            "identity": "w5",
            "map": "FiveWs.where[x]"
          },
          {
            "identity": "v2",
            "map": "RXA-27  (or RXA-11, deprecated as of v2.7)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=LOC].COCT_MT240000UV"
          }
        ]
      },
      {
        "id": "Immunization.manufacturer",
        "path": "Immunization.manufacturer",
        "short": "Vaccine manufacturer",
        "definition": "Name of vaccine manufacturer.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXA-17"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=ORG]"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacuturerOrganization/name"
          }
        ]
      },
      {
        "id": "Immunization.lotNumber",
        "path": "Immunization.lotNumber",
        "short": "Vaccine lot number",
        "definition": "Lot number of the  vaccine product.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXA-15"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].id"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/consumable/manfacturedProduct/manufacturedMaterial/lotNumberText"
          }
        ]
      },
      {
        "id": "Immunization.expirationDate",
        "path": "Immunization.expirationDate",
        "short": "Vaccine expiration date",
        "definition": "Date vaccine batch expires.",
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXA-16"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime"
          }
        ]
      },
      {
        "id": "Immunization.site",
        "path": "Immunization.site",
        "short": "Body site vaccine  was administered",
        "definition": "Body site where vaccine was administered.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationSite"
            }
          ],
          "strength": "example",
          "description": "The site at which the vaccine was administered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-site"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-2"
          },
          {
            "identity": "rim",
            "map": "observation.targetSiteCode"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/approachSiteCode/code"
          }
        ]
      },
      {
        "id": "Immunization.route",
        "path": "Immunization.route",
        "short": "How vaccine entered body",
        "definition": "The path by which the vaccine product is taken into the body.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationRoute"
            }
          ],
          "strength": "example",
          "description": "The route by which the vaccine was administered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-route"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXR-1"
          },
          {
            "identity": "rim",
            "map": ".routeCode"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument/component/StructuredBody/component/section/entry/substanceAdministration/routeCode/code"
          }
        ]
      },
      {
        "id": "Immunization.doseQuantity",
        "path": "Immunization.doseQuantity",
        "short": "Amount of vaccine administered",
        "definition": "The quantity of vaccine product that was administered.",
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "RXA-6 / RXA-7"
          },
          {
            "identity": "rim",
            "map": ".doseQuantity"
          }
        ]
      },
      {
        "id": "Immunization.performer",
        "path": "Immunization.performer",
        "short": "Who performed event",
        "definition": "Indicates who performed the immunization event.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer"
          },
          {
            "identity": "v2",
            "map": "ORC-12 / RXA-10"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]"
          }
        ]
      },
      {
        "id": "Immunization.performer.function",
        "path": "Immunization.performer.function",
        "short": "What type of performance was done",
        "definition": "Describes the type of performance (e.g. ordering provider, administering provider, etc.).",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationFunction"
            }
          ],
          "strength": "extensible",
          "description": "The role a practitioner or organization plays in the immunization event.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-function"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer.function"
          },
          {
            "identity": "rim",
            "map": ".participation.functionCode"
          }
        ]
      },
      {
        "id": "Immunization.performer.actor",
        "path": "Immunization.performer.actor",
        "short": "Individual or organization who was performing",
        "definition": "The practitioner or organization who performed the action.",
        "comment": "When the individual practitioner who performed the action is known, it is best to send.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer.actor"
          },
          {
            "identity": "w5",
            "map": "FiveWs.actor"
          },
          {
            "identity": "rim",
            "map": ".player"
          }
        ]
      },
      {
        "id": "Immunization.note",
        "path": "Immunization.note",
        "short": "Additional immunization notes",
        "definition": "Extra information about the immunization that is not conveyed by the other attributes.",
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.note"
          },
          {
            "identity": "v2",
            "map": "OBX-5 : OBX-3 = 48767-8"
          },
          {
            "identity": "rim",
            "map": "note"
          }
        ]
      },
      {
        "id": "Immunization.reasonCode",
        "path": "Immunization.reasonCode",
        "short": "Why immunization occurred",
        "definition": "Reasons why the vaccine was administered.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ImmunizationReason"
            }
          ],
          "strength": "example",
          "description": "The reason why a vaccine was administered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-reason"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.reasonCode"
          },
          {
            "identity": "rim",
            "map": "[actionNegationInd=false].reasonCode"
          }
        ]
      },
      {
        "id": "Immunization.reasonReference",
        "path": "Immunization.reasonReference",
        "short": "Why immunization occurred",
        "definition": "Condition, Observation or DiagnosticReport that supports why the immunization was administered.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.reasonReference"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.isSubpotent",
        "path": "Immunization.isSubpotent",
        "short": "Dose potency",
        "definition": "Indication if a dose is considered to be subpotent. By default, a dose should be considered to be potent.",
        "comment": "Typically, the recognition of the dose being sub-potent is retrospective, after the administration (ex. notification of a manufacturer recall after administration). However, in the case of a partial administration (the patient moves unexpectedly and only some of the dose is actually administered), subpotency may be recognized immediately, but it is still important to record the event.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "meaningWhenMissing": "By default, a dose should be considered to be potent.",
        "isModifier": true,
        "isModifierReason": "This element is labeled as a modifier because an immunization event with a subpotent vaccine doesn't protect the patient the same way as a potent dose.",
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "RXA-20 = PA (partial administration)"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.subpotentReason",
        "path": "Immunization.subpotentReason",
        "short": "Reason for being subpotent",
        "definition": "Reason why a dose is considered to be subpotent.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SubpotentReason"
            }
          ],
          "strength": "example",
          "description": "The reason why a dose is considered to be subpotent.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-subpotent-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.education",
        "path": "Immunization.education",
        "short": "Educational material presented to patient",
        "definition": "Educational material presented to the patient (or guardian) at the time of vaccine administration.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "imm-1",
            "severity": "error",
            "human": "One of documentType or reference SHALL be present",
            "expression": "documentType.exists() or reference.exists()",
            "xpath": "exists(f:documentType) or exists(f:reference)",
            "source": "http://hl7.org/fhir/StructureDefinition/Immunization"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.education.documentType",
        "path": "Immunization.education.documentType",
        "short": "Educational material document identifier",
        "definition": "Identifier of the material presented to the patient.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-5 : OBX-3 = 69764-9"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.education.reference",
        "path": "Immunization.education.reference",
        "short": "Educational material reference pointer",
        "definition": "Reference pointer to the educational material given to the patient if the information was on line.",
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.education.publicationDate",
        "path": "Immunization.education.publicationDate",
        "short": "Educational material publication date",
        "definition": "Date the educational material was published.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-5 : OBX-3 = 29768-9"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.education.presentationDate",
        "path": "Immunization.education.presentationDate",
        "short": "Educational material presentation date",
        "definition": "Date the educational material was given to the patient.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-5 : OBX-3 = 29769-7"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.programEligibility",
        "path": "Immunization.programEligibility",
        "short": "Patient eligibility for a vaccination program",
        "definition": "Indicates a patient's eligibility for a funding program.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ProgramEligibility"
            }
          ],
          "strength": "example",
          "description": "The patient's eligibility for a vaccation program.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-program-eligibility"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-5 : OBX-3 = 64994-7"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.fundingSource",
        "path": "Immunization.fundingSource",
        "short": "Funding source for the vaccine",
        "definition": "Indicates the source of the vaccine actually administered. This may be different than the patient eligibility (e.g. the patient may be eligible for a publically purchased vaccine but due to inventory issues, vaccine purchased with private funds was actually administered).",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "FundingSource"
            }
          ],
          "strength": "example",
          "description": "The source of funding used to purchase the vaccine administered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-funding-source"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.reaction",
        "path": "Immunization.reaction",
        "short": "Details of a reaction that follows immunization",
        "definition": "Categorical data indicating that an adverse event is associated in time to an immunization.",
        "comment": "A reaction may be an indication of an allergy or intolerance and, if this is determined to be the case, it should be recorded as a new AllergyIntolerance resource instance as most systems will not query against past Immunization.reaction elements.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-3"
          },
          {
            "identity": "rim",
            "map": "Observation[classCode=obs].code"
          }
        ]
      },
      {
        "id": "Immunization.reaction.date",
        "path": "Immunization.reaction.date",
        "short": "When reaction started",
        "definition": "Date of reaction to the immunization.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-14 (ideally this would be reported in an IAM segment, but IAM is not part of the HL7 v2 VXU message - most likely would appear in OBX segments if at all)"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "Immunization.reaction.detail",
        "path": "Immunization.reaction.detail",
        "short": "Additional information on reaction",
        "definition": "Details of the reaction.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-5"
          },
          {
            "identity": "rim",
            "map": ".value"
          }
        ]
      },
      {
        "id": "Immunization.reaction.reported",
        "path": "Immunization.reaction.reported",
        "short": "Indicates self-reported reaction",
        "definition": "Self-reported indicator.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "(HL7 v2 doesn't seem to provide for this)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=INF].role[classCode=PAT] (this syntax for self-reported=true)"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied",
        "path": "Immunization.protocolApplied",
        "short": "Protocol followed by the provider",
        "definition": "The protocol (set of recommendations) being followed by the provider who administered the dose.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.series",
        "path": "Immunization.protocolApplied.series",
        "short": "Name of vaccine series",
        "definition": "One possible path to achieve presumed immunity against a disease - within the context of an authority.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.authority",
        "path": "Immunization.protocolApplied.authority",
        "short": "Who is responsible for publishing the recommendations",
        "definition": "Indicates the authority who published the protocol (e.g. ACIP) that is being followed.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.targetDisease",
        "path": "Immunization.protocolApplied.targetDisease",
        "short": "Vaccine preventatable disease being targetted",
        "definition": "The vaccine preventable disease the dose is being administered against.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "TargetDisease"
            }
          ],
          "strength": "example",
          "description": "The vaccine preventable disease the dose is being administered for.",
          "valueSet": "http://hl7.org/fhir/ValueSet/immunization-target-disease"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.doseNumber[x]",
        "path": "Immunization.protocolApplied.doseNumber[x]",
        "short": "Dose number within series",
        "definition": "Nominal position in a series.",
        "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.seriesDoses[x]",
        "path": "Immunization.protocolApplied.seriesDoses[x]",
        "short": "Recommended number of doses for immunity",
        "definition": "The recommended number of doses to achieve immunity.",
        "comment": "The use of an integer is preferred if known. A string should only be used in cases where an integer is not available (such as when documenting a recurring booster dose).",
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          },
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      }
    ]
  }
}