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