<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2018-05-16T23:54:04.17+01:00" />
    <tag>
      <code value="10" />
    </tag>
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo" />
  </extension>
  <url value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Device-1" />
  <version value="1.0.0" />
  <name value="ITK-Device-1" />
  <title value="ITK Device" />
  <status value="draft" />
  <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="This resource is primarily used for recording which device performed an action and can also be used to track device location. It is also used for prescribing and dispensing devices for patient use. If the device is implanted in a patient, then the patient element will be present, and there would be no location." />
  <purpose value="A device could be the author of a document in this message." />
  <copyright value="Copyright ©2017 NHS Digital" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Device" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Device" />
  <derivation value="constraint" />
  <differential>
    <element id="Device.identifier.type.coding.system">
      <path value="Device.identifier.type.coding.system" />
      <min value="1" />
    </element>
    <element id="Device.identifier.type.coding.code">
      <path value="Device.identifier.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Device.identifier.type.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Device.identifier.type.coding.display" />
      <min value="1" />
    </element>
    <element id="Device.identifier.value">
      <path value="Device.identifier.value" />
      <min value="1" />
    </element>
    <element id="Device.identifier.assigner">
      <path value="Device.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="Device.identifier.assigner.reference">
      <path value="Device.identifier.assigner.reference" />
      <min value="1" />
    </element>
    <element id="Device.type">
      <path value="Device.type" />
      <min value="1" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DeviceKind" />
        </extension>
        <strength value="preferred" />
        <description value="Defines the nature of the device and also the kind of functionality/services/behavior that may be expected from it." />
        <valueSetReference>
          <reference value="https://fhir.nhs.uk/STU3/ValueSet/DeviceType-1" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Device.type.coding.system">
      <path value="Device.type.coding.system" />
      <min value="1" />
    </element>
    <element id="Device.type.coding.code">
      <path value="Device.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Device.type.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Device.type.coding.display" />
      <min value="1" />
    </element>
    <element id="Device.patient">
      <path value="Device.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" />
      </type>
    </element>
    <element id="Device.patient.reference">
      <path value="Device.patient.reference" />
      <min value="1" />
    </element>
    <element id="Device.owner">
      <path value="Device.owner" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" />
      </type>
    </element>
    <element id="Device.owner.reference">
      <path value="Device.owner.reference" />
      <min value="1" />
    </element>
    <element id="Device.contact.system">
      <path value="Device.contact.system" />
      <min value="1" />
    </element>
    <element id="Device.contact.value">
      <path value="Device.contact.value" />
      <min value="1" />
    </element>
    <element id="Device.location">
      <path value="Device.location" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1" />
      </type>
    </element>
    <element id="Device.location.reference">
      <path value="Device.location.reference" />
      <min value="1" />
    </element>
    <element id="Device.note">
      <path value="Device.note" />
      <max value="0" />
    </element>
    <element id="Device.note.authorReference:authorReference">
      <path value="Device.note.authorReference" />
      <sliceName value="authorReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1" />
      </type>
    </element>
    <element id="Device.note.authorReference:authorReference.reference">
      <path value="Device.note.authorReference.reference" />
      <min value="1" />
    </element>
    <element id="Device.safety.coding.system">
      <path value="Device.safety.coding.system" />
      <min value="1" />
    </element>
    <element id="Device.safety.coding.code">
      <path value="Device.safety.coding.code" />
      <min value="1" />
    </element>
    <element id="Device.safety.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Device.safety.coding.display" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>