{
  "resourceType": "StructureDefinition",
  "id": "c046da46-c2cf-41a3-8485-df7a19863e88",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-02-20T13:21:32.905+00:00"
  },
  "url": "http://helse-nord.no/fhir/StructureDefinition/Workflow.Notification/CommunicationRequest_HN",
  "version": "1.0",
  "name": "CommunicationRequest Helse Nord",
  "title": "CommunicationRequest Helse Nord",
  "status": "draft",
  "date": "2017-08-30T12:32:55.716+00:00",
  "publisher": "Helse Nord IKT",
  "description": "Helse Nord profile for CommunicationRequest",
  "purpose": "Profile for CommunicationRequest in Helse Nord, primarily or firstly for SMS communication.",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "CommunicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CommunicationRequest",
        "path": "CommunicationRequest",
        "comment": "CommunicationRequest HelseNord notification service."
      },
      {
        "id": "CommunicationRequest.implicitRules",
        "path": "CommunicationRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.language",
        "path": "CommunicationRequest.language",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.identifier",
        "path": "CommunicationRequest.identifier",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.basedOn",
        "path": "CommunicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.replaces",
        "path": "CommunicationRequest.replaces",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.groupIdentifier",
        "path": "CommunicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category",
        "path": "CommunicationRequest.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.category.coding",
        "path": "CommunicationRequest.category.coding",
        "code": [
          {
            "system": "http://helse-nord.no/fhir/coding/system/communicationtype",
            "version": "1.0",
            "code": "OneWay",
            "display": "One way SMS",
            "userSelected": false
          },
          {
            "system": "http://helse-nord.no/fhir/coding/system/communicationtype",
            "version": "1.0",
            "code": "TwoWay",
            "display": "Two way SMS"
          }
        ],
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "max": "2",
        "binding": {
          "strength": "required",
          "description": "CommunicationType"
        }
      },
      {
        "id": "CommunicationRequest.category.coding.system",
        "path": "CommunicationRequest.category.coding.system",
        "short": "Helse Nord specific system to determine communication type",
        "definition": "The code system defines whether this is a OneWay or TwoWay communication when the medium is SMS.",
        "min": 1
      },
      {
        "id": "CommunicationRequest.category.coding.code",
        "path": "CommunicationRequest.category.coding.code",
        "min": 1
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCommunicationType",
        "path": "CommunicationRequest.category.coding",
        "sliceName": "sliceCommunicationType",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCommunicationType.system",
        "path": "CommunicationRequest.category.coding.system",
        "fixedUri": "http://helse-nord.no/fhir/coding/system/communicationtype"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCommunicationType.version",
        "path": "CommunicationRequest.category.coding.version",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCommunicationType.code",
        "path": "CommunicationRequest.category.coding.code",
        "code": [
          {
            "system": "http://helse-nord.no/fhir/coding/system/communicationtype",
            "code": "Oneway"
          },
          {
            "system": "http://helse-nord.no/fhir/coding/system/communicationtype",
            "code": "Twoway"
          }
        ]
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCommunicationType.display",
        "path": "CommunicationRequest.category.coding.display",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCommunicationType.userSelected",
        "path": "CommunicationRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCategory",
        "path": "CommunicationRequest.category.coding",
        "sliceName": "sliceCategory",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCategory.system",
        "path": "CommunicationRequest.category.coding.system",
        "fixedUri": "http://hl7.org/fhir/communication-category"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCategory.version",
        "path": "CommunicationRequest.category.coding.version",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCategory.display",
        "path": "CommunicationRequest.category.coding.display",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category.coding:sliceCategory.userSelected",
        "path": "CommunicationRequest.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.priority",
        "path": "CommunicationRequest.priority",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.medium",
        "path": "CommunicationRequest.medium",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.medium.coding",
        "path": "CommunicationRequest.medium.coding",
        "code": [
          {
            "code": "SMS",
            "display": "SMS"
          },
          {
            "code": "FLASH",
            "display": "FLASH",
            "userSelected": false
          }
        ],
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.medium.coding.system",
        "path": "CommunicationRequest.medium.coding.system",
        "fixedUri": "http://helse-nord.no/fhir/coding/system/communicationmedium"
      },
      {
        "id": "CommunicationRequest.recipient",
        "path": "CommunicationRequest.recipient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/fhir/StructureDefinition/Workflow.Notification/Device_HN",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.topic",
        "path": "CommunicationRequest.topic",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.occurrence[x]:occurrenceDateTime",
        "path": "CommunicationRequest.occurrenceDateTime",
        "sliceName": "occurrenceDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "CommunicationRequest.sender",
        "path": "CommunicationRequest.sender",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://helse-nord.no/fhir/StructureDefinition/Clinical.Organization/Organization_HN",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "CommunicationRequest.requester",
        "path": "CommunicationRequest.requester",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.reasonCode",
        "path": "CommunicationRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.reasonReference",
        "path": "CommunicationRequest.reasonReference",
        "max": "0"
      }
    ]
  }
}