{
  "resourceType": "StructureDefinition",
  "id": "aefi-submission-immunization",
  "text": {
    "status": "extensions"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Medications"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-immunization",
  "version": "0.0.1",
  "name": "AefiSubmissionImmunization",
  "title": "PHAC AEFI Submission Immunization",
  "status": "draft",
  "date": "2021-09-15T02:55:31+00:00",
  "description": "PHAC AEFI Submission Immunization Profile",
  "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/Immunization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Immunization",
        "path": "Immunization"
      },
      {
        "id": "Immunization.extension",
        "path": "Immunization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Immunization.extension:diluent",
        "path": "Immunization.extension",
        "sliceName": "diluent",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-extension-imm-diluent"
            ]
          }
        ]
      },
      {
        "id": "Immunization.extension:immError",
        "path": "Immunization.extension",
        "sliceName": "immError",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-extension-imm-error"
            ]
          }
        ]
      },
      {
        "id": "Immunization.identifier",
        "path": "Immunization.identifier",
        "max": "1"
      },
      {
        "id": "Immunization.identifier.value",
        "path": "Immunization.identifier.value",
        "short": "Immunization RID",
        "min": 1
      },
      {
        "id": "Immunization.status",
        "path": "Immunization.status",
        "patternCode": "completed"
      },
      {
        "id": "Immunization.vaccineCode",
        "path": "Immunization.vaccineCode",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "description": "Discriminated by bound value set",
          "rules": "open"
        }
      },
      {
        "id": "Immunization.vaccineCode:Generic",
        "path": "Immunization.vaccineCode",
        "sliceName": "Generic",
        "definition": "Generic Immunizing Agent",
        "comment": "Generic Immunizing Agents subset contains generically described vaccines and passive immunizing agents used in Canada. It is an extension of the Pan-Canadian Immunization Reference Sets Vaccine Historical Name Code and Passive Historical Immunizing Agent Code subset developed by Canada Health Infoway. **Please note** that Canadian Vaccine Catalogue (CVC)-published value set urls are currently not resolvable, but details of the referenced value sets are available in the current version of the CVC accessible here: [https://cvc.canimmunize.ca/en/explore#/](https://cvc.canimmunize.ca/en/explore#/)",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSet": "https://cvc.canimmunize.ca/v3/ValueSet/Generic"
        }
      },
      {
        "id": "Immunization.vaccineCode:Tradename",
        "path": "Immunization.vaccineCode",
        "sliceName": "Tradename",
        "definition": "Tradename Immunizing Agent",
        "comment": "Tradename Immunizing Agents subset contains tradenames of vaccines and passive immunizing agents used in Canada. It is an extension of the Pan-Canadian Immunization Reference Sets Vaccine Administered Trade Name Code and Immunioglobulin Code subset developed by Canada Health Infoway. **Please note** that Canadian Vaccine Catalogue (CVC)-published value set urls are currently not resolvable, but details of the referenced value sets are available in the current version of the CVC accessible here: [https://cvc.canimmunize.ca/en/explore#/](https://cvc.canimmunize.ca/en/explore#/)",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSet": "https://cvc.canimmunize.ca/v3/ValueSet/Tradename"
        }
      },
      {
        "id": "Immunization.patient",
        "path": "Immunization.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-patient"
            ]
          }
        ]
      },
      {
        "id": "Immunization.occurrence[x]",
        "path": "Immunization.occurrence[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Immunization.occurrence[x].extension",
        "path": "Immunization.occurrence[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Immunization.occurrence[x].extension:estimatedflag",
        "path": "Immunization.occurrence[x].extension",
        "sliceName": "estimatedflag",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-extension-estimated-date"
            ]
          }
        ]
      },
      {
        "id": "Immunization.location.display",
        "path": "Immunization.location.display",
        "short": "Service Delivery Location where the immunization was administered",
        "min": 1
      },
      {
        "id": "Immunization.manufacturer.display",
        "path": "Immunization.manufacturer.display",
        "short": "Vaccine Manufacturer",
        "min": 1
      },
      {
        "id": "Immunization.lotNumber",
        "path": "Immunization.lotNumber",
        "short": "Lot number"
      },
      {
        "id": "Immunization.expirationDate",
        "path": "Immunization.expirationDate",
        "short": "Lot expiration date"
      },
      {
        "id": "Immunization.site",
        "path": "Immunization.site",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://cvc.canimmunize.ca/v3/ValueSet/AnatomicalSite"
        }
      },
      {
        "id": "Immunization.site.coding",
        "path": "Immunization.site.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.site.coding.system",
        "path": "Immunization.site.coding.system",
        "min": 1
      },
      {
        "id": "Immunization.site.coding.code",
        "path": "Immunization.site.coding.code",
        "min": 1
      },
      {
        "id": "Immunization.site.coding.display",
        "path": "Immunization.site.coding.display",
        "min": 1
      },
      {
        "id": "Immunization.route",
        "path": "Immunization.route",
        "binding": {
          "strength": "preferred",
          "valueSet": "https://cvc.canimmunize.ca/v3/ValueSet/RouteOfAdmin"
        }
      },
      {
        "id": "Immunization.route.coding",
        "path": "Immunization.route.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Immunization.route.coding.system",
        "path": "Immunization.route.coding.system",
        "min": 1
      },
      {
        "id": "Immunization.route.coding.code",
        "path": "Immunization.route.coding.code",
        "min": 1
      },
      {
        "id": "Immunization.route.coding.display",
        "path": "Immunization.route.coding.display",
        "min": 1
      },
      {
        "id": "Immunization.doseQuantity.value",
        "path": "Immunization.doseQuantity.value",
        "min": 1
      },
      {
        "id": "Immunization.doseQuantity.unit",
        "path": "Immunization.doseQuantity.unit",
        "min": 1
      },
      {
        "id": "Immunization.performer.function",
        "path": "Immunization.performer.function",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v2-0443",
              "code": "AP",
              "display": "Administering Provider"
            }
          ]
        }
      },
      {
        "id": "Immunization.performer.actor",
        "path": "Immunization.performer.actor",
        "short": "Individual who adminstered the immunization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-practitioner"
            ]
          }
        ]
      },
      {
        "id": "Immunization.performer.actor.reference",
        "path": "Immunization.performer.actor.reference",
        "short": "Reference to a Practitioner (performer) resource"
      },
      {
        "id": "Immunization.performer.actor.display",
        "path": "Immunization.performer.actor.display",
        "short": "Name of an individual who adminstered the immunization when information other than a name is not known"
      },
      {
        "id": "Immunization.isSubpotent",
        "path": "Immunization.isSubpotent",
        "short": "Immunization error: true if 'Yes', false if 'No', omitted from the resource if 'Unknown'"
      },
      {
        "id": "Immunization.protocolApplied",
        "path": "Immunization.protocolApplied",
        "max": "1"
      },
      {
        "id": "Immunization.protocolApplied.doseNumber[x]",
        "path": "Immunization.protocolApplied.doseNumber[x]",
        "type": [
          {
            "code": "positiveInt"
          }
        ]
      },
      {
        "id": "Immunization.protocolApplied.seriesDoses[x]",
        "path": "Immunization.protocolApplied.seriesDoses[x]",
        "type": [
          {
            "code": "positiveInt"
          }
        ]
      }
    ]
  }
}