{
  "resourceType" : "Bundle",
  "id" : "bundle-referral-completed",
  "meta" : {
    "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-mnch-referral-bundle"]
  },
  "identifier" : {
    "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/ng-bundle-identifier-cs",
    "value" : "BND-REF-0004"
  },
  "type" : "transaction",
  "timestamp" : "2025-10-17T02:30:00+01:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:c0a1f00d-4433-42aa-acdd-eeff00112233",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "NgPatient-ADA-001",
      "meta" : {
        "lastUpdated" : "2023-10-28T08:00:00+01:00",
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-patient"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_NgPatient-ADA-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient NgPatient-ADA-001</b></p><a name=\"NgPatient-ADA-001\"> </a><a name=\"hcNgPatient-ADA-001\"> </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\">Last updated: 2023-10-28 08:00:00+0100</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ng-patient.html\">NG Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Ada Chukwu  Female, DoB: 1997-03-02 ( mobile: 08067467012)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr></table></div>"
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/patient-identifier-cs",
            "code" : "MOBILE",
            "display" : "mobile"
          }]
        },
        "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/patient-identifier-cs",
        "value" : "08067467012"
      }],
      "active" : true,
      "name" : [{
        "family" : "Chukwu",
        "given" : ["Ada"]
      }],
      "gender" : "female",
      "birthDate" : "1997-03-02"
    },
    "request" : {
      "method" : "POST",
      "url" : "Patient"
    }
  },
  {
    "fullUrl" : "urn:uuid:c0a1f00d-7f9c-2d3e-a6f0-1b2c3d4e5f22",
    "resource" : {
      "resourceType" : "ServiceRequest",
      "id" : "NgServiceRequest-ANC-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-service-request"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"ServiceRequest_NgServiceRequest-ANC-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ServiceRequest NgServiceRequest-ANC-001</b></p><a name=\"NgServiceRequest-ANC-001\"> </a><a name=\"hcNgServiceRequest-ANC-001\"> </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-ng-service-request.html\">NG ServiceRequest</a></p></div><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>priority</b>: ASAP</p><p><b>code</b>: <span title=\"Codes:\">Urgent ANC specialist review — ?Preeclampsia</span></p><p><b>subject</b>: <a href=\"Bundle-bundle-referral-completed.html#urn-uuid-c0a1f00d-4433-42aa-acdd-eeff00112233\">Ada Chukwu  Female, DoB: 1997-03-02 ( mobile: 08067467012)</a></p><p><b>reasonCode</b>: <span title=\"Codes:\">BP 160/105; proteinuria +2; dizziness; high-risk pregnancy</span></p></div>"
      },
      "status" : "active",
      "intent" : "order",
      "priority" : "asap",
      "code" : {
        "text" : "Urgent ANC specialist review — ?Preeclampsia"
      },
      "subject" : {
        "reference" : "urn:uuid:c0a1f00d-4433-42aa-acdd-eeff00112233"
      },
      "reasonCode" : [{
        "text" : "BP 160/105; proteinuria +2; dizziness; high-risk pregnancy"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "ServiceRequest"
    }
  },
  {
    "fullUrl" : "urn:uuid:c0a1f00d-6071-4a82-ab93-cd34ef567026",
    "resource" : {
      "resourceType" : "Task",
      "id" : "NgTask-REF-INIT-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-task"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Task_NgTask-REF-INIT-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Task NgTask-REF-INIT-001</b></p><a name=\"NgTask-REF-INIT-001\"> </a><a name=\"hcNgTask-REF-INIT-001\"> </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-ng-task.html\">NG Task</a></p></div><p><b>status</b>: Completed</p><p><b>intent</b>: order</p><p><b>code</b>: <span title=\"Codes:\">Process MNCH referral</span></p><p><b>lastModified</b>: 2025-10-17 02:25:00+0100</p><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:\">Outcome</span></td><td>Stabilized; BP 145/95; FHR reassuring; admit 48h; PHC weekly BP checks; specialist review at 32w.</td></tr></table></div>"
      },
      "status" : "completed",
      "intent" : "order",
      "code" : {
        "text" : "Process MNCH referral"
      },
      "lastModified" : "2025-10-17T02:25:00+01:00",
      "output" : [{
        "type" : {
          "text" : "Outcome"
        },
        "valueString" : "Stabilized; BP 145/95; FHR reassuring; admit 48h; PHC weekly BP checks; specialist review at 32w."
      }]
    },
    "request" : {
      "method" : "PUT",
      "url" : "Task"
    }
  },
  {
    "fullUrl" : "urn:uuid:c0a1f00d-4433-22aa-ccdd-eeff00112233",
    "resource" : {
      "resourceType" : "Communication",
      "id" : "NgCommunication-REF-COMPLETE-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-communication"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Communication_NgCommunication-REF-COMPLETE-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Communication NgCommunication-REF-COMPLETE-001</b></p><a name=\"NgCommunication-REF-COMPLETE-001\"> </a><a name=\"hcNgCommunication-REF-COMPLETE-001\"> </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-ng-communication.html\">NG Communication</a></p></div><p><b>status</b>: Completed</p><p><b>category</b>: <span title=\"Codes:\">Referral Feedback</span></p><p><b>subject</b>: <a href=\"Bundle-bundle-referral-completed.html#urn-uuid-c0a1f00d-4433-42aa-acdd-eeff00112233\">Ada Chukwu  Female, DoB: 1997-03-02 ( mobile: 08067467012)</a></p><p><b>sent</b>: 2025-10-17 02:30:00+0100</p><h3>Payloads</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Content[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>Ada stabilized. Keep weekly BP at PHC; specialist to see her at 32 weeks. Thank you for timely referral.</td></tr></table></div>"
      },
      "status" : "completed",
      "category" : [{
        "text" : "Referral Feedback"
      }],
      "subject" : {
        "reference" : "urn:uuid:c0a1f00d-4433-42aa-acdd-eeff00112233"
      },
      "sent" : "2025-10-17T02:30:00+01:00",
      "payload" : [{
        "contentString" : "Ada stabilized. Keep weekly BP at PHC; specialist to see her at 32 weeks. Thank you for timely referral."
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Communication"
    }
  }]
}