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

<Bundle xmlns="http://hl7.org/fhir">
  <id value="match-response-example"/>
  <type value="searchset"/>
  <timestamp value="2024-01-10T14:35:00Z"/>
  <total value="1"/>
  <link>
    <relation value="self"/>
    <url value="http://example.org/fhir/Patient/$match"/>
  </link>
  <entry>
    <fullUrl value="http://example.org/fhir/Patient/deceased-patient-example"/>
    <resource>
      <Patient>
        <id value="deceased-patient-example"/>
        <meta>
          <profile value="https://onyxhealth.io/fhir/fodder/StructureDefinition/fodder-deceased-patient"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="Patient_deceased-patient-example"> </a><p class="res-header-id"><b>Generated Narrative: Patient deceased-patient-example</b></p><a name="deceased-patient-example"> </a><a name="hcdeceased-patient-example"> </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-fodder-deceased-patient.html">FODDER Deceased Patient Profile</a></p></div><p style="border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;">John Doe (official) Male, DoB: 1950-03-15 ( Social Security number)</p><hr/><table class="grid"><tr><td style="background-color: #f3f5da" title="Known status of Patient">Deceased:</td><td colspan="3">2024-01-10 14:30:00+0000</td></tr><tr><td style="background-color: #f3f5da" title="Ways to contact the Patient">Contact Detail</td><td colspan="3">Springfield IL 62701 (home)</td></tr></table></div>
        </text>
        <identifier>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
              <code value="SS"/>
            </coding>
          </type>
          <system value="http://hl7.org/fhir/sid/us-ssn"/>
          <value value="123-45-6789"/>
        </identifier>
        <name>
          <use value="official"/>
          <family value="Doe"/>
          <given value="John"/>
        </name>
        <gender value="male"/>
        <birthDate value="1950-03-15"/>
        <deceasedDateTime value="2024-01-10T14:30:00Z"/>
        <address>
          <use value="home"/>
          <city value="Springfield"/>
          <state value="IL"/>
          <postalCode value="62701"/>
        </address>
      </Patient>
    </resource>
    <search>
      <extension url="http://hl7.org/fhir/StructureDefinition/match-grade">
        <valueCode value="certain"/>
      </extension>
      <mode value="match"/>
      <score value="0.95"/>
    </search>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/DocumentReference/death-record-example"/>
    <resource>
      <DocumentReference>
        <id value="death-record-example"/>
        <meta>
          <profile value="https://onyxhealth.io/fhir/fodder/StructureDefinition/fodder-death-record-document-reference"/>
        </meta>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><a name="DocumentReference_death-record-example"> </a><p class="res-header-id"><b>Generated Narrative: DocumentReference death-record-example</b></p><a name="death-record-example"> </a><a name="hcdeath-record-example"> </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-fodder-death-record-document-reference.html">FODDER Death Record Document Reference</a></p></div><p><b>status</b>: Current</p><p><b>type</b>: <span title="Codes:{http://loinc.org 64297-5}">Death certificate</span></p><p><b>subject</b>: <a href="Patient-deceased-patient-example.html">John Doe (official) Male, DoB: 1950-03-15 ( Social Security number)</a></p><p><b>date</b>: 2024-01-10 14:35:00+0000</p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class="grid"><tr><td style="display: none">-</td><td><b>ContentType</b></td><td><b>Url</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style="display: none">*</td><td>application/pdf</td><td><a href="http://example.org/fhir/Binary/death-record-deceased-patient-example">http://example.org/fhir/Binary/death-record-deceased-patient-example</a></td><td>Fact of Death Record - John Doe</td><td>2024-01-10</td></tr></table></blockquote></div>
        </text>
        <status value="current"/>
        <type>
          <coding>
            <system value="http://loinc.org"/>
            <code value="64297-5"/>
            <display value="Death certificate"/>
          </coding>
        </type>
        <subject>
          <reference value="Patient/deceased-patient-example"/>
        </subject>
        <date value="2024-01-10T14:35:00Z"/>
        <content>
          <attachment>
            <contentType value="application/pdf"/>
            <url value="http://example.org/fhir/Binary/death-record-deceased-patient-example"/>
            <title value="Fact of Death Record - John Doe"/>
            <creation value="2024-01-10"/>
          </attachment>
        </content>
      </DocumentReference>
    </resource>
    <search>
      <mode value="include"/>
    </search>
  </entry>
</Bundle>