<?xml version="1.0" encoding="UTF-8"?>

<Task xmlns="http://hl7.org/fhir">
  <id value="ExampleERefTaskReferredOnward"/>
  <meta>
    <profile value="urn://example.com/ph-ereferral/fhir/StructureDefinition/ereferral-task"/>
  </meta>
  <language value="en"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Task ExampleERefTaskReferredOnward</b></p><a name="ExampleERefTaskReferredOnward"> </a><a name="hcExampleERefTaskReferredOnward"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-ereferral-task.html">EReferral Task</a></p></div><p><b>status</b>: Rejected</p><p><b>statusReason</b>: <span title="Codes:{urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow capacity-full}">Capacity full</span></p><p><b>businessStatus</b>: <span title="Codes:{urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow referred-onward}">Referred onward</span></p><p><b>intent</b>: order</p><p><b>code</b>: <span title="Codes:{http://snomed.info/sct 3457005}">eReferral for cardiology consultation</span></p><p><b>focus</b>: <a href="ServiceRequest-ExampleERefServiceRequestTask.html">ServiceRequest Referral to cardiology service</a></p><p><b>for</b>: <a href="Patient-ExampleERefPatientTask.html">Juan Dela Cruz  Male, DoB: 1965-07-20 ( urn:oid:2.16.840.1.113883.2.9.4.3.2#PH-123456789)</a></p><p><b>authoredOn</b>: 2025-03-15 09:30:00+0800</p><p><b>lastModified</b>: 2025-03-15 10:10:00+0800</p><p><b>requester</b>: <a href="PractitionerRole-ExampleERefPractitionerRoleRequester.html">PractitionerRole Medical practitioner</a></p><p><b>owner</b>: <a href="Organization-ExampleERefOrganizationReceiving.html">Organization Manila General Hospital</a></p><p><b>note</b>: , </p><blockquote><div><p>New referral for patient with chest pain. Awaiting receiving-facility response.</p>
</div></blockquote><blockquote><div><p>Manila General Hospital reports capacity full and directs transfer to Eastern District Medical Center.</p>
</div></blockquote><h3>Outputs</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow onward-referral-request}">Onward referral request</span></td><td><span title="Codes:{urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow onward-referral-request}">Onward ServiceRequest created: ExampleERefServiceRequestOnward</span></td></tr></table></div>
  </text>
  <status value="rejected"/>
  <statusReason>
    <coding>
      <system value="urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow"/>
      <code value="capacity-full"/>
      <display value="Capacity full"/>
    </coding>
  </statusReason>
  <businessStatus>
    <coding>
      <system value="urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow"/>
      <code value="referred-onward"/>
      <display value="Referred onward"/>
    </coding>
  </businessStatus>
  <intent value="order"/>
  <code>
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="3457005"/>
      <display value="Patient referral"/>
    </coding>
    <text value="eReferral for cardiology consultation"/>
  </code>
  <focus>
    <reference value="ServiceRequest/ExampleERefServiceRequestTask"/>
  </focus>
  <for>
    <reference value="Patient/ExampleERefPatientTask"/>
  </for>
  <authoredOn value="2025-03-15T09:30:00+08:00"/>
  <lastModified value="2025-03-15T10:10:00+08:00"/>
  <requester>
    <reference value="PractitionerRole/ExampleERefPractitionerRoleRequester"/>
  </requester>
  <owner>
    <reference value="Organization/ExampleERefOrganizationReceiving"/>
  </owner>
  <note>
    <text value="New referral for patient with chest pain. Awaiting receiving-facility response."/>
  </note>
  <note>
    <text value="Manila General Hospital reports capacity full and directs transfer to Eastern District Medical Center."/>
  </note>
  <output>
    <type>
      <coding>
        <system value="urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow"/>
        <code value="onward-referral-request"/>
        <display value="Onward referral request"/>
      </coding>
    </type>
    <valueCodeableConcept>
      <coding>
        <system value="urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow"/>
        <code value="onward-referral-request"/>
        <display value="Onward referral request"/>
      </coding>
      <text value="Onward ServiceRequest created: ExampleERefServiceRequestOnward"/>
    </valueCodeableConcept>
  </output>
</Task>