Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example Bundle/bundle-response-medsallergies (XML)

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

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

Response for Retrieve a patients medications, allergies, problems and immunizations (id = "bundle-response-medsallergies")

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

<Bundle xmlns="http://hl7.org/fhir">
    <id value="bundle-response-medsallergies"/> 
    <type value="batch-response"/> 
    <entry> 
        <resource> 
            <Patient> 
                <id value="example"/> 
                <meta> 
                    <versionId value="1"/> 
                    <lastUpdated value="2018-11-12T03:35:20.715Z"/> 
                </meta> 
                <text> 
                    <status value="generated"/> 
                    <div xmlns="http://www.w3.org/1999/xhtml">
                        <table> 
                            <tbody> 
                                <tr> 
                                    <td> Name</td> 
                                    <td> Peter James 
                                        <b> Chalmers</b>  (&quot;Jim&quot;)
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td> Address</td> 
                                    <td> 534 Erewhon, Pleasantville, Vic, 3999</td> 
                                </tr> 
                                <tr> 
                                    <td> Contacts</td> 
                                    <td> Home: unknown. Work: (03) 5555 6473</td> 
                                </tr> 
                                <tr> 
                                    <td> Id</td> 
                                    <td> MRN: 12345 (Acme Healthcare)</td> 
                                </tr> 
                            </tbody> 
                        </table> 
                    </div> 
                </text> 
                <identifier> 
                    <use value="usual"/> 
                    <type> 
                        <coding> 
                            <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> 
                            <code value="MR"/> 
                        </coding> 
                    </type> 
                    <system value="urn:oid:1.2.36.146.595.217.0.1"/> 
                    <value value="12345"/> 
                    <period> 
                        <start value="2001-05-06"/> 
                    </period> 
                    <assigner> 
                        <display value="Acme Healthcare"/> 
                    </assigner> 
                </identifier> 
                <active value="true"/> 
                <name> 
                    <use value="official"/> 
                    <family value="Chalmers"/> 
                    <given value="Peter"/> 
                    <given value="James"/> 
                </name> 
                <name> 
                    <use value="usual"/> 
                    <given value="Jim"/> 
                </name> 
                <name> 
                    <use value="maiden"/> 
                    <family value="Windsor"/> 
                    <given value="Peter"/> 
                    <given value="James"/> 
                    <period> 
                        <end value="2002"/> 
                    </period> 
                </name> 
                <telecom> 
                    <use value="home"/> 
                </telecom> 
                <telecom> 
                    <system value="phone"/> 
                    <value value="(03) 5555 6473"/> 
                    <use value="work"/> 
                    <rank value="1"/> 
                </telecom> 
                <telecom> 
                    <system value="phone"/> 
                    <value value="(03) 3410 5613"/> 
                    <use value="mobile"/> 
                    <rank value="2"/> 
                </telecom> 
                <telecom> 
                    <system value="phone"/> 
                    <value value="(03) 5555 8834"/> 
                    <use value="old"/> 
                    <period> 
                        <end value="2014"/> 
                    </period> 
                </telecom> 
                <gender value="male"/> 
                <birthDate value="1974-12-25">
                    <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
                        <valueDateTime value="1974-12-25T14:35:45-05:00"/> 
                    </extension> 
                </birthDate> 
                <deceasedBoolean value="false"/> 
                <address> 
                    <use value="home"/> 
                    <type value="both"/> 
                    <text value="534 Erewhon St PeasantVille, Rainbow, Vic  3999"/> 
                    <line value="534 Erewhon St"/> 
                    <city value="PleasantVille"/> 
                    <district value="Rainbow"/> 
                    <state value="Vic"/> 
                    <postalCode value="3999"/> 
                    <period> 
                        <start value="1974-12-25"/> 
                    </period> 
                </address> 
                <contact> 
                    <relationship> 
                        <coding> 
                            <system value="http://terminology.hl7.org/CodeSystem/v2-0131"/> 
                            <code value="N"/> 
                        </coding> 
                    </relationship> 
                    <name> 
                        <family value="du Marché">
                            <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix">
                                <valueString value="VV"/> 
                            </extension> 
                        </family> 
                        <given value="Bénédicte"/> 
                    </name> 
                    <telecom> 
                        <system value="phone"/> 
                        <value value="+33 (237) 998327"/> 
                    </telecom> 
                    <address> 
                        <use value="home"/> 
                        <type value="both"/> 
                        <line value="534 Erewhon St"/> 
                        <city value="PleasantVille"/> 
                        <district value="Rainbow"/> 
                        <state value="Vic"/> 
                        <postalCode value="3999"/> 
                        <period> 
                            <start value="1974-12-25"/> 
                        </period> 
                    </address> 
                    <gender value="female"/> 
                    <period> 
                        <start value="2012"/> 
                    </period> 
                </contact> 
                <managingOrganization> 
                    <reference value="Organization/1"/> 
                </managingOrganization> 
            </Patient> 
        </resource> 
        <response> 
            <status value="200"/> 
            <etag value="W/1"/> 
            <lastModified value="2018-11-12T03:35:20.717Z"/> 
        </response> 
    </entry> 
    <entry> 
        <resource> 
            <Bundle> 
                <id value="5bdf95d0-24a6-4024-95f5-d546fb479b"/> 
                <meta> 
                    <lastUpdated value="2018-11-12T05:42:16.086Z"/> 
                </meta> 
                <type value="searchset"/> 
                <total value="0"/> 
                <link> 
                    <relation value="self"/> 
                    <url value="http://test.fhir.org/r5/MedicationStatement?_format=application/fhir+xml&amp;search-id=804eee
          4a-0a54-4414-9c07-169952f929&amp;&amp;patient=example&amp;_list=%24current%2Dmedications&amp;_
          sort=_id"/> 
                </link> 
            </Bundle> 
        </resource> 
        <response> 
            <status value="200"/> 
            <etag value="W/1"/> 
            <lastModified value="2018-11-12T03:35:20.717Z"/> 
        </response> 
    </entry> 
    <entry> 
        <resource> 
            <Bundle> 
                <id value="0c11a91c-3638-4d58-8cf1-40e60f43c6"/> 
                <meta> 
                    <lastUpdated value="2018-11-12T05:42:16.209Z"/> 
                </meta> 
                <type value="searchset"/> 
                <total value="0"/> 
                <link> 
                    <relation value="self"/> 
                    <url value="http://test.fhir.org/r5/AllergyIntolerance?_format=application/fhir+xml&amp;search-id=b1981f8
          a-4139-4db6-923d-77d764c990&amp;&amp;patient=example&amp;_list=%24current%2Dallergies&amp;_sor
          t=_id"/> 
                </link> 
            </Bundle> 
        </resource> 
        <response> 
            <status value="200"/> 
            <etag value="W/1"/> 
            <lastModified value="2018-11-12T03:35:20.717Z"/> 
        </response> 
    </entry> 
    <entry> 
        <resource> 
            <Bundle> 
                <id value="19f0fa29-f8fe-4b07-b035-f488893f06"/> 
                <meta> 
                    <lastUpdated value="2018-11-12T05:42:16.279Z"/> 
                </meta> 
                <type value="searchset"/> 
                <total value="0"/> 
                <link> 
                    <relation value="self"/> 
                    <url value="http://test.fhir.org/r5/Condition?_format=application/fhir+xml&amp;search-id=4d097c43-54aa-41
          57-b500-be22208dd0&amp;&amp;patient=example&amp;_list=%24current%2Dproblems&amp;_sort=_id"/> 
                </link> 
            </Bundle> 
        </resource> 
        <response> 
            <status value="200"/> 
            <etag value="W/1"/> 
            <lastModified value="2018-11-12T03:35:20.717Z"/> 
        </response> 
    </entry> 
    <entry> 
        <resource> 
            <Bundle> 
                <id value="dff8ab42-33f9-42ec-88c5-83d3f05323"/> 
                <meta> 
                    <lastUpdated value="2018-11-12T05:42:16.351Z"/> 
                </meta> 
                <type value="searchset"/> 
                <total value="0"/> 
                <link> 
                    <relation value="self"/> 
                    <url value="http://test.fhir.org/r5/MedicationStatement?_format=application/fhir+xml&amp;search-id=31d4af
          75-cdcf-4f85-9666-4bafadebb5&amp;&amp;patient=example&amp;_sort=_id"/> 
                </link> 
            </Bundle> 
        </resource> 
        <response> 
            <status value="200"/> 
            <etag value="W/1"/> 
            <lastModified value="2018-11-12T03:35:20.717Z"/> 
        </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.