<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-Immunization" />
  <url value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Immunization" />
  <version value="1.0.0" />
  <name value="UKCoreImmunization" />
  <title value="UK Core Immunization" />
  <status value="draft" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="secretariat@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <contact>
    <name value="NHS Digital" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
      <rank value="2" />
    </telecom>
  </contact>
  <description value="Defines the UK Core constraints and extensions on the Immunization resource for the minimal set of data to query and retrieve an individual’s immunisation information." />
  <purpose value="This profile is intended to cover the recording of current and historical administration of vaccines to individuals across all healthcare disciplines in all care settings and all regions. This profile does not support the administration of non-vaccine agents, even those that may have or claim to have immunological effects. While the terms &quot;immunisation&quot; and &quot;vaccination&quot; are not clinically identical, for the purposes of the FHIR profile, the terms are used synonymously." />
  <copyright value="Copyright © 2020 HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <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.identifier.assigner">
      <path value="Immunization.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.statusReason">
      <path value="Immunization.statusReason" />
      <binding>
        <strength value="extensible" />
        <description value="A ValueSet to identify the reason why an immunization was not administered." />
        <valueSet value="https://fhir.nhs.uk/R4/ValueSet/UKCore-ReasonImmunizationNotAdministered" />
      </binding>
    </element>
    <element id="Immunization.vaccineCode">
      <path value="Immunization.vaccineCode" />
      <binding>
        <strength value="extensible" />
        <description value="A code from the SNOMED Clinical Terminology UK coding system to record a vaccine or a null flavor value." />
        <valueSet value="https://fhir.nhs.uk/R4/ValueSet/UKCore-VaccineCode" />
      </binding>
    </element>
    <element id="Immunization.patient">
      <path value="Immunization.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Patient" />
      </type>
    </element>
    <element id="Immunization.patient.identifier.assigner">
      <path value="Immunization.patient.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.encounter">
      <path value="Immunization.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Encounter" />
      </type>
    </element>
    <element id="Immunization.encounter.identifier.assigner">
      <path value="Immunization.encounter.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.location">
      <path value="Immunization.location" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Location" />
      </type>
    </element>
    <element id="Immunization.location.identifier.assigner">
      <path value="Immunization.location.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.manufacturer">
      <path value="Immunization.manufacturer" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.manufacturer.identifier.assigner">
      <path value="Immunization.manufacturer.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.route.coding">
      <path value="Immunization.route.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Immunization.route.coding:snomedCT">
      <path value="Immunization.route.coding" />
      <sliceName value="snomedCT" />
      <binding>
        <strength value="extensible" />
        <description value="A code from the SNOMED Clinical Terminology UK coding system that describes the e-Prescribing route of administration. Any code from the SNOMED CT UK 'NHS e-Prescribing route of administration subset' with subset original id 30201000001137; the corresponding SNOMED CT UK Refset FSN is 'ePrescribing route of administration simple reference set (foundation metadata concept)' with Refset Id 999000051000001100." />
        <valueSet value="https://fhir.nhs.uk/R4/ValueSet/UKCore-MedicationDosageRoute" />
      </binding>
    </element>
    <element id="Immunization.route.coding:snomedCT.system">
      <path value="Immunization.route.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="Immunization.route.coding:snomedCT.code">
      <path value="Immunization.route.coding.code" />
      <min value="1" />
    </element>
    <element id="Immunization.route.coding:snomedCT.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Immunization.route.coding.display" />
      <min value="1" />
    </element>
    <element id="Immunization.performer.actor">
      <path value="Immunization.performer.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Practitioner" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-PractitionerRole" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.note.author[x]">
      <path value="Immunization.note.author[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Practitioner" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Patient" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-RelatedPerson" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Immunization.reasonCode">
      <path value="Immunization.reasonCode" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.nhs.uk/R4/ValueSet/UKCore-ImmunizationExplanationReason" />
      </binding>
    </element>
    <element id="Immunization.reasonReference">
      <path value="Immunization.reasonReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Condition" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Observation" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-DiagnosticReport" />
      </type>
    </element>
    <element id="Immunization.reasonReference.identifier.assigner">
      <path value="Immunization.reasonReference.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.reaction.detail">
      <path value="Immunization.reaction.detail" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Observation" />
      </type>
    </element>
    <element id="Immunization.reaction.detail.identifier.assigner">
      <path value="Immunization.reaction.detail.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.protocolApplied.authority">
      <path value="Immunization.protocolApplied.authority" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
    <element id="Immunization.protocolApplied.authority.identifier.assigner">
      <path value="Immunization.protocolApplied.authority.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/R4/StructureDefinition/UKCore-Organization" />
      </type>
    </element>
  </differential>
</StructureDefinition>