{
  "resourceType" : "Bundle",
  "id" : "uapi-query-response-1-gpf",
  "meta" : {
    "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-bundle-query-response"]
  },
  "type" : "message",
  "timestamp" : "2020-03-11T08:10:17-05:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:04ba6102-8344-4c3e-b96e-e9fc75a7840c",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "04ba6102-8344-4c3e-b96e-e9fc75a7840c",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_04ba6102-8344-4c3e-b96e-e9fc75a7840c\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 04ba6102-8344-4c3e-b96e-e9fc75a7840c</b></p><a name=\"04ba6102-8344-4c3e-b96e-e9fc75a7840c\"> </a><a name=\"hc04ba6102-8344-4c3e-b96e-e9fc75a7840c\"> </a><p><b>event</b>: uapi-event-type query-response: Query Response</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>Genentech-FHIR-DEV</td><td><a href=\"https://fhir.developer.gene.com/$process-message\">https://fhir.developer.gene.com/$process-message</a></td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Identifier</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>5065aa9f-bd6d-49a8-924c-5d00f5d0b997</td><td>OK</td></tr></table><p><b>focus</b>: <a href=\"Bundle-uapi-query-response-1-gpf.html#urn-uuid-9f548d11-1cc6-4cca-8217-f5e3acbe84e5\">Bundle: type = message; timestamp = 2020-03-11 08:10:17-0500</a></p></div>"
      },
      "eventCoding" : {
        "system" : "http://terminology.gene.com/fhir/usix/uapi/CodeSystem/uapi-event-type",
        "code" : "query-response",
        "display" : "Query Response"
      },
      "source" : {
        "name" : "Genentech-FHIR-DEV",
        "endpoint" : "https://fhir.developer.gene.com/$process-message"
      },
      "response" : {
        "identifier" : "5065aa9f-bd6d-49a8-924c-5d00f5d0b997",
        "code" : "ok"
      },
      "focus" : [{
        "reference" : "urn:uuid:9f548d11-1cc6-4cca-8217-f5e3acbe84e5"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:9f548d11-1cc6-4cca-8217-f5e3acbe84e5",
    "resource" : {
      "resourceType" : "Parameters",
      "id" : "9f548d11-1cc6-4cca-8217-f5e3acbe84e5",
      "parameter" : [{
        "name" : "responder-patient",
        "valueReference" : {
          "reference" : "urn:uuid:b3d46ea3-62e6-4171-b818-d64712edfe55"
        }
      },
      {
        "name" : "search-result",
        "valueReference" : {
          "reference" : "urn:uuid:aecbb129-9a73-4b59-9d66-ff5cdb3f3164"
        }
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:b3d46ea3-62e6-4171-b818-d64712edfe55",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "b3d46ea3-62e6-4171-b818-d64712edfe55",
      "meta" : {
        "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-patient"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_b3d46ea3-62e6-4171-b818-d64712edfe55\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient b3d46ea3-62e6-4171-b818-d64712edfe55</b></p><a name=\"b3d46ea3-62e6-4171-b818-d64712edfe55\"> </a><a name=\"hcb3d46ea3-62e6-4171-b818-d64712edfe55\"> </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-uapi-patient.html\">UAPI Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Ryan Michaelson (official) Male, DoB: 1972-10-29 ( Patient internal identifier: MPAT-000123\u00a0(use:\u00a0usual,\u00a0))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\">Patient internal identifier/540002\u00a0(use:\u00a0official,\u00a0)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 1231231234(Home)</li><li>ph: 1234561234(Mobile)</li><li><a href=\"mailto:bobster83@example.com\">bobster83@example.com</a></li><li>1234 Main St San Francisco CA 94105 US </li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Language spoken\">Language:</td><td colspan=\"3\"><span title=\"Codes:{urn:ietf:bcp:47 en}\">English</span> (preferred)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>General Practitioner: <a href=\"Bundle-13778a5c-73de-46e4-bb5a-3781a5c93b5e.html#urn-uuid-695d0991-5e03-46df-934a-85a28acd95c1\">Bundle: identifier = Resource identifier: da5e1572-cc88-4e4d-9899-e3553f680d87; type = message; timestamp = 2020-03-11 08:10:13-0500</a></li><li>Managing Organization: <a href=\"Bundle-13778a5c-73de-46e4-bb5a-3781a5c93b5e.html#urn-uuid-01c31a2f-321d-4c6e-8349-206af8a88088\">Bundle: identifier = Resource identifier: da5e1572-cc88-4e4d-9899-e3553f680d87; type = message; timestamp = 2020-03-11 08:10:13-0500</a></li></ul></td></tr></table></div>"
      },
      "identifier" : [{
        "use" : "official",
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "PI",
            "display" : "Patient internal identifier"
          }]
        },
        "system" : "http://vendor.com/ab",
        "value" : "540002",
        "assigner" : {
          "display" : "AB Vendor"
        }
      },
      {
        "use" : "usual",
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "PI",
            "display" : "Patient internal identifier"
          }]
        },
        "system" : "http://dev.gene.com/patientmaster",
        "value" : "MPAT-000123",
        "assigner" : {
          "display" : "Genentech Patient Master"
        }
      }],
      "name" : [{
        "use" : "official",
        "family" : "Michaelson",
        "given" : ["Ryan"]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "1231231234",
        "use" : "home",
        "rank" : 1
      },
      {
        "system" : "phone",
        "value" : "1234561234",
        "use" : "mobile",
        "rank" : 2
      },
      {
        "system" : "email",
        "value" : "bobster83@example.com",
        "use" : "home",
        "rank" : 3
      }],
      "gender" : "male",
      "birthDate" : "1972-10-29",
      "address" : [{
        "line" : ["1234 Main St"],
        "city" : "San Francisco",
        "state" : "CA",
        "postalCode" : "94105",
        "country" : "US"
      }],
      "communication" : [{
        "language" : {
          "coding" : [{
            "system" : "urn:ietf:bcp:47",
            "code" : "en",
            "display" : "English"
          }]
        },
        "preferred" : true
      }],
      "generalPractitioner" : [{
        "reference" : "urn:uuid:695d0991-5e03-46df-934a-85a28acd95c1"
      }],
      "managingOrganization" : {
        "reference" : "urn:uuid:01c31a2f-321d-4c6e-8349-206af8a88088"
      }
    }
  },
  {
    "fullUrl" : "urn:uuid:aecbb129-9a73-4b59-9d66-ff5cdb3f3164",
    "resource" : {
      "resourceType" : "Bundle",
      "id" : "Inline-Instance-search-result-for-uapi-query-response-1",
      "meta" : {
        "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-bundle-search-result"]
      },
      "type" : "searchset",
      "total" : 1,
      "link" : [{
        "relation" : "self",
        "url" : "CoverageEligibilityResponse?status=active&patient=patient1-GNE-version&request.provider=vendorid_hospitalid&_include=CoverageEligibilityResponse:request"
      }],
      "entry" : [{
        "fullUrl" : "https://fhir.developer.gene.com/CoverageEligibilityResponse/1",
        "resource" : {
          "resourceType" : "CoverageEligibilityResponse",
          "id" : "0bd127dd-6ba9-4fcf-9a3a-607fc15dd450",
          "meta" : {
            "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-coverage-eligibility-response"]
          },
          "contained" : [{
            "resourceType" : "Organization",
            "id" : "8a0a8882-2667-4703-8c35-fdff0f6cf19f",
            "meta" : {
              "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-organization"]
            },
            "identifier" : [{
              "use" : "usual",
              "system" : "http://gene.com",
              "value" : "ORG-00001",
              "assigner" : {
                "display" : "Genentech"
              }
            }],
            "type" : [{
              "coding" : [{
                "system" : "http://terminology.hl7.org/CodeSystem/organization-type",
                "code" : "ins"
              }]
            }],
            "name" : "Genentech Patient Foundation",
            "telecom" : [{
              "system" : "phone",
              "value" : "1800654332211",
              "use" : "work",
              "rank" : 1
            }]
          }],
          "extension" : [{
            "url" : "https://fhir.developer.gene.com/StructureDefinition/gpf-shipment-method",
            "valueCodeableConcept" : {
              "coding" : [{
                "system" : "https://fhir.developer.gene.com/CodeSystem/gpf-shipment-method",
                "code" : "upfront",
                "display" : "Upfront"
              }]
            }
          },
          {
            "url" : "https://fhir.developer.gene.com/StructureDefinition/statusOutcome",
            "valueCodeableConcept" : {
              "coding" : [{
                "system" : "https://fhir.developer.gene.com/CodeSystem/uapi-coverage-outcome",
                "code" : "approved",
                "display" : "Approved"
              }]
            }
          }],
          "identifier" : [{
            "use" : "old",
            "system" : "https://fhir.developer.gene.com/enrollment/bundle-enrollment-id",
            "value" : "c78bde64-95e8-41f9-8a37-b2ac9aaf33d6"
          },
          {
            "use" : "official",
            "system" : "https://fhir.developer.gene.com/enrollment/Case",
            "value" : "00928066"
          }],
          "status" : "active",
          "purpose" : ["benefits"],
          "patient" : {
            "reference" : "urn:uuid:7c0c0017-e08d-4a14-9889-9eea26303ff2",
            "type" : "Patient"
          },
          "servicedDate" : "2021-06-01",
          "created" : "2021-05-27T08:10:13-05:00",
          "request" : {
            "reference" : "urn:uuid:223ec8d6-fdc6-4598-9694-74f782eb5104",
            "type" : "CoverageEligibilityRequest"
          },
          "outcome" : "complete",
          "disposition" : "Not Insured",
          "insurer" : {
            "reference" : "#8a0a8882-2667-4703-8c35-fdff0f6cf19f",
            "type" : "Organization"
          }
        },
        "search" : {
          "mode" : "match"
        }
      },
      {
        "fullUrl" : "urn:uuid:223ec8d6-fdc6-4598-9694-74f782eb5104",
        "resource" : {
          "resourceType" : "CoverageEligibilityRequest",
          "id" : "223ec8d6-fdc6-4598-9694-74f782eb5104",
          "meta" : {
            "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-coverage-eligibility-request"]
          },
          "contained" : [{
            "resourceType" : "Organization",
            "id" : "8a0a8882-2667-4703-8c35-fdff0f6cf19f",
            "meta" : {
              "profile" : ["https://fhir.developer.gene.com/StructureDefinition/uapi-organization"]
            },
            "identifier" : [{
              "use" : "usual",
              "system" : "http://gene.com",
              "value" : "ORG-00001",
              "assigner" : {
                "display" : "Genentech"
              }
            }],
            "type" : [{
              "coding" : [{
                "system" : "http://terminology.hl7.org/CodeSystem/organization-type",
                "code" : "ins"
              }]
            }],
            "name" : "Genentech Patient Foundation",
            "telecom" : [{
              "system" : "phone",
              "value" : "1800654332211",
              "use" : "work",
              "rank" : 1
            }]
          }],
          "extension" : [{
            "url" : "https://fhir.developer.gene.com/StructureDefinition/SRType",
            "valueCodeableConcept" : {
              "coding" : [{
                "system" : "https://fhir.developer.gene.com/CodeSystem/uapi-sr-type",
                "code" : "gpf",
                "display" : "Patient Foundation"
              }]
            }
          },
          {
            "url" : "https://fhir.developer.gene.com/StructureDefinition/Product",
            "valueCodeableConcept" : {
              "coding" : [{
                "system" : "https://fhir.developer.gene.com/CodeSystem/uapi-product-name",
                "code" : "lucentis",
                "display" : "Lucentis"
              }]
            }
          },
          {
            "url" : "https://fhir.developer.gene.com/StructureDefinition/Product",
            "valueCodeableConcept" : {
              "coding" : [{
                "system" : "https://fhir.developer.gene.com/CodeSystem/uapi-product-name",
                "code" : "susvimo",
                "display" : "Susvimo"
              }]
            }
          }],
          "identifier" : [{
            "use" : "old",
            "system" : "https://fhir.developer.gene.com/enrollment/bundle-enrollment-id",
            "value" : "c78bde64-95e8-41f9-8a37-b2ac9aaf33d6"
          },
          {
            "use" : "official",
            "system" : "https://fhir.developer.gene.com/enrollment/Case",
            "value" : "00928066"
          }],
          "status" : "active",
          "purpose" : ["benefits"],
          "patient" : {
            "reference" : "urn:uuid:7c0c0017-e08d-4a14-9889-9eea26303ff2",
            "type" : "Patient"
          },
          "created" : "2021-05-27T08:10:13-05:00",
          "provider" : {
            "reference" : "urn:uuid:01c31a2f-321d-4c6e-8349-206af8a88088",
            "type" : "Organization"
          },
          "insurer" : {
            "reference" : "#8a0a8882-2667-4703-8c35-fdff0f6cf19f",
            "type" : "Organization"
          }
        },
        "search" : {
          "mode" : "include"
        }
      }]
    }
  }]
}