<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Device-uv-ips" />
  <meta>
    <lastUpdated value="2018-02-14T10:49:41.487+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">This profile represents the constraints applied to the Device resource by the International Patient Summary (IPS) FHIR Implementation Guide, based on FHIR R4. A device used by or implanted on the patient is described in the patient summary as an instance of a Device resource constrained by this profile.</div>
  </text>
  <url value="http://hl7.org/fhir/uv/ips/StructureDefinition/Device-uv-ips" />
  <version value="0.2.0" />
  <name value="Device_uv_ips" />
  <title value="Device (IPS)" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2018-02-14T00:00:00+00:00" />
  <publisher value="HL7 International" />
  <description value="This profile represents the constraints applied to the Device resource by the International Patient Summary (IPS) FHIR Implementation Guide, based on FHIR R4. A device used by or implanted on the patient is described in the patient summary as an instance of a Device resource constrained by this profile." />
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
      <code value="001" />
      <display value="World" />
    </coding>
  </jurisdiction>
  <purpose value="This profile constrains the representation of a medical device used by or impanted on the patient, in the context of the international patient summary as specified by the IPS project of HL7 International." />
  <fhirVersion value="4.0.0" />
  <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="udi" />
    <uri value="http://fda.gov/UDI" />
    <name value="UDI Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Device" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Device" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Device">
      <path value="Device" />
      <comment value="This profile applies the rules defined by HL7 International for representing the UDI in the FHIR standard, by the document &quot;Medical Devices and Unique Device Identification (UDI) Pattern, Release 1&quot;" />
      <mustSupport value="true" />
    </element>
    <element id="Device.id">
      <path value="Device.id" />
      <mustSupport value="true" />
    </element>
    <element id="Device.meta">
      <path value="Device.meta" />
      <mustSupport value="true" />
    </element>
    <element id="Device.identifier">
      <path value="Device.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="Device.type">
      <path value="Device.type" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.system" />
        </discriminator>
        <description value="Discriminated by code system" />
        <rules value="open" />
      </slicing>
      <short value="Type of device.&#xD;&#xA;Preferably valued by using SNOMED CT.&#xD;&#xA;The absence of information, or of devices relevant for purpose of this IPS, shall be explicitly stated by using the codes included in the absent-or-unknown-devices-uv-ips value set." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <description value="The type of device" />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/medical-devices-uv-ips" />
      </binding>
    </element>
    <element id="Device.type:absentOrUnknownDevice">
      <path value="Device.type" />
      <sliceName value="absentOrUnknownDevice" />
      <definition value="Slice to be valued in case of no information or known absence of relevant devices for the purpose of this IPS" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="absentOrUnknownDevice" />
        </extension>
        <strength value="required" />
        <description value="Absent problem or unknown device" />
        <valueSet value="http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-devices-uv-ips" />
      </binding>
    </element>
    <element id="Device.type:absentOrUnknownDevice.coding">
      <path value="Device.type.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Device.type:absentOrUnknownDevice.coding.system">
      <path value="Device.type.coding.system" />
      <min value="1" />
      <max value="1" />
      <fixedUri value="http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips" />
      <mustSupport value="true" />
    </element>
    <element id="Device.patient">
      <path value="Device.patient" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Device.patient.reference">
      <path value="Device.patient.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>