{
  "resourceType": "StructureDefinition",
  "id": "ca-on-eReferral-profile-Communication",
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Communication",
  "version": "1.2.3",
  "name": "EReferralCommunication",
  "title": "Communication",
  "status": "draft",
  "description": "Communication resource is used to achieve the bi-directional communication between two systems. The Communication resource can be used to ask questions regarding a referral, request a referral be updated with missing information, or request additional information not covered by the specific referral dataset.",
  "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.meta",
        "path": "Communication.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.meta.profile",
        "path": "Communication.meta.profile",
        "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Communication|1.2.2 `_**\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.identifier",
        "path": "Communication.identifier",
        "mustSupport": true
      },
      {
        "id": "Communication.identifier.system",
        "path": "Communication.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.identifier.value",
        "path": "Communication.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.instantiatesCanonical",
        "path": "Communication.instantiatesCanonical",
        "max": "1"
      },
      {
        "id": "Communication.instantiatesUri",
        "path": "Communication.instantiatesUri",
        "max": "1"
      },
      {
        "id": "Communication.basedOn",
        "path": "Communication.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-ServiceRequest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.basedOn.reference",
        "path": "Communication.basedOn.reference",
        "mustSupport": true
      },
      {
        "id": "Communication.partOf",
        "path": "Communication.partOf",
        "max": "1"
      },
      {
        "id": "Communication.inResponseTo",
        "path": "Communication.inResponseTo",
        "mustSupport": true
      },
      {
        "id": "Communication.status",
        "path": "Communication.status",
        "mustSupport": true
      },
      {
        "id": "Communication.category",
        "path": "Communication.category",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/communication-category"
        }
      },
      {
        "id": "Communication.category.coding",
        "path": "Communication.category.coding",
        "mustSupport": false,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ehealthontario.ca/fhir/ValueSet/communication-category"
        }
      },
      {
        "id": "Communication.category.coding.system",
        "path": "Communication.category.coding.system",
        "min": 1,
        "mustSupport": false
      },
      {
        "id": "Communication.category.coding.code",
        "path": "Communication.category.coding.code",
        "min": 1,
        "mustSupport": false
      },
      {
        "id": "Communication.category.coding.display",
        "path": "Communication.category.coding.display",
        "min": 1,
        "mustSupport": false
      },
      {
        "id": "Communication.priority",
        "path": "Communication.priority",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/request-priority"
        }
      },
      {
        "id": "Communication.medium",
        "path": "Communication.medium",
        "max": "1"
      },
      {
        "id": "Communication.subject",
        "path": "Communication.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.subject.reference",
        "path": "Communication.subject.reference",
        "mustSupport": true
      },
      {
        "id": "Communication.subject.identifier",
        "path": "Communication.subject.identifier",
        "mustSupport": true
      },
      {
        "id": "Communication.subject.identifier.system",
        "path": "Communication.subject.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Communication.subject.identifier.value",
        "path": "Communication.subject.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Communication.topic.coding.code",
        "path": "Communication.topic.coding.code",
        "max": "0"
      },
      {
        "id": "Communication.topic.coding.userSelected",
        "path": "Communication.topic.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Communication.about",
        "path": "Communication.about",
        "max": "1"
      },
      {
        "id": "Communication.sent",
        "path": "Communication.sent",
        "mustSupport": true
      },
      {
        "id": "Communication.received",
        "path": "Communication.received",
        "mustSupport": true
      },
      {
        "id": "Communication.recipient",
        "path": "Communication.recipient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/HealthcareService"
            ]
          }
        ]
      },
      {
        "id": "Communication.sender",
        "path": "Communication.sender",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Endpoint"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.sender.reference",
        "path": "Communication.sender.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Communication.sender.identifier",
        "path": "Communication.sender.identifier",
        "mustSupport": true
      },
      {
        "id": "Communication.sender.identifier.system",
        "path": "Communication.sender.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Communication.sender.identifier.value",
        "path": "Communication.sender.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Communication.reasonCode",
        "path": "Communication.reasonCode",
        "max": "1"
      },
      {
        "id": "Communication.reasonReference",
        "path": "Communication.reasonReference",
        "max": "1"
      },
      {
        "id": "Communication.payload",
        "path": "Communication.payload",
        "mustSupport": true
      },
      {
        "id": "Communication.payload.content[x]",
        "path": "Communication.payload.content[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-DocumentReference"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Communication.note.author[x]",
        "path": "Communication.note.author[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}