<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-device" />
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-device" />
  <name value="Device" />
  <title value="Device Profile" />
  <status value="active" />
  <publisher value="Synapxe" />
  <description value="This resource represents an instance or a type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity." />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Device" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Device" />
  <derivation value="constraint" />
  <differential>
    <element id="Device">
      <path value="Device" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice`: A device that is implanted, removed or otherwise manipulated as a focal portion of the procedure.&#xA;- `content/Composition/section/entry/Procedure/used/Device`: Device used as part of the procedure." />
    </element>
    <element id="Device.identifier">
      <path value="Device.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/identifier`: The unique identifier associated with this device.&#xA;- `content/Composition/section/entry/Procedure/used/Device/identifier`: Unique identifier associated with the device." />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="Device.identifier:deviceIdentifier">
      <path value="Device.identifier" />
      <sliceName value="deviceIdentifier" />
      <short value="Instance identifier" />
      <definition value="Unique instance identifiers assigned to a device by manufacturers other organizations or owners." />
      <comment value="Certain attributes, like serial number and UDI Carrier (the HRF or AIDC barcode string) are not device instance identifiers as they are not consistently able to uniquely identify the instance of a device, thus are not appropriate to be used to value Device.identifier. The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used. The identifier is typically valued if the serialNumber or lotNumber is not valued and represents a different type of identifier.  However, it is permissible to still include those identifiers in DeviceDefinition.identifier with the appropriate identifier.type." />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier-device-id" />
      </type>
    </element>
    <element id="Device.identifier:sequenceNo">
      <path value="Device.identifier" />
      <sliceName value="sequenceNo" />
      <short value="Instance identifier" />
      <definition value="A number that identifies and sequences the device item." />
      <comment value="Certain attributes, like serial number and UDI Carrier (the HRF or AIDC barcode string) are not device instance identifiers as they are not consistently able to uniquely identify the instance of a device, thus are not appropriate to be used to value Device.identifier. The barcode string from a barcode present on a device label or package may identify the instance, include names given to the device in local usage, or may identify the type of device. If the identifier identifies the type of device, Device.type element should be used. The identifier is typically valued if the serialNumber or lotNumber is not valued and represents a different type of identifier.  However, it is permissible to still include those identifiers in DeviceDefinition.identifier with the appropriate identifier.type." />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier-sequence-no" />
      </type>
    </element>
    <element id="Device.displayName">
      <path value="Device.displayName" />
      <max value="0" />
    </element>
    <element id="Device.definition">
      <path value="Device.definition" />
      <max value="0" />
    </element>
    <element id="Device.udiCarrier">
      <path value="Device.udiCarrier" />
      <max value="1" />
    </element>
    <element id="Device.udiCarrier.id">
      <path value="Device.udiCarrier.id" />
      <max value="0" />
    </element>
    <element id="Device.udiCarrier.extension">
      <path value="Device.udiCarrier.extension" />
      <max value="0" />
    </element>
    <element id="Device.udiCarrier.modifierExtension">
      <path value="Device.udiCarrier.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Device.availabilityStatus">
      <path value="Device.availabilityStatus" />
      <max value="0" />
    </element>
    <element id="Device.biologicalSourceEvent">
      <path value="Device.biologicalSourceEvent" />
      <max value="0" />
    </element>
    <element id="Device.manufacturer">
      <path value="Device.manufacturer" />
      <definition value="Name of the manufacturer." />
    </element>
    <element id="Device.manufactureDate">
      <path value="Device.manufactureDate" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/manufactureDate`: The date and time when the device was manufactured.&#xA;- `content/Composition/section/entry/Procedure/used/Device/manufactureDate`: Date and time the device was manufactured." />
    </element>
    <element id="Device.expirationDate">
      <path value="Device.expirationDate" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/expiry`: The date and time beyond which this device is no longer valid or should not be used.&#xA;- `content/Composition/section/entry/Procedure/used/Device/expiry`: Date and time beyond which the device should no longer be used." />
    </element>
    <element id="Device.name">
      <path value="Device.name" />
      <max value="0" />
    </element>
    <element id="Device.modelNumber">
      <path value="Device.modelNumber" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/model`: Model identifier assigned by the manufacturer to identify the product type.&#xA;- `content/Composition/section/entry/Procedure/used/Device/model`: Manufacturer model identifier of the device." />
    </element>
    <element id="Device.partNumber">
      <path value="Device.partNumber" />
      <max value="0" />
    </element>
    <element id="Device.category">
      <path value="Device.category" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.synapxe.sg/ValueSet/device-category" />
      </binding>
    </element>
    <element id="Device.category.coding.system">
      <path value="Device.category.coding.system" />
      <patternUri value="http://hl7.org/fhir/device-category" />
    </element>
    <element id="Device.type">
      <path value="Device.type" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/type`: The type of the device. Code or identifier used to identify a kind of device.&#xA;- `content/Composition/section/entry/Procedure/used/Device/type`: The type of the device." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.synapxe.sg/ValueSet/device-type" />
      </binding>
    </element>
    <element id="Device.version">
      <path value="Device.version" />
      <max value="1" />
    </element>
    <element id="Device.version.id">
      <path value="Device.version.id" />
      <max value="0" />
    </element>
    <element id="Device.version.extension">
      <path value="Device.version.extension" />
      <max value="0" />
    </element>
    <element id="Device.version.modifierExtension">
      <path value="Device.version.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Device.version.type">
      <path value="Device.version.type" />
      <max value="0" />
    </element>
    <element id="Device.version.component">
      <path value="Device.version.component" />
      <max value="0" />
    </element>
    <element id="Device.version.installDate">
      <path value="Device.version.installDate" />
      <max value="0" />
    </element>
    <element id="Device.version.value">
      <path value="Device.version.value" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/version`: Version of the device if the device has multiple releases under the same model or contains software or firmware.&#xA;- `content/Composition/section/entry/Procedure/used/Device/version`: Version of the device." />
    </element>
    <element id="Device.conformsTo">
      <path value="Device.conformsTo" />
      <max value="0" />
    </element>
    <element id="Device.property">
      <path value="Device.property" />
      <max value="0" />
    </element>
    <element id="Device.mode">
      <path value="Device.mode" />
      <max value="0" />
    </element>
    <element id="Device.cycle">
      <path value="Device.cycle" />
      <max value="0" />
    </element>
    <element id="Device.duration">
      <path value="Device.duration" />
      <max value="0" />
    </element>
    <element id="Device.owner">
      <path value="Device.owner" />
      <max value="0" />
    </element>
    <element id="Device.contact">
      <path value="Device.contact" />
      <max value="0" />
    </element>
    <element id="Device.location">
      <path value="Device.location" />
      <max value="0" />
    </element>
    <element id="Device.url">
      <path value="Device.url" />
      <max value="0" />
    </element>
    <element id="Device.endpoint">
      <path value="Device.endpoint" />
      <max value="0" />
    </element>
    <element id="Device.gateway">
      <path value="Device.gateway" />
      <max value="0" />
    </element>
    <element id="Device.note">
      <path value="Device.note" />
      <max value="1" />
      <type>
        <code value="Annotation" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-annotation" />
      </type>
    </element>
    <element id="Device.note.text">
      <path value="Device.note.text" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/focalDevice/manipulatedDevice/note/text`: The text of the annotation.&#xA;- `content/Composition/section/entry/Procedure/used/Device/note/text`: Annotation text describing the device." />
    </element>
    <element id="Device.safety">
      <path value="Device.safety" />
      <max value="0" />
    </element>
    <element id="Device.parent">
      <path value="Device.parent" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>