<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ea7a2c36-3940-4621-9be8-01dca5721e2a" />
  <meta>
    <versionId value="3" />
    <lastUpdated value="2016-12-16T12:58:16.028+00:00" />
  </meta>
  <url value="http://helse-nord.no/FHIR/profiles/Workflow.Notification/Device" />
  <name value="Workflow.Notification.Device" />
  <status value="draft" />
  <description value="StructureDefinition for the Workflow.Notification Device Resource" />
  <fhirVersion value="1.0.2" />
  <kind value="resource" />
  <constrainedType value="Device" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Device" />
  <differential>
    <element>
      <path value="Device" />
      <type>
        <code value="Device" />
      </type>
    </element>
    <element>
      <path value="Device.identifier" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.type.id" />
      <representation value="xmlAttr" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.type.coding" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.type.text" />
      <short value="Type of device" />
      <definition value="Text that represent the device type." />
      <comments value="Device is used to define the message recipient of the communication request, and requires a type." />
      <requirements value="Because type is mandatory. Use the default value (notificationrecipient)." />
      <defaultValueString value="notificationrecipient" />
      <exampleString value="notificationrecipient" />
    </element>
    <element>
      <path value="Device.note" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.status" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.manufacturer" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.model" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.version" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.manufactureDate" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.expiry" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.udi" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.lotNumber" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.owner" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.location" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.patient" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.contact" />
      <short value="Notification recipient address" />
      <definition value="The 'to' address that the notification will be sent to." />
      <comments value="One of the contact entries should match (not literally) the notification message type defined in the CommunicationRequest.medium element. System define communication transfer type, and value define the address to send to." />
    </element>
    <element>
      <path value="Device.contact.id" />
      <representation value="xmlAttr" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.contact.system" />
      <definition value="Telecommunications type used to send the notification, e.g. phone/email/etc." />
      <requirements value="To make sure the value matches the notification medium type." />
      <meaningWhenMissing value="The value element of that contact entry willl be ignored." />
      <exampleCode value="phone" />
    </element>
    <element>
      <path value="Device.contact.value" />
      <short value="The address to send to" />
      <definition value="The address to send to." />
      <requirements value="To supply the to address when sending a notification message." />
      <exampleString value="12345678" />
    </element>
    <element>
      <path value="Device.contact.use" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.contact.rank" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.contact.period" />
      <max value="0" />
    </element>
    <element>
      <path value="Device.url" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>