FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example Bundle/bundle-response-transaction-complex (XML)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw XML (canonical form + also see XML Format Specification)

Response for the complex example transaction (id = "bundle-response-transaction-complex")

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

<Bundle xmlns="http://hl7.org/fhir">
  <id value="bundle-response-transaction-complex"/> 
  <meta> 
    <lastUpdated value="2025-03-20T00:00:00Z"/> 
  </meta> 
  <type value="transaction-response"/> 
  <entry> 
    <fullUrl value="urn:uuid:a008e191-0dfa-3ab3-b035-49d7d2e69cb4"/> 
    <resource> 
      <Practitioner> 
        <id value="64dcb23b-457c-4c51-96c8-942b3f1eebd6"/> 
        <meta> 
          <versionId value="1"/> 
          <lastUpdated value="2025-03-20T15:38:01.1253032+00:00"/> 
        </meta> 
        <text> 
          <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b> Generated Narrative: Practitioner 64dcb23b-457c-4c51-96c8-942b3f1eebd6</b> </p> <a name="64dcb23b-457c-4c51-96c8-942b3f1eebd6"> </a> <a name="hc64dcb23b-457c-4c51-96c8-942b3f1eebd6"> </a> <a name="64dcb23b-457c-4c51-96c8-942b3f1eebd6-en-US"> </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">version: 1; Last updated: 2025-03-20T15:38:01.1253032Z</p> </div> <p> <b> identifier</b> : <a href="http://terminology.hl7.org/6.2.0/NamingSystem-npi.html" title="National Provider Identifier">United States National Provider Identifier</a> /9999947796</p> <p> <b> active</b> : true</p> <p> <b> name</b> : Francisco472 Gusikowski974 </p> <p> <b> telecom</b> : <a href="mailto:Francisco472.Gusikowski974@example.com">Francisco472.Gusikowski974@example.com</a> </p> <p> <b> gender</b> : female</p> <p> <b> address</b> : 8 SHIPWAY PL # C-8 CHARLESTOWN MA 021294301 US </p> </div> 
        </text> 
        <identifier> 
          <system value="http://hl7.org/fhir/sid/us-npi"/> 
          <value value="9999947796"/> 
        </identifier> 
        <active value="true"/> 
        <name> 
          <family value="Gusikowski974"/> 
          <given value="Francisco472"/> 
          <prefix value="Dr."/> 
        </name> 
        <telecom> 
          <system value="email"/> 
          <value value="Francisco472.Gusikowski974@example.com"/> 
          <use value="work"/> 
        </telecom> 
        <gender value="female"/> 
        <address> 
          <line value="8 SHIPWAY PL # C-8"/> 
          <city value="CHARLESTOWN"/> 
          <state value="MA"/> 
          <postalCode value="021294301"/> 
          <country value="US"/> 
        </address> 
      </Practitioner> 
    </resource> 
    <response> 
      <status value="201 Created"/> 
      <location value="http://localhost:5826/fhir/r4/Practitioner/64dcb23b-457c-4c51-96c8-942b3f1eebd6"/> 
      <etag value="W/&quot;1&quot;"/> 
      <lastModified value="2025-03-20T15:38:01.1253032+00:00"/> 
      <outcome> 
        <OperationOutcome> 
          <id value="8cb1950b-0168-4340-8e96-53ec005c4dec"/> 
          <issue> 
            <severity value="information"/> 
            <code value="success"/> 
            <diagnostics value="Created Practitioner/64dcb23b-457c-4c51-96c8-942b3f1eebd6"/> 
          </issue> 
        </OperationOutcome> 
      </outcome> 
    </response> 
  </entry> 
  <entry> 
    <fullUrl value="urn:uuid:dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91"/> 
    <resource> 
      <Patient> 
        <id value="341408d6-02eb-4550-b27d-a48d6f8689be"/> 
        <meta> 
          <versionId value="1"/> 
          <lastUpdated value="2025-03-20T15:38:01.1260451+00:00"/> 
        </meta> 
        <text> 
          <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">Generated by
                       <a href="https://github.com/synthetichealth/synthea">Synthea</a> .Version identifier: 2cc0a62
 .   Person seed: 3380232822616628959  Population seed: 1730906375349
          
                   </div> 
        </text> 
        <extension url="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName">
          <valueString value="Lolita963 Batz141"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthPlace">
          <valueAddress> 
            <city value="Orleans"/> 
            <state value="Massachusetts"/> 
            <country value="US"/> 
          </valueAddress> 
        </extension> 
        <identifier> 
          <system value="https://github.com/synthetichealth/synthea"/> 
          <value value="dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91"/> 
        </identifier> 
        <identifier> 
          <type> 
            <coding> 
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> 
              <code value="MR"/> 
              <display value="Medical Record Number"/> 
            </coding> 
            <text value="Medical Record Number"/> 
          </type> 
          <system value="http://hospital.smarthealthit.org"/> 
          <value value="dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91"/> 
        </identifier> 
        <identifier> 
          <type> 
            <coding> 
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> 
              <code value="DL"/> 
              <display value="Driver's license number"/> 
            </coding> 
            <text value="Driver's license number"/> 
          </type> 
          <system value="urn:oid:2.16.840.1.113883.4.3.25"/> 
          <value value="S99943196"/> 
        </identifier> 
        <identifier> 
          <type> 
            <coding> 
              <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> 
              <code value="PPN"/> 
              <display value="Passport Number"/> 
            </coding> 
            <text value="Passport Number"/> 
          </type> 
          <system value="http://hl7.org/fhir/sid/passport-USA"/> 
          <value value="X74265284X"/> 
        </identifier> 
        <name> 
          <use value="official"/> 
          <family value="Balistreri607"/> 
          <given value="Ada662"/> 
          <given value="Sari509"/> 
          <prefix value="Mrs."/> 
        </name> 
        <name> 
          <use value="maiden"/> 
          <family value="D'Amore443"/> 
          <given value="Ada662"/> 
          <given value="Sari509"/> 
          <prefix value="Mrs."/> 
        </name> 
        <telecom> 
          <system value="phone"/> 
          <value value="555-428-1241"/> 
          <use value="home"/> 
        </telecom> 
        <gender value="female"/> 
        <birthDate value="1959-08-01"/> 
        <address> 
          <extension url="http://hl7.org/fhir/StructureDefinition/geolocation">
            <extension url="latitude">
              <valueDecimal value="42.38579955468066"/> 
            </extension> 
            <extension url="longitude">
              <valueDecimal value="-71.05781519988905"/> 
            </extension> 
          </extension> 
          <line value="315 Simonis Parade"/> 
          <city value="Somerville"/> 
          <state value="MA"/> 
          <postalCode value="02138"/> 
          <country value="US"/> 
        </address> 
        <maritalStatus> 
          <coding> 
            <system value="http://terminology.hl7.org/CodeSystem/v3-MaritalStatus"/> 
            <code value="M"/> 
            <display value="Married"/> 
          </coding> 
          <text value="Married"/> 
        </maritalStatus> 
        <multipleBirthBoolean value="false"/> 
        <communication> 
          <language> 
            <coding> 
              <system value="urn:ietf:bcp:47"/> 
              <code value="en-US"/> 
              <display value="English (United States)"/> 
            </coding> 
            <text value="English (United States)"/> 
          </language> 
        </communication> 
      </Patient> 
    </resource> 
    <response> 
      <status value="201 Created"/> 
      <location value="http://localhost:5826/fhir/r4/Patient/341408d6-02eb-4550-b27d-a48d6f8689be"/> 
      <etag value="W/&quot;1&quot;"/> 
      <lastModified value="2025-03-20T15:38:01.1260451+00:00"/> 
      <outcome> 
        <OperationOutcome> 
          <id value="6b343b1f-dd97-4257-8e0f-2a4fe397d46a"/> 
          <issue> 
            <severity value="information"/> 
            <code value="success"/> 
            <diagnostics value="Created Patient/341408d6-02eb-4550-b27d-a48d6f8689be"/> 
          </issue> 
        </OperationOutcome> 
      </outcome> 
    </response> 
  </entry> 
  <entry> 
    <fullUrl value="urn:uuid:eaeb9228-4420-5e9c-b217-4c1a98ff9fe0"/> 
    <resource> 
      <Encounter> 
        <id value="eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"/> 
        <meta> 
          <versionId value="1"/> 
          <lastUpdated value="2025-03-20T15:38:01.1260976+00:00"/> 
        </meta> 
        <text> 
          <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b> Generated Narrative: Encounter eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2</b> </p> <a name="eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"> </a> <a name="hceb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"> </a> <a name="eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2-en-US"> </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">version: 1; Last updated: 2025-03-20T15:38:01.1260976Z</p> </div> <p> <b> identifier</b> : <code> https://github.com/synthetichealth/synthea</code> /eaeb9228-4420-5e9c-b217-4c1a98ff9fe0 (use: official, )</p> <p> <b> status</b> : completed</p> <p> <b> class</b> : <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode AMB}">ambulatory</span> </p> <p> <b> type</b> : <span title="Codes:{http://snomed.info/sct 162673000}">General examination of patient (procedure)</span> </p> <p> <b> subject</b> : <a href="broken-link.html">Mrs. Ada662 Sari509 Balistreri607</a> </p> <p> <b> serviceProvider</b> : <a href="organization-example-good-health-care.html">Good Health Clinic</a> </p> <h3> Participants</h3> <table class="grid"><tr> <td style="display: none">-</td> <td> <b> Type</b> </td> <td> <b> Period</b> </td> <td> <b> Actor</b> </td> </tr> <tr> <td style="display: none">*</td> <td> <span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType PPRF}">primary performer</span> </td> <td> 2015-09-05T21:57:47Z --&gt; 2015-09-05T22:48:16Z</td> <td> <a href="broken-link.html">Dr. Francisco472 Gusikowski974</a> </td> </tr> </table> </div> 
        </text> 
        <identifier> 
          <use value="official"/> 
          <system value="https://github.com/synthetichealth/synthea"/> 
          <value value="eaeb9228-4420-5e9c-b217-4c1a98ff9fe0"/> 
        </identifier> 
        <status value="completed"/> 
        <class> 
          <coding> 
            <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/> 
            <code value="AMB"/> 
            <display value="ambulatory"/> 
          </coding> 
        </class> 
        <type> 
          <coding> 
            <system value="http://snomed.info/sct"/> 
            <code value="162673000"/> 
            <display value="General examination of patient (procedure)"/> 
          </coding> 
          <text value="General examination of patient (procedure)"/> 
        </type> 
        <subject> 
          <reference value="Patient/341408d6-02eb-4550-b27d-a48d6f8689be"/> 
          <display value="Mrs. Ada662 Sari509 Balistreri607"/> 
        </subject> 
        <serviceProvider> 
          <reference value="Organization/2.16.840.1.113883.19.5"/> 
          <type value="Organization"/> 
          <display value="Good Health Clinic"/> 
        </serviceProvider> 
        <participant> 
          <type> 
            <coding> 
              <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/> 
              <code value="PPRF"/> 
              <display value="primary performer"/> 
            </coding> 
            <text value="primary performer"/> 
          </type> 
          <period> 
            <start value="2015-09-05T21:57:47+00:00"/> 
            <end value="2015-09-05T22:48:16+00:00"/> 
          </period> 
          <actor> 
            <reference value="Practitioner/64dcb23b-457c-4c51-96c8-942b3f1eebd6"/> 
            <type value="Practitioner"/> 
            <display value="Dr. Francisco472 Gusikowski974"/> 
          </actor> 
        </participant> 
      </Encounter> 
    </resource> 
    <response> 
      <status value="201 Created"/> 
      <location value="http://localhost:5826/fhir/r4/Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"/> 
      <etag value="W/&quot;1&quot;"/> 
      <lastModified value="2025-03-20T15:38:01.1260976+00:00"/> 
      <outcome> 
        <OperationOutcome> 
          <id value="a7842b0a-eb96-42e3-9c9b-0e14c35afad7"/> 
          <issue> 
            <severity value="information"/> 
            <code value="success"/> 
            <diagnostics value="Created Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"/> 
          </issue> 
        </OperationOutcome> 
      </outcome> 
    </response> 
  </entry> 
  <entry> 
    <fullUrl value="urn:uuid:f5030c53-c71d-9dd6-a85f-6647c09c34b4"/> 
    <resource> 
      <Observation> 
        <id value="7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d"/> 
        <meta> 
          <versionId value="1"/> 
          <lastUpdated value="2025-03-20T15:38:01.1261802+00:00"/> 
        </meta> 
        <text> 
          <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b> Generated Narrative: Observation 7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d</b> </p> <a name="7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d"> </a> <a name="hc7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d"> </a> <a name="7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d-en-US"> </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">version: 1; Last updated: 2025-03-20T15:38:01.1261802Z</p> </div> <p> <b> status</b> : final</p> <p> <b> category</b> : <span title="Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}">Laboratory</span> </p> <p> <b> code</b> : <span title="Codes:{http://loinc.org 2093-3}">Cholesterol [Mass/volume] in Serum or Plasma</span> </p> <p> <b> subject</b> : <a href="broken-link.html">Patient/341408d6-02eb-4550-b27d-a48d6f8689be</a> </p> <p> <b> encounter</b> : <a href="broken-link.html">Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2</a> </p> <p> <b> effective</b> : 2015-09-05T21:57:47Z</p> <p> <b> issued</b> : 2015-09-05T21:57:47.809Z</p> <p> <b> value</b> : 165.49 mg/dL<span style="background: LightGoldenRodYellow"> (Details: UCUM  codemg/dL = 'mg/dL')</span> </p> </div> 
        </text> 
        <status value="final"/> 
        <category> 
          <coding> 
            <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> 
            <code value="laboratory"/> 
            <display value="Laboratory"/> 
          </coding> 
        </category> 
        <code> 
          <coding> 
            <system value="http://loinc.org"/> 
            <code value="2093-3"/> 
            <display value="Cholesterol [Mass/volume] in Serum or Plasma"/> 
          </coding> 
          <text value="Cholesterol [Mass/volume] in Serum or Plasma"/> 
        </code> 
        <subject> 
          <reference value="Patient/341408d6-02eb-4550-b27d-a48d6f8689be"/> 
        </subject> 
        <encounter> 
          <reference value="Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"/> 
        </encounter> 
        <effectiveDateTime value="2015-09-05T21:57:47+00:00"/> 
        <issued value="2015-09-05T21:57:47.809+00:00"/> 
        <valueQuantity> 
          <value value="165.49"/> 
          <unit value="mg/dL"/> 
          <system value="http://unitsofmeasure.org"/> 
          <code value="mg/dL"/> 
        </valueQuantity> 
      </Observation> 
    </resource> 
    <response> 
      <status value="201 Created"/> 
      <location value="http://localhost:5826/fhir/r4/Observation/7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d"/> 
      <etag value="W/&quot;1&quot;"/> 
      <lastModified value="2025-03-20T15:38:01.1261802+00:00"/> 
      <outcome> 
        <OperationOutcome> 
          <id value="2c169b4a-9e66-4893-ab98-3b617ff22d0a"/> 
          <issue> 
            <severity value="information"/> 
            <code value="success"/> 
            <diagnostics value="Created Observation/7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d"/> 
          </issue> 
        </OperationOutcome> 
      </outcome> 
    </response> 
  </entry> 
</Bundle> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.