<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://telus.com//fhir/patientChart/StructureDefinition/provenance-device" />
  <name value="ProvenanceDevice" />
  <status value="draft" />
  <description value="This profile provides details that are captured for the device in the context of provenance" />
  <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" />
      <mustSupport value="true" />
    </element>
    <element id="Device.id">
      <path value="Device.id" />
      <comment value="Usage Note:   This will usually be a GUID that is assigned by the sending application.&#xD;&#xA;&#xD;&#xA;The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
      <mustSupport value="true" />
    </element>
    <element id="Device.meta">
      <path value="Device.meta" />
      <mustSupport value="true" />
    </element>
    <element id="Device.meta.lastUpdated">
      <path value="Device.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="Device.meta.source">
      <path value="Device.meta.source" />
      <mustSupport value="true" />
    </element>
    <element id="Device.meta.profile">
      <path value="Device.meta.profile" />
      <comment value="Usage:    This will be determined by each implementation; this may be useful for validation of message instnaces against this profile.&#xD;&#xA;&#xD;&#xA;It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set." />
      <mustSupport value="true" />
    </element>
    <element id="Device.identifier">
      <path value="Device.identifier" />
      <comment value="Conformance Rule:   Application Instance Identifier is issued by the EMR and must be unique.    &#xD;&#xA;Usage Notes:   Consider situations where a single app instance is shared across multiple locations or orgs, and where a single physical location or organizations could have multiple multiple app instances.    Generally speaking, an application instance is typically segmentation by patient base.   &#xD;&#xA;Example:   urn:telus:emr:pss:1234&#xD;&#xA;&#xD;&#xA;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." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Device.identifier.system">
      <path value="Device.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="Device.identifier.value">
      <path value="Device.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Device.manufacturer">
      <path value="Device.manufacturer" />
      <comment value="Usage Note:   This will be populated with the manufacturer as known.  For example, this will be &quot;TELUS Health&quot; for all TELUS EMRs.&#xD;&#xA;&#xD;&#xA;Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <mustSupport value="true" />
    </element>
    <element id="Device.deviceName">
      <path value="Device.deviceName" />
      <comment value="Conformance Rule:  This must be populated when known.   This is the user friendly name of the physical device or application instance.    eg ,  PEI EMR,  4th Floor EKG,  River Room, Mary's Computer,  TimelyCareBilling, Concordia" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Device.deviceName.name">
      <path value="Device.deviceName.name" />
      <mustSupport value="true" />
    </element>
    <element id="Device.deviceName.type">
      <path value="Device.deviceName.type" />
      <comment value="Conformance Rule:   This will always be the user-friendly-name &#xD;&#xA;&#xD;&#xA;&#xD;&#xA;Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <mustSupport value="true" />
    </element>
    <element id="Device.modelNumber">
      <path value="Device.modelNumber" />
      <comment value="Conformance Rule:   This is the name of the EMR software; examples:   PS Suite, Collaborative Health Record, Med Access, NetMedical&#xD;&#xA;&#xD;&#xA;Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Device.version">
      <path value="Device.version" />
      <comment value="Conformance Rule:   The version number as assigned by the application" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Device.version.value">
      <path value="Device.version.value" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>