{
  "resourceType": "StructureDefinition",
  "id": "0cc5147d-f7bd-4a6b-97f3-c1cfe3ce93e3",
  "meta": {
    "lastUpdated": "2020-08-04T19:55:10.162+00:00"
  },
  "url": "http://ehealthbc.ca/fhir/StructureDefinition/Immunization",
  "name": "Immunization",
  "status": "draft",
  "date": "2020-08-04T19:55:09.3826241+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",
        "definition": "Agent Level: clientID_immunizationHistoryId",
        "comment": "Agent Level: clientID_immunizationHistoryId"
      },
      {
        "id": "Immunization.meta",
        "path": "Immunization.meta",
        "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",
        "max": "0"
      },
      {
        "id": "Immunization.identifier.system",
        "path": "Immunization.identifier.system",
        "fixedUri": "https://ehealth.bc.ca/NamingSystem/ca-bc-panorama-immunization-id"
      },
      {
        "id": "Immunization.identifier.value",
        "path": "Immunization.identifier.value",
        "short": "Panaorama Immunization ID",
        "definition": "H33_VACCINATION_MASTER.IMMUNIZATION_ID",
        "comment": "JSON Attribute immunizationId",
        "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": "FHIR conformant:  Hardcode as 'completed'"
      },
      {
        "id": "Immunization.statusReason",
        "path": "Immunization.statusReason",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode",
        "path": "Immunization.vaccineCode",
        "comment": "Two Levels:  Agent and Antigen, indicates by the system value"
      },
      {
        "id": "Immunization.vaccineCode.id",
        "path": "Immunization.vaccineCode.id",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.coding",
        "path": "Immunization.vaccineCode.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.vaccineCode.coding.id",
        "path": "Immunization.vaccineCode.coding.id",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.coding.system",
        "path": "Immunization.vaccineCode.coding.system",
        "definition": "https://ehealth.bc.ca/NamingSystem/ca-bc-panorama-immunization-agent-code",
        "fixedUri": "https://ehealth.bc.ca/NamingSystem/ca-bc-panorama-immunization-code"
      },
      {
        "id": "Immunization.vaccineCode.coding.version",
        "path": "Immunization.vaccineCode.coding.version",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.coding.code",
        "path": "Immunization.vaccineCode.coding.code",
        "short": "Immunization Agent Code",
        "definition": "H33_VACCINATION_MASTER.ASIIS_VACC_CODE",
        "comment": "JSON Attribute: immunizationAgentCode",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Immunization.vaccineCode.coding.display",
        "short": "Immunization Agent Description",
        "definition": "Immunization Agent Description",
        "comment": "JSON Attribute: immunizationAgentDescrption",
        "min": 1
      },
      {
        "id": "Immunization.vaccineCode.coding.userSelected",
        "path": "Immunization.vaccineCode.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Immunization.vaccineCode.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Immunization.vaccineCode.text",
        "short": "Immunization Agent Translated Description",
        "definition": "Immunization Agent Translated Description",
        "comment": "JSON Attribute: immunizationAgentCombinedDescription"
      },
      {
        "id": "Immunization.patient.type",
        "path": "Immunization.patient.type",
        "fixedUri": "Patient"
      },
      {
        "id": "Immunization.patient.identifier",
        "path": "Immunization.patient.identifier",
        "max": "0"
      },
      {
        "id": "Immunization.patient.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Immunization.patient.display",
        "max": "0"
      },
      {
        "id": "Immunization.encounter",
        "path": "Immunization.encounter",
        "max": "0"
      },
      {
        "id": "Immunization.occurrence[x]",
        "path": "Immunization.occurrence[x]",
        "short": "H33_VACCINATION_MASTER.VACC_DATE",
        "definition": "H33_VACCINATION_MASTER.VACC_DATE",
        "comment": "JSON Attribute vaccDate:  (yyyy-mm-dd)",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Immunization.recorded",
        "path": "Immunization.recorded",
        "max": "0"
      },
      {
        "id": "Immunization.primarySource",
        "path": "Immunization.primarySource",
        "max": "0"
      },
      {
        "id": "Immunization.reportOrigin",
        "path": "Immunization.reportOrigin",
        "max": "0"
      },
      {
        "id": "Immunization.location",
        "path": "Immunization.location",
        "max": "0"
      },
      {
        "id": "Immunization.manufacturer",
        "path": "Immunization.manufacturer",
        "max": "0"
      },
      {
        "id": "Immunization.lotNumber",
        "path": "Immunization.lotNumber",
        "comment": "JSON Attribute lotNumber: INVENTRY.inv_product_lot_info.lot_number",
        "max": "0"
      },
      {
        "id": "Immunization.expirationDate",
        "path": "Immunization.expirationDate",
        "max": "0"
      },
      {
        "id": "Immunization.site",
        "path": "Immunization.site",
        "max": "0"
      },
      {
        "id": "Immunization.route",
        "path": "Immunization.route",
        "max": "0"
      },
      {
        "id": "Immunization.doseQuantity",
        "path": "Immunization.doseQuantity",
        "max": "0"
      },
      {
        "id": "Immunization.doseQuantity.value",
        "path": "Immunization.doseQuantity.value",
        "short": "Volume of Dosage",
        "definition": "Volume of Dosage",
        "comment": "JSON Attribute dosage"
      },
      {
        "id": "Immunization.doseQuantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Immunization.doseQuantity.unit",
        "short": "Dosage UoM",
        "definition": "Dosage UoM",
        "comment": "JSON Attribute dosageUOM"
      },
      {
        "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",
        "max": "0"
      },
      {
        "id": "Immunization.note",
        "path": "Immunization.note",
        "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.note.text",
        "path": "Immunization.note.text",
        "comment": "JSON Attribute note: imms.H33_vaccination_master.comments"
      },
      {
        "id": "Immunization.reasonCode",
        "path": "Immunization.reasonCode",
        "max": "0"
      },
      {
        "id": "Immunization.reasonReference",
        "path": "Immunization.reasonReference",
        "max": "0"
      },
      {
        "id": "Immunization.isSubpotent",
        "path": "Immunization.isSubpotent",
        "short": "Flag to determine Dose Status",
        "definition": "Flag to determine Dose Status",
        "comment": "JSON Attribute doseStatus: If 'Valid', set isSubpotent = '0', else set isSubpotent = '1'",
        "max": "0"
      },
      {
        "id": "Immunization.subpotentReason",
        "path": "Immunization.subpotentReason",
        "max": "0"
      },
      {
        "id": "Immunization.subpotentReason.coding",
        "path": "Immunization.subpotentReason.coding",
        "max": "0"
      },
      {
        "id": "Immunization.subpotentReason.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Immunization.subpotentReason.text",
        "short": "Dose Status if not 'Valid'",
        "definition": "Dose Status if not 'Valid'",
        "comment": "JSON Attribute doseStatus: Possible value 'Invalid', 'Valid (override)', 'Invalid (override)'."
      },
      {
        "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",
        "path": "Immunization.protocolApplied",
        "max": "0"
      },
      {
        "id": "Immunization.protocolApplied.series",
        "path": "Immunization.protocolApplied.series",
        "max": "0"
      },
      {
        "id": "Immunization.protocolApplied.authority",
        "path": "Immunization.protocolApplied.authority",
        "max": "0"
      },
      {
        "id": "Immunization.protocolApplied.targetDisease",
        "path": "Immunization.protocolApplied.targetDisease",
        "max": "0"
      },
      {
        "id": "Immunization.protocolApplied.doseNumber[x]",
        "path": "Immunization.protocolApplied.doseNumber[x]",
        "short": "Agent or Antigen Dose Number",
        "definition": "Agent Level: Agent Dose Number ; \r\nAntigen Level: Antigen Dose Number",
        "comment": "Agent Level: JSON Attribute agentDoseNumber ;\r\nAntigen Level: JSON Attribute antigenDoseNumber",
        "type": [
          {
            "code": "positiveInt"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.seriesDoses[x]",
        "path": "Immunization.protocolApplied.seriesDoses[x]",
        "max": "0"
      }
    ]
  }
}