{
  "resourceType": "StructureDefinition",
  "id": "c00e63f1-cab0-430e-b7b4-b318ce86a68a",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2016-12-16T12:58:03.399+00:00"
  },
  "url": "http://helse-nord.no/FHIR/profiles/Workflow.Notification/CommunicationRequest",
  "name": "Workflow.Notification.CommunicationRequest",
  "status": "draft",
  "description": "Structure definition for the CommunicationRequest resource used by the Workflow.Notification service",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "CommunicationRequest",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
  "differential": {
    "element": [
      {
        "path": "CommunicationRequest",
        "type": [
          {
            "code": "CommunicationRequest"
          }
        ]
      },
      {
        "path": "CommunicationRequest.identifier",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.identifier.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "CommunicationRequest.identifier.use",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.identifier.type",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.identifier.period",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.identifier.assigner",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category.coding",
        "max": "1"
      },
      {
        "path": "CommunicationRequest.category.coding.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category.coding.version",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category.coding.display",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.category.text",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.sender",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://helse-nord.no/FHIR/profiles/Workflow.Notification/Organization"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "path": "CommunicationRequest.recipient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://helse-nord.no/FHIR/profiles/Workflow.Notification/Device"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "path": "CommunicationRequest.payload",
        "definition": "The content/message payload that is to be transferred in the notification message.",
        "min": 1,
        "max": "1"
      },
      {
        "path": "CommunicationRequest.payload.id",
        "representation": [
          "xmlAttr"
        ],
        "definition": "Id for the element within a resource (for internal references). Used in this context to specify the type of contentString.",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.payload.contentString",
        "definition": "The communicated content. Defined as type String.",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "path": "CommunicationRequest.medium",
        "definition": "The channel that is to be used for this communication (e.g. email, fax).",
        "min": 1,
        "max": "1"
      },
      {
        "path": "CommunicationRequest.medium.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "CommunicationRequest.medium.coding",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.medium.text",
        "short": "Communication type",
        "definition": "Specifies the channel of communication type that will be used when sending the notification message.",
        "min": 1,
        "exampleString": "Sms"
      },
      {
        "path": "CommunicationRequest.requester",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.status",
        "min": 1,
        "defaultValueCode": "requested",
        "exampleCode": "requested"
      },
      {
        "path": "CommunicationRequest.encounter",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.scheduled[x]",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.reason",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.requestedOn",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.subject",
        "max": "0"
      },
      {
        "path": "CommunicationRequest.priority",
        "max": "0"
      }
    ]
  }
}