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