<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="aefi-submission-immunization" />
  <text>
    <status value="extensions" />
        --- We have skipped the narrative for better readability of the resource ---
    </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Medications" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <url value="http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-immunization" />
  <version value="0.0.1" />
  <name value="AefiSubmissionImmunization" />
  <title value="PHAC AEFI Submission Immunization" />
  <status value="draft" />
  <date value="2021-09-14T22:55:31-04:00" />
  <description value="PHAC AEFI Submission Immunization Profile" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="cda" />
    <uri value="http://hl7.org/v3/cda" />
    <name value="CDA (R2)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Immunization" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Immunization" />
  <derivation value="constraint" />
  <differential>
    <element id="Immunization">
      <path value="Immunization" />
    </element>
    <element id="Immunization.extension">
      <path value="Immunization.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Immunization.extension:diluent">
      <path value="Immunization.extension" />
      <sliceName value="diluent" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-extension-imm-diluent" />
      </type>
    </element>
    <element id="Immunization.extension:immError">
      <path value="Immunization.extension" />
      <sliceName value="immError" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-extension-imm-error" />
      </type>
    </element>
    <element id="Immunization.identifier">
      <path value="Immunization.identifier" />
      <max value="1" />
    </element>
    <element id="Immunization.identifier.value">
      <path value="Immunization.identifier.value" />
      <short value="Immunization RID" />
      <min value="1" />
    </element>
    <element id="Immunization.status">
      <path value="Immunization.status" />
      <patternCode value="completed" />
    </element>
    <element id="Immunization.vaccineCode">
      <path value="Immunization.vaccineCode" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <description value="Discriminated by bound value set" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Immunization.vaccineCode:Generic">
      <path value="Immunization.vaccineCode" />
      <sliceName value="Generic" />
      <definition value="Generic Immunizing Agent" />
      <comment value="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 value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/Generic" />
      </binding>
    </element>
    <element id="Immunization.vaccineCode:Tradename">
      <path value="Immunization.vaccineCode" />
      <sliceName value="Tradename" />
      <definition value="Tradename Immunizing Agent" />
      <comment value="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 value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/Tradename" />
      </binding>
    </element>
    <element id="Immunization.patient">
      <path value="Immunization.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-patient" />
      </type>
    </element>
    <element id="Immunization.occurrence[x]">
      <path value="Immunization.occurrence[x]" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Immunization.occurrence[x].extension">
      <path value="Immunization.occurrence[x].extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Immunization.occurrence[x].extension:estimatedflag">
      <path value="Immunization.occurrence[x].extension" />
      <sliceName value="estimatedflag" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-extension-estimated-date" />
      </type>
    </element>
    <element id="Immunization.location.display">
      <path value="Immunization.location.display" />
      <short value="Service Delivery Location where the immunization was administered" />
      <min value="1" />
    </element>
    <element id="Immunization.manufacturer.display">
      <path value="Immunization.manufacturer.display" />
      <short value="Vaccine Manufacturer" />
      <min value="1" />
    </element>
    <element id="Immunization.lotNumber">
      <path value="Immunization.lotNumber" />
      <short value="Lot number" />
    </element>
    <element id="Immunization.expirationDate">
      <path value="Immunization.expirationDate" />
      <short value="Lot expiration date" />
    </element>
    <element id="Immunization.site">
      <path value="Immunization.site" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/AnatomicalSite" />
      </binding>
    </element>
    <element id="Immunization.site.coding">
      <path value="Immunization.site.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Immunization.site.coding.system">
      <path value="Immunization.site.coding.system" />
      <min value="1" />
    </element>
    <element id="Immunization.site.coding.code">
      <path value="Immunization.site.coding.code" />
      <min value="1" />
    </element>
    <element id="Immunization.site.coding.display">
      <path value="Immunization.site.coding.display" />
      <min value="1" />
    </element>
    <element id="Immunization.route">
      <path value="Immunization.route" />
      <binding>
        <strength value="preferred" />
        <valueSet value="https://cvc.canimmunize.ca/v3/ValueSet/RouteOfAdmin" />
      </binding>
    </element>
    <element id="Immunization.route.coding">
      <path value="Immunization.route.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Immunization.route.coding.system">
      <path value="Immunization.route.coding.system" />
      <min value="1" />
    </element>
    <element id="Immunization.route.coding.code">
      <path value="Immunization.route.coding.code" />
      <min value="1" />
    </element>
    <element id="Immunization.route.coding.display">
      <path value="Immunization.route.coding.display" />
      <min value="1" />
    </element>
    <element id="Immunization.doseQuantity.value">
      <path value="Immunization.doseQuantity.value" />
      <min value="1" />
    </element>
    <element id="Immunization.doseQuantity.unit">
      <path value="Immunization.doseQuantity.unit" />
      <min value="1" />
    </element>
    <element id="Immunization.performer.function">
      <path value="Immunization.performer.function" />
      <min value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0443" />
          <code value="AP" />
          <display value="Administering Provider" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Immunization.performer.actor">
      <path value="Immunization.performer.actor" />
      <short value="Individual who adminstered the immunization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://www.phac-aspc.gc.ca/fhir/StructureDefinition/aefi-submission-practitioner" />
      </type>
    </element>
    <element id="Immunization.performer.actor.reference">
      <path value="Immunization.performer.actor.reference" />
      <short value="Reference to a Practitioner (performer) resource" />
    </element>
    <element id="Immunization.performer.actor.display">
      <path value="Immunization.performer.actor.display" />
      <short value="Name of an individual who adminstered the immunization when information other than a name is not known" />
    </element>
    <element id="Immunization.isSubpotent">
      <path value="Immunization.isSubpotent" />
      <short value="Immunization error: true if 'Yes', false if 'No', omitted from the resource if 'Unknown'" />
    </element>
    <element id="Immunization.protocolApplied">
      <path value="Immunization.protocolApplied" />
      <max value="1" />
    </element>
    <element id="Immunization.protocolApplied.doseNumber[x]">
      <path value="Immunization.protocolApplied.doseNumber[x]" />
      <type>
        <code value="positiveInt" />
      </type>
    </element>
    <element id="Immunization.protocolApplied.seriesDoses[x]">
      <path value="Immunization.protocolApplied.seriesDoses[x]" />
      <type>
        <code value="positiveInt" />
      </type>
    </element>
  </differential>
</StructureDefinition>