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

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="ereferral-workflow"/>
  <language value="en"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: CodeSystem ereferral-workflow</b></p><a name="ereferral-workflow"> </a><a name="hcereferral-workflow"> </a><p>This case-sensitive code system <code>urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow</code> defines the following codes:</p><table class="codes"><tr><td style="white-space:nowrap"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style="white-space:nowrap">received<a name="ereferral-workflow-received"> </a></td><td>Received</td><td>The receiving facility has acknowledged receipt of the referral and is reviewing whether it can take the case.</td></tr><tr><td style="white-space:nowrap">accepted<a name="ereferral-workflow-accepted"> </a></td><td>Accepted</td><td>The receiving facility can take the case and has given a positive transfer or service response.</td></tr><tr><td style="white-space:nowrap">rejected<a name="ereferral-workflow-rejected"> </a></td><td>Rejected</td><td>The receiving facility cannot take the case and no onward receiving facility is identified in the same response.</td></tr><tr><td style="white-space:nowrap">referred-onward<a name="ereferral-workflow-referred-onward"> </a></td><td>Referred onward</td><td>The receiving facility cannot take the case and directs the patient or referral to another specified facility.</td></tr><tr><td style="white-space:nowrap">capacity-full<a name="ereferral-workflow-capacity-full"> </a></td><td>Capacity full</td><td>The receiving facility reports that capacity is full.</td></tr><tr><td style="white-space:nowrap">onward-referral-request<a name="ereferral-workflow-onward-referral-request"> </a></td><td>Onward referral request</td><td>A ServiceRequest created or identified as the next referral request after the initial receiving facility refers the case onward.</td></tr><tr><td style="white-space:nowrap">consultation-summary<a name="ereferral-workflow-consultation-summary"> </a></td><td>Consultation summary</td><td>A summary of the referral service outcome.</td></tr></table></div>
  </text>
  <url value="urn://example.com/ph-ereferral/fhir/CodeSystem/ereferral-workflow"/>
  <version value="0.1.0"/>
  <name value="EReferralWorkflowCS"/>
  <title value="eReferral Workflow Code System"/>
  <status value="draft"/>
  <experimental value="false"/>
  <date value="2026-05-02T07:02:39+00:00"/>
  <publisher value="SILab CoP IG Accelerator (eReferral)"/>
  <contact>
    <name value="SILab CoP IG Accelerator (eReferral)"/>
    <telecom>
      <system value="url"/>
      <value value="https://github.com/UP-Manila-SILab"/>
    </telecom>
  </contact>
  <description value="Local workflow codes for Philippine eReferral receiving-facility responses and related referral coordination events."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="PH"/>
      <display value="Philippines"/>
    </coding>
  </jurisdiction>
  <caseSensitive value="true"/>
  <content value="complete"/>
  <count value="7"/>
  <concept>
    <code value="received"/>
    <display value="Received"/>
    <definition value="The receiving facility has acknowledged receipt of the referral and is reviewing whether it can take the case."/>
  </concept>
  <concept>
    <code value="accepted"/>
    <display value="Accepted"/>
    <definition value="The receiving facility can take the case and has given a positive transfer or service response."/>
  </concept>
  <concept>
    <code value="rejected"/>
    <display value="Rejected"/>
    <definition value="The receiving facility cannot take the case and no onward receiving facility is identified in the same response."/>
  </concept>
  <concept>
    <code value="referred-onward"/>
    <display value="Referred onward"/>
    <definition value="The receiving facility cannot take the case and directs the patient or referral to another specified facility."/>
  </concept>
  <concept>
    <code value="capacity-full"/>
    <display value="Capacity full"/>
    <definition value="The receiving facility reports that capacity is full."/>
  </concept>
  <concept>
    <code value="onward-referral-request"/>
    <display value="Onward referral request"/>
    <definition value="A ServiceRequest created or identified as the next referral request after the initial receiving facility refers the case onward."/>
  </concept>
  <concept>
    <code value="consultation-summary"/>
    <display value="Consultation summary"/>
    <definition value="A summary of the referral service outcome."/>
  </concept>
</CodeSystem>