{
  "resourceType": "StructureDefinition",
  "id": "4b0af103-767d-4d85-83db-b67c1fa98c1e",
  "meta": {
    "versionId": "8",
    "lastUpdated": "2022-05-17T22:23:47.3193671+00:00"
  },
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/IMMSImmunization",
  "name": "IMMSImmunization",
  "status": "draft",
  "date": "2022-03-07T18:52:16.915291+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Immunization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Immunization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Immunization.id",
        "path": "Immunization.id",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eForm",
            "map": "\"e\"+(HA)+(EXTERNAL_IMMS_ID)"
          }
        ]
      },
      {
        "id": "Immunization.meta",
        "path": "Immunization.meta",
        "min": 1
      },
      {
        "id": "Immunization.meta.id",
        "path": "Immunization.meta.id",
        "max": "0"
      },
      {
        "id": "Immunization.meta.versionId",
        "path": "Immunization.meta.versionId",
        "fixedId": "2022.01"
      },
      {
        "id": "Immunization.meta.lastUpdated",
        "path": "Immunization.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Immunization.meta.source",
        "path": "Immunization.meta.source",
        "max": "0"
      },
      {
        "id": "Immunization.meta.profile",
        "path": "Immunization.meta.profile",
        "comment": "Apply \"https://ehealth.bc.ca/fhir/StructureDefinition/IMMSImmunization\"",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.meta.security",
        "path": "Immunization.meta.security",
        "max": "0"
      },
      {
        "id": "Immunization.meta.tag",
        "path": "Immunization.meta.tag",
        "max": "0"
      },
      {
        "id": "Immunization.implicitRules",
        "path": "Immunization.implicitRules",
        "max": "0"
      },
      {
        "id": "Immunization.language",
        "path": "Immunization.language",
        "max": "0"
      },
      {
        "id": "Immunization.text",
        "path": "Immunization.text",
        "max": "0"
      },
      {
        "id": "Immunization.contained",
        "path": "Immunization.contained",
        "max": "0"
      },
      {
        "id": "Immunization.identifier",
        "path": "Immunization.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.identifier.id",
        "path": "Immunization.identifier.id",
        "max": "0"
      },
      {
        "id": "Immunization.identifier.use",
        "path": "Immunization.identifier.use",
        "max": "0"
      },
      {
        "id": "Immunization.identifier.type",
        "path": "Immunization.identifier.type",
        "min": 1
      },
      {
        "id": "Immunization.identifier.type.id",
        "path": "Immunization.identifier.type.id",
        "max": "0"
      },
      {
        "id": "Immunization.identifier.type.coding",
        "path": "Immunization.identifier.type.coding",
        "max": "0"
      },
      {
        "id": "Immunization.identifier.type.text",
        "path": "Immunization.identifier.type.text",
        "comment": "Apply \"\"EFORMIMMSID\"\"",
        "min": 1
      },
      {
        "id": "Immunization.identifier.system",
        "path": "Immunization.identifier.system",
        "comment": "Apply \"https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-eForm\"",
        "min": 1
      },
      {
        "id": "Immunization.identifier.value",
        "path": "Immunization.identifier.value",
        "comment": "(SDL associated HA) as prefix + GUID of Bundle ID \r\ne.g. \"eNHA-bb1d06de-1403-4774-b338-52491b169d65\"",
        "min": 1
      },
      {
        "id": "Immunization.identifier.period",
        "path": "Immunization.identifier.period",
        "max": "0"
      },
      {
        "id": "Immunization.identifier.assigner",
        "path": "Immunization.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Immunization.status",
        "path": "Immunization.status",
        "comment": "Apply \"completed\""
      },
      {
        "id": "Immunization.statusReason",
        "path": "Immunization.statusReason",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.id",
        "path": "Immunization.vaccineCode.id",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.coding.id",
        "path": "Immunization.vaccineCode.coding.id",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.coding.system",
        "path": "Immunization.vaccineCode.coding.system",
        "comment": "Apply \"http://snomed.info/sct\"",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.version",
        "path": "Immunization.vaccineCode.coding.version",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.coding.code",
        "path": "Immunization.vaccineCode.coding.code",
        "comment": "Agent SNOMED code from eForm drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.display",
        "path": "Immunization.vaccineCode.coding.display",
        "comment": "Apply (LABEL) from eForm drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.userSelected",
        "path": "Immunization.vaccineCode.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.text",
        "path": "Immunization.vaccineCode.text",
        "max": "0"
      },
      {
        "id": "Immunization.patient.id",
        "path": "Immunization.patient.id",
        "max": "0"
      },
      {
        "id": "Immunization.patient.reference",
        "path": "Immunization.patient.reference",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eForm",
            "map": "fullURL + \"Patient/\" + (Patient ID)",
            "comment": "http://ehealth.bc.ca/eForm/fhir/"
          }
        ]
      },
      {
        "id": "Immunization.patient.type",
        "path": "Immunization.patient.type",
        "max": "0"
      },
      {
        "id": "Immunization.patient.identifier",
        "path": "Immunization.patient.identifier",
        "max": "0"
      },
      {
        "id": "Immunization.patient.display",
        "path": "Immunization.patient.display",
        "max": "0"
      },
      {
        "id": "Immunization.encounter",
        "path": "Immunization.encounter",
        "max": "0"
      },
      {
        "id": "Immunization.occurrence[x]",
        "path": "Immunization.occurrence[x]",
        "comment": "Vaccination Date entered on eForm",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Immunization.recorded",
        "path": "Immunization.recorded",
        "max": "0"
      },
      {
        "id": "Immunization.primarySource",
        "path": "Immunization.primarySource",
        "comment": "Apply \"true\"",
        "min": 1
      },
      {
        "id": "Immunization.reportOrigin",
        "path": "Immunization.reportOrigin",
        "max": "0"
      },
      {
        "id": "Immunization.location.id",
        "path": "Immunization.location.id",
        "max": "0"
      },
      {
        "id": "Immunization.location.reference",
        "path": "Immunization.location.reference",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eForm-sdl-dropdownlist",
            "map": "fullURL+\"Location/\"+(SDL_ID)+\"org\"+(BRANCH_ID)",
            "comment": "http://ehealth.bc.ca/eForm/fhir"
          }
        ]
      },
      {
        "id": "Immunization.location.type",
        "path": "Immunization.location.type",
        "max": "0"
      },
      {
        "id": "Immunization.location.identifier",
        "path": "Immunization.location.identifier",
        "max": "0"
      },
      {
        "id": "Immunization.location.display",
        "path": "Immunization.location.display",
        "max": "0"
      },
      {
        "id": "Immunization.manufacturer",
        "path": "Immunization.manufacturer",
        "max": "0"
      },
      {
        "id": "Immunization.lotNumber",
        "path": "Immunization.lotNumber",
        "comment": "Capture from eForm",
        "min": 1
      },
      {
        "id": "Immunization.expirationDate",
        "path": "Immunization.expirationDate",
        "comment": "Capture from eForm, format is yyyy-mm-dd",
        "min": 1
      },
      {
        "id": "Immunization.site.id",
        "path": "Immunization.site.id",
        "max": "0"
      },
      {
        "id": "Immunization.site.coding.id",
        "path": "Immunization.site.coding.id",
        "max": "0"
      },
      {
        "id": "Immunization.site.coding.system",
        "path": "Immunization.site.coding.system",
        "comment": "\"http://snomed.info/sct\"",
        "min": 1
      },
      {
        "id": "Immunization.site.coding.version",
        "path": "Immunization.site.coding.version",
        "max": "0"
      },
      {
        "id": "Immunization.site.coding.code",
        "path": "Immunization.site.coding.code",
        "comment": "Capture from eForm",
        "min": 1
      },
      {
        "id": "Immunization.site.coding.display",
        "path": "Immunization.site.coding.display",
        "comment": "Apply (LABEL) from eForm drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.site.coding.userSelected",
        "path": "Immunization.site.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Immunization.site.text",
        "path": "Immunization.site.text",
        "max": "0"
      },
      {
        "id": "Immunization.route.id",
        "path": "Immunization.route.id",
        "max": "0"
      },
      {
        "id": "Immunization.route.coding.id",
        "path": "Immunization.route.coding.id",
        "max": "0"
      },
      {
        "id": "Immunization.route.coding.system",
        "path": "Immunization.route.coding.system",
        "comment": "Apply \"http://snomed.info/sct\"",
        "min": 1
      },
      {
        "id": "Immunization.route.coding.version",
        "path": "Immunization.route.coding.version",
        "max": "0"
      },
      {
        "id": "Immunization.route.coding.code",
        "path": "Immunization.route.coding.code",
        "comment": "Capture from eForm drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.route.coding.display",
        "path": "Immunization.route.coding.display",
        "comment": "Apply (LABEL) from eForm drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.route.coding.userSelected",
        "path": "Immunization.route.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Immunization.route.text",
        "path": "Immunization.route.text",
        "max": "0"
      },
      {
        "id": "Immunization.doseQuantity.id",
        "path": "Immunization.doseQuantity.id",
        "max": "0"
      },
      {
        "id": "Immunization.doseQuantity.value",
        "path": "Immunization.doseQuantity.value",
        "comment": "Capture from eForm",
        "min": 1
      },
      {
        "id": "Immunization.doseQuantity.unit",
        "path": "Immunization.doseQuantity.unit",
        "comment": "Capture from eForm",
        "min": 1
      },
      {
        "id": "Immunization.doseQuantity.system",
        "path": "Immunization.doseQuantity.system",
        "max": "0"
      },
      {
        "id": "Immunization.doseQuantity.code",
        "path": "Immunization.doseQuantity.code",
        "max": "0"
      },
      {
        "id": "Immunization.performer",
        "path": "Immunization.performer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.performer.id",
        "path": "Immunization.performer.id",
        "max": "0"
      },
      {
        "id": "Immunization.performer.function",
        "path": "Immunization.performer.function",
        "min": 1
      },
      {
        "id": "Immunization.performer.function.id",
        "path": "Immunization.performer.function.id",
        "max": "0"
      },
      {
        "id": "Immunization.performer.function.coding",
        "path": "Immunization.performer.function.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.performer.function.coding.id",
        "path": "Immunization.performer.function.coding.id",
        "max": "0"
      },
      {
        "id": "Immunization.performer.function.coding.system",
        "path": "Immunization.performer.function.coding.system",
        "comment": "\"http://terminology.hl7.org/CodeSystem/v2-0443\"",
        "min": 1
      },
      {
        "id": "Immunization.performer.function.coding.version",
        "path": "Immunization.performer.function.coding.version",
        "max": "0"
      },
      {
        "id": "Immunization.performer.function.coding.code",
        "path": "Immunization.performer.function.coding.code",
        "comment": "Apply \"AP\"",
        "min": 1
      },
      {
        "id": "Immunization.performer.function.coding.display",
        "path": "Immunization.performer.function.coding.display",
        "comment": "\"Administering Provider\"",
        "min": 1
      },
      {
        "id": "Immunization.performer.function.coding.userSelected",
        "path": "Immunization.performer.function.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Immunization.performer.function.text",
        "path": "Immunization.performer.function.text",
        "max": "0"
      },
      {
        "id": "Immunization.performer.actor.id",
        "path": "Immunization.performer.actor.id",
        "max": "0"
      },
      {
        "id": "Immunization.performer.actor.reference",
        "path": "Immunization.performer.actor.reference",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eForm",
            "map": "fullURL + \"PractitionerPerformer\" + (Provider ID)",
            "comment": "http://ehealth.bc.ca/eForm/fhir/"
          }
        ]
      },
      {
        "id": "Immunization.performer.actor.type",
        "path": "Immunization.performer.actor.type",
        "max": "0"
      },
      {
        "id": "Immunization.performer.actor.identifier",
        "path": "Immunization.performer.actor.identifier",
        "max": "0"
      },
      {
        "id": "Immunization.performer.actor.display",
        "path": "Immunization.performer.actor.display",
        "max": "0"
      },
      {
        "id": "Immunization.note.id",
        "path": "Immunization.note.id",
        "max": "0"
      },
      {
        "id": "Immunization.note.author[x]",
        "path": "Immunization.note.author[x]",
        "max": "0"
      },
      {
        "id": "Immunization.note.time",
        "path": "Immunization.note.time",
        "max": "0"
      },
      {
        "id": "Immunization.reasonCode",
        "path": "Immunization.reasonCode",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.reasonCode.id",
        "path": "Immunization.reasonCode.id",
        "max": "0"
      },
      {
        "id": "Immunization.reasonCode.coding.id",
        "path": "Immunization.reasonCode.coding.id",
        "max": "0"
      },
      {
        "id": "Immunization.reasonCode.coding.system",
        "path": "Immunization.reasonCode.coding.system",
        "comment": "Apply \"http://ehealth.bc.ca/fhir/CodeSystem/ca-bc-immunizations-reason\"",
        "min": 1
      },
      {
        "id": "Immunization.reasonCode.coding.version",
        "path": "Immunization.reasonCode.coding.version",
        "max": "0"
      },
      {
        "id": "Immunization.reasonCode.coding.code",
        "path": "Immunization.reasonCode.coding.code",
        "comment": "Capture from eForm drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.reasonCode.coding.display",
        "path": "Immunization.reasonCode.coding.display",
        "comment": "Apply (LABEL) from dFrom drop-down list",
        "min": 1
      },
      {
        "id": "Immunization.reasonCode.coding.userSelected",
        "path": "Immunization.reasonCode.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Immunization.reasonCode.text",
        "path": "Immunization.reasonCode.text",
        "max": "0"
      },
      {
        "id": "Immunization.reasonReference",
        "path": "Immunization.reasonReference",
        "max": "0"
      },
      {
        "id": "Immunization.education",
        "path": "Immunization.education",
        "max": "0"
      },
      {
        "id": "Immunization.programEligibility",
        "path": "Immunization.programEligibility",
        "max": "0"
      },
      {
        "id": "Immunization.fundingSource",
        "path": "Immunization.fundingSource",
        "max": "0"
      },
      {
        "id": "Immunization.reaction",
        "path": "Immunization.reaction",
        "max": "0"
      },
      {
        "id": "Immunization.protocolApplied.doseNumber[x]",
        "path": "Immunization.protocolApplied.doseNumber[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}