<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-08-30T09:21:09.083+01:00" />
  </meta>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationDispense-List-1" />
  <version value="1.2.0" />
  <name value="CareConnect-ITK-MedicationDispense-List-1" />
  <status value="active" />
  <date value="2024-01-22T11:39:06.3872207+00:00" />
  <publisher value="NHS Digital" />
  <contact>
    <name value="Interoperability Team" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Within ITK this List is constrained to hold Medications dispensed." />
  <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/" />
  <copyright value="Copyright © 2016 HL7 UK&#xD;&#xA;&#xD;&#xA;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&#xD;&#xA;&#xD;&#xA;http://www.apache.org/licenses/LICENSE-2.0&#xD;&#xA;&#xD;&#xA;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.&#xD;&#xA;&#xD;&#xA;HL7® FHIR® standard Copyright © 2011+ HL7&#xD;&#xA;&#xD;&#xA;The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at&#xD;&#xA;&#xD;&#xA;https://www.hl7.org/fhir/license.html" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="List" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List" />
  <derivation value="constraint" />
  <differential>
    <element id="List.extension">
      <path value="List.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="List.extension:clinicalSetting">
      <path value="List.extension" />
      <sliceName value="clinicalSetting" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ClinicalSetting-1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="List.extension:clinicalSetting.url">
      <path value="List.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ClinicalSetting-1" />
    </element>
    <element id="List.extension:warningCode">
      <path value="List.extension" />
      <sliceName value="warningCode" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ListWarningCode-1" />
      </type>
    </element>
    <element id="List.extension:warningCode.url">
      <path value="List.extension.url" />
      <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ListWarningCode-1" />
    </element>
    <element id="List.identifier.system">
      <path value="List.identifier.system" />
      <min value="1" />
    </element>
    <element id="List.identifier.value">
      <path value="List.identifier.value" />
      <min value="1" />
    </element>
    <element id="List.identifier.assigner">
      <path value="List.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="List.status">
      <path value="List.status" />
      <fixedCode value="current" />
    </element>
    <element id="List.mode">
      <path value="List.mode" />
      <fixedCode value="snapshot" />
    </element>
    <element id="List.code">
      <path value="List.code" />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ListPurpose" />
        </extension>
        <strength value="required" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ListCode-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="List.code.coding">
      <path value="List.code.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="List.code.coding.system">
      <path value="List.code.coding.system" />
      <min value="1" />
      <fixedUri value="http://snomed.info/sct" />
    </element>
    <element id="List.code.coding.version">
      <path value="List.code.coding.version" />
      <max value="0" />
    </element>
    <element id="List.code.coding.code">
      <path value="List.code.coding.code" />
      <min value="1" />
      <fixedCode value="163541000000107" />
    </element>
    <element id="List.code.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="List.code.coding.display" />
      <min value="1" />
      <fixedString value="Dispensed Medication" />
    </element>
    <element id="List.code.coding.userSelected">
      <path value="List.code.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="List.code.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="List.code.text" />
      <max value="0" />
    </element>
    <element id="List.subject">
      <path value="List.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
    </element>
    <element id="List.encounter">
      <path value="List.encounter" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1" />
      </type>
    </element>
    <element id="List.source">
      <path value="List.source" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
    <element id="List.orderedBy">
      <path value="List.orderedBy" />
      <max value="0" />
    </element>
    <element id="List.note">
      <path value="List.note" />
      <max value="0" />
    </element>
    <element id="List.note.author[x]">
      <path value="List.note.author[x]" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1" />
      </type>
    </element>
    <element id="List.entry.item">
      <path value="List.entry.item" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationDispense-1" />
      </type>
    </element>
    <element id="List.emptyReason">
      <path value="List.emptyReason" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ListEmptyReason" />
        </extension>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ListEmptyReasonCode-1" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>