DSTU2 Ballot Source

This page is part of the FHIR Specification (v0.5.0: DSTU 2 Ballot 2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Xds-example.xml

Raw XML (canonical form)

XDS example (id = "xds")

Raw XML

<Bundle xmlns="http://hl7.org/fhir">
  <id value="xds"/>
  <meta>
    <lastUpdated value="2013-07-01T13:11:33Z"/>
  </meta>
  <type value="transaction"/>
  <base value="cid:123@healthintersections.com.au"/>
  <entry>
    <resource>
      <DocumentReference><!--    although the resource has an id - which it might need so it can referred to 
      from within this transaction, the server is to treat it as a new resource (see transaction
         below)    -->
        <id value="a1"/>
        <meta>
          <lastUpdated value="2013-07-01T13:11:33Z"/>
        </meta>
        <text>
          <status value="generated"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
        </text>
        <masterIdentifier>
          <system value="urn:ietf:rfc:3986"/>
          <value value="urn:oid:129.6.58.92.88336"/>
        </masterIdentifier>
        <subject>
          <reference value="cid:123@healthintersections.com.au/Patient/a2"/>
        </subject>
        <type>
          <coding>
            <system value="http://ihe.net/connectathon/classCodes"/>
            <code value="History and Physical"/>
            <display value="History and Physical"/>
          </coding>
        </type>
        <format value="urn:oid:1.3.6.1.4.1.19376.1.5.3.1.1.16.1.4"/>
        <author>
          <reference value="cid:123@healthintersections.com.au/Practitioner/a3"/>
        </author>
        <author>
          <reference value="cid:123@healthintersections.com.au/Practitioner/a4"/>
        </author>
        <created value="2005-12-24"/>
        <indexed value="2013-07-01T23:11:33+10:00"/>
        <status value="current"/>
        <description value="Physical"/>
        <content>
          <contentType value="text/plain"/>
          <language value="en-us"/>
          <url value="http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32"/>
        </content>
        <context>
          <period>
            <start value="2004-12-23T08:00:00+10:00"/>
            <end value="2004-12-23T08:01:00+10:00"/>
          </period>
          <practiceSetting>
            <coding>
              <system value="http://ihe.net/connectathon/practiceSettingCodes"/>
              <code value="General Medicine"/>
              <display value="General Medicine"/>
            </coding>
          </practiceSetting>
        </context>
      </DocumentReference>
    </resource>
    <transaction>
      <method value="POST"/>
      <url value="DocumentReference"/>
    </transaction>
  </entry>
  <entry>
    <resource>
      <Patient><!--    if the server can find a matching resource, use that, else create a new 
      resource with these details    -->
        <id value="a2"/>
        <meta>
          <lastUpdated value="2013-07-01T13:11:33Z"/>
        </meta>
        <text>
          <status value="generated"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
        </text>
        <identifier>
          <use value="usual"/>
          <value value="MRN"/>
        </identifier>
        <name>
          <use value="usual"/>
          <text value="DOE, John"/>
          <family value="Doe"/>
          <given value="John"/>
        </name>
        <birthDate value="1956-05-27"/>
      </Patient>
    </resource>
    <transaction>
      <method value="POST"/>
      <url value="Patient"/>
      <ifNoneExist value="Patient?identifier=http://acme.org/xds/patients!89765a87b"/>
    </transaction>
  </entry>
  <entry>
    <resource>
      <Practitioner>
        <id value="a3"/>
        <meta>
          <lastUpdated value="2013-07-01T13:11:33Z"/>
        </meta>
        <text>
          <status value="generated"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
        </text>
        <name>
          <use value="usual"/>
          <family value="Smitty"/>
          <given value="Gerald"/>
        </name>
        <practitionerRole>
          <managingOrganization>
            <display value="Cleveland Clinic"/>
          </managingOrganization>
          <role>
            <coding>
              <code value="Attending"/>
            </coding>
          </role>
          <specialty>
            <coding>
              <code value="Orthopedic"/>
            </coding>
          </specialty>
        </practitionerRole>
        <practitionerRole>
          <managingOrganization>
            <display value="Parma Community"/>
          </managingOrganization>
        </practitionerRole>
      </Practitioner>
    </resource>
    <transaction>
      <method value="POST"/>
      <url value="Practitioner"/>
    </transaction>
  </entry>
  <entry>
    <resource>
      <Practitioner>
        <id value="a4"/><!--    cid:51b578b4-3ccb-4e67-b0dc-ef519d82ef2d@healthintersections.com.au    -->
        <meta>
          <lastUpdated value="2013-07-01T13:11:33Z"/>
        </meta>
        <text>
          <status value="generated"/>
          <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
        </text>
        <name>
          <use value="usual"/>
          <family value="Dopplemeyer"/>
          <given value="Sherry"/>
        </name>
        <practitionerRole>
          <managingOrganization>
            <display value="Cleveland Clinic"/>
          </managingOrganization>
          <role>
            <coding>
              <code value="Primary Surgon"/>
            </coding>
          </role>
          <specialty>
            <coding>
              <code value="Orthopedic"/>
            </coding>
          </specialty>
        </practitionerRole>
        <practitionerRole>
          <managingOrganization>
            <display value="Berea Community"/>
          </managingOrganization>
        </practitionerRole>
      </Practitioner>
    </resource>
    <transaction>
      <method value="POST"/>
      <url value="Practitioner"/>
    </transaction>
  </entry>
  <entry>
    <resource>
      <Binary>
        <id value="1e404af3-077f-4bee-b7a6-a9be97e1ce32"/>
        <meta>
          <lastUpdated value="2013-07-01T13:11:33Z"/>
        </meta>
        <contentType value="text/plain"/>
        <content value="YXNkYXNkYXNkYXNkYXNk"/>
      </Binary>
    </resource>
    <transaction>
      <method value="POST"/>
      <url value="Binary"/>
    </transaction>
  </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.