<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-device-medical" />
  <url value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-device-medical" />
  <version value="0.1.2" />
  <name value="DeviceProfileMedical" />
  <title value="Device Profile (Medical and Non-medical)" />
  <status value="draft" />
  <date value="2026-01-09" />
  <publisher value="HL7 Canada - FHIR Implementation Work Group" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="https://infocentral.infoway-inforoute.ca/en/collaboration/wg/fhir-implementations" />
    </telecom>
  </contact>
  <description value="Proposed constraints on the Device resource for the minimal set of data to query and retrieve a medical or non-medical device." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="CA" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <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" />
  <differential>
    <element id="Device">
      <path value="Device" />
      <short value="Device Profile" />
      <definition value="The Device Profile is based upon the core FHIR Device Resource" />
    </element>
    <element id="Device.identifier">
      <path value="Device.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Device.identifier:EUI-64">
      <path value="Device.identifier" />
      <sliceName value="EUI-64" />
      <short value="IEEE 64-bit Extended Unique Identifier (EUI-64)" />
      <max value="1" />
    </element>
    <element id="Device.identifier:EUI-64.system">
      <path value="Device.identifier.system" />
      <short value="EUI-64 system identifier" />
      <min value="1" />
      <patternUri value="urn:oid:1.2.840.10004.1.1.1.0.0.1.0.0.1.2680" />
    </element>
    <element id="Device.identifier:EUI-64.value">
      <path value="Device.identifier.value" />
      <min value="1" />
    </element>
    <element id="Device.identifier:EUI-48">
      <path value="Device.identifier" />
      <sliceName value="EUI-48" />
      <short value="MAC Transport address identifier (EUI-48)" />
      <max value="1" />
    </element>
    <element id="Device.identifier:EUI-48.system">
      <path value="Device.identifier.system" />
      <short value="EUI-48 system identifier" />
      <min value="1" />
      <patternUri value="http://terminology.hl7.org/fhir/sid/eui-48" />
    </element>
    <element id="Device.identifier:EUI-48.value">
      <path value="Device.identifier.value" />
      <min value="1" />
    </element>
    <element id="Device.type">
      <path value="Device.type" />
      <min value="1" />
      <binding>
        <strength value="extensible" />
        <description value="Codes to identify medical devices" />
        <valueSet value="http://hl7.org/fhir/ValueSet/device-kind" />
      </binding>
    </element>
    <element id="Device.version">
      <path value="Device.version" />
    </element>
    <element id="Device.patient">
      <path value="Device.patient" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="Device.parent">
      <path value="Device.parent" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-device-medical" />
      </type>
    </element>
  </differential>
</StructureDefinition>