{
  "resourceType": "StructureDefinition",
  "id": "CommunicationABeReC",
  "url": "https://www.alberta.ca/fhir/aberec/StructureDefinition/CommunicationABeReC",
  "version": "1.1.0",
  "name": "CommunicationABeReC",
  "title": "Communication (AB:eReC)",
  "status": "draft",
  "description": "This profile defines a set of constraints to the FHIR Communication resource for use in Alberta eReferral and eConsult (AB:eReC). It re-profiles the CA-eReC Communication profile and it includes constraints that represent the minimum expectations for the Communication resource when used in the AB:eReC.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Communication",
  "baseDefinition": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Communication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Communication.basedOn",
        "path": "Communication.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/ServiceRequestABeReC"
            ]
          }
        ]
      },
      {
        "id": "Communication.inResponseTo",
        "path": "Communication.inResponseTo",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/CommunicationABeReC"
            ]
          }
        ]
      },
      {
        "id": "Communication.category",
        "path": "Communication.category",
        "binding": {
          "strength": "extensible",
          "valueSet": "https://www.alberta.ca/fhir/ValueSet/referral-communication-category-ab"
        }
      },
      {
        "id": "Communication.subject",
        "path": "Communication.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/PatientABeReC"
            ]
          }
        ]
      },
      {
        "id": "Communication.recipient",
        "path": "Communication.recipient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/PractitionerRoleABeReC",
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/HealthcareServiceABeReC"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.recipient.reference",
        "path": "Communication.recipient.reference",
        "mustSupport": true
      },
      {
        "id": "Communication.recipient.identifier",
        "path": "Communication.recipient.identifier",
        "mustSupport": true
      },
      {
        "id": "Communication.recipient.identifier.system",
        "path": "Communication.recipient.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.recipient.identifier.value",
        "path": "Communication.recipient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.sender",
        "path": "Communication.sender",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/PractitionerRoleABeReC",
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/HealthcareServiceABeReC"
            ]
          }
        ]
      },
      {
        "id": "Communication.payload",
        "path": "Communication.payload",
        "min": 1
      },
      {
        "id": "Communication.payload.content[x]",
        "path": "Communication.payload.content[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Communication.payload.content[x]:contentReference",
        "path": "Communication.payload.content[x]",
        "sliceName": "contentReference",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://www.alberta.ca/fhir/aberec/StructureDefinition/DocumentReferenceABeReC"
            ]
          }
        ]
      }
    ]
  }
}