{
  "resourceType" : "Bundle",
  "id" : "PreAuth-Response",
  "meta" : {
    "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-preauthorization-bundle"]
  },
  "type" : "collection",
  "entry" : [{
    "fullUrl" : "urn:uuid:aaabbbc2-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "NgPatient-PreAuth-001",
      "meta" : {
        "lastUpdated" : "2024-10-15T09: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-PreAuth-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient NgPatient-PreAuth-001</b></p><a name=\"NgPatient-PreAuth-001\"> </a><a name=\"hcNgPatient-PreAuth-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: 2024-10-15 09: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;\">Chika Okafor  Male, DoB: 1990-04-21 ( nin)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\">mobile/08031112233</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">21 Industrial Area Port Harcourt RI </td></tr></table></div>"
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/patient-identifier-cs",
            "code" : "NIN"
          }]
        },
        "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/patient-identifier-cs",
        "value" : "23456565514"
      },
      {
        "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" : "08031112233"
      }],
      "active" : true,
      "name" : [{
        "family" : "Okafor",
        "given" : ["Chika"]
      }],
      "gender" : "male",
      "birthDate" : "1990-04-21",
      "address" : [{
        "line" : ["21 Industrial Area"],
        "city" : "Port Harcourt",
        "district" : "ri-emohua",
        "state" : "RI"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:cccddde3-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "NgOrganization-Insurer-002",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-insurer-organization"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Organization_NgOrganization-Insurer-002\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Organization NgOrganization-Insurer-002</b></p><a name=\"NgOrganization-Insurer-002\"> </a><a name=\"hcNgOrganization-Insurer-002\"> </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-insurer-organization.html\">NG Insurer Organization</a></p></div><p><b>identifier</b>: <code>https://fhir-ig.digitalhealth.gov.ng/CodeSystem/nigeria-facility-registry</code>/HMO876653</p><p><b>active</b>: true</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/organization-type ins}\">Insurance Company</span></p><p><b>name</b>: PrimeCare HMO</p><p><b>telecom</b>: ph: 0700-PRIMECARE</p><p><b>address</b>: 12 Insurance Close Victoria Island LA </p></div>"
      },
      "identifier" : [{
        "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/nigeria-facility-registry",
        "value" : "HMO876653"
      }],
      "active" : true,
      "type" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/organization-type",
          "code" : "ins",
          "display" : "Insurance Company"
        }]
      }],
      "name" : "PrimeCare HMO",
      "telecom" : [{
        "system" : "phone",
        "value" : "0700-PRIMECARE"
      }],
      "address" : [{
        "line" : ["12 Insurance Close"],
        "city" : "Victoria Island",
        "district" : "la-eti-osa",
        "state" : "LA"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:dddeeef2-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Coverage",
      "id" : "NgCoverage-PreAuth-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-coverage"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Coverage_NgCoverage-PreAuth-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Coverage NgCoverage-PreAuth-001</b></p><a name=\"NgCoverage-PreAuth-001\"> </a><a name=\"hcNgCoverage-PreAuth-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-coverage.html\">NG Claim Coverage</a></p></div><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode EHCPOL}\">extended healthcare</span></p><p><b>beneficiary</b>: <a href=\"Bundle-ClaimSubmission-Request.html#urn-uuid-aaabbbc2-e5f6-4789-a123-456789abcdef\">Amaka Nwosu  Female, DoB: 1992-07-15 ( mobile: 08045678901)</a></p><p><b>period</b>: 2025-01-01 --&gt; 2025-12-31</p><p><b>payor</b>: <a href=\"Bundle-PreAuth-Request.html#urn-uuid-cccddde3-e5f6-4789-a123-456789abcdef\">Organization XYZ HMO</a></p></div>"
      },
      "status" : "active",
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "EHCPOL",
          "display" : "extended healthcare"
        }]
      },
      "beneficiary" : {
        "reference" : "urn:uuid:aaabbbc2-e5f6-4789-a123-456789abcdef"
      },
      "period" : {
        "start" : "2025-01-01",
        "end" : "2025-12-31"
      },
      "payor" : [{
        "reference" : "urn:uuid:cccddde3-e5f6-4789-a123-456789abcdef"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:afbabdaa-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "ClaimResponse",
      "id" : "NgClaimResponse-PreAuth-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-claim-response"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"ClaimResponse_NgClaimResponse-PreAuth-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ClaimResponse NgClaimResponse-PreAuth-001</b></p><a name=\"NgClaimResponse-PreAuth-001\"> </a><a name=\"hcNgClaimResponse-PreAuth-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-claim-response.html\">NG ClaimResponse</a></p></div><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/claim-type institutional}\">Institutional</span></p><p><b>use</b>: Preauthorization</p><p><b>patient</b>: <a href=\"Bundle-ClaimSubmission-Request.html#urn-uuid-aaabbbc2-e5f6-4789-a123-456789abcdef\">Amaka Nwosu  Female, DoB: 1992-07-15 ( mobile: 08045678901)</a></p><p><b>created</b>: 2025-10-20 10:45:00+0100</p><p><b>insurer</b>: <a href=\"Bundle-PreAuth-Request.html#urn-uuid-cccddde3-e5f6-4789-a123-456789abcdef\">Organization XYZ HMO</a></p><p><b>outcome</b>: Processing Complete</p><p><b>preAuthRef</b>: Ref: CLM-2025-001234. Check status at https://truth-hmo.ng.</p><blockquote><p><b>item</b></p><p><b>itemSequence</b>: 1</p><blockquote><p><b>adjudication</b></p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/adjudication eligible}\">Eligible Amount</span></p><h3>Amounts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style=\"display: none\">*</td><td>23000</td><td>Nigerian naira</td></tr></table></blockquote></blockquote></div>"
      },
      "status" : "active",
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/claim-type",
          "code" : "institutional",
          "display" : "Institutional"
        }]
      },
      "use" : "preauthorization",
      "patient" : {
        "reference" : "urn:uuid:aaabbbc2-e5f6-4789-a123-456789abcdef"
      },
      "created" : "2025-10-20T10:45:00+01:00",
      "insurer" : {
        "reference" : "urn:uuid:cccddde3-e5f6-4789-a123-456789abcdef"
      },
      "outcome" : "complete",
      "preAuthRef" : "Ref: CLM-2025-001234. Check status at https://truth-hmo.ng.",
      "item" : [{
        "itemSequence" : 1,
        "adjudication" : [{
          "category" : {
            "coding" : [{
              "system" : "http://terminology.hl7.org/CodeSystem/adjudication",
              "code" : "eligible"
            }]
          },
          "amount" : {
            "value" : 23000,
            "currency" : "NGN"
          }
        }]
      }]
    }
  }]
}