{
  "resourceType": "StructureDefinition",
  "id": "Communication",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Request &amp; Response"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://portal.esysta.com/fhir/StructureDefinition/Communication",
  "version": "1.0",
  "name": "EsystaCommunication",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Communication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Communication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Communication.extension",
        "path": "Communication.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "max": "1"
      },
      {
        "id": "Communication.extension:messageRead",
        "path": "Communication.extension",
        "sliceName": "messageRead",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://portal.esysta.com/fhir/StructureDefinition/MessageRead"
            ]
          }
        ]
      },
      {
        "id": "Communication.identifier",
        "path": "Communication.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Communication.topic",
        "path": "Communication.topic",
        "min": 1
      },
      {
        "id": "Communication.sent",
        "path": "Communication.sent",
        "min": 1
      },
      {
        "id": "Communication.recipient",
        "path": "Communication.recipient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://portal.esysta.com/fhir/StructureDefinition/DiabetesPatient",
              "http://portal.esysta.com/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Communication.sender",
        "path": "Communication.sender",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://portal.esysta.com/fhir/StructureDefinition/DiabetesPatient",
              "http://portal.esysta.com/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Communication.payload",
        "path": "Communication.payload",
        "min": 1,
        "max": "1"
      }
    ]
  }
}