This page is part of the FHIR Specification (v0.11: DSTU 1 Ballot 3). 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

Resource Formats 1.10.4.0

This page documents how the content of the resources are described. In actual exchange, resources can be represented in the following formats: XMLand JSON.

Resource Definition 1.10.4.0.1

The resources are described in two different ways: a UML diagram that summarises the content, and an pseudo-XML syntax that provides a visual sense of what the end resource instances will look like in XML. Note that although the description of the resources is based on their XML representation, other representations such as JSON are equally valid.

XML 1.10.4.0.1.1

The XML syntax uses the following notation:

 <name xmlns="http://hl7.org/fhir" (attrA="value")> 
   <nameA><!-- 1..1 type description of content  --><nameA>
   <nameB[x]><!-- 0..1 type1|type1 description  --></nameB>
   <nameC> <!--  1..* -->
     <nameD ><!-- 1..1 type>Relevant records  --></nameD>
   </nameC>
 <name>

Notes:

UML 1.10.4.0.1.2

The UML diagrams represent the same content as a series of classes that represent the elements of a resource.

Name attrA : string 0..1 nameA : type 1..1 nameB[x] : type1 | type2 0..1 NameC nameD : type 1..* software 0..1

Where an element can have a choice of data types, these are represented in the choice using the same syntax as the xml syntax described above. Due to way UML works, the actual order of the elements cannot be determined from the diagram, nor is it visible whether a property is an element or an attribute. The elements and types are links to the formal definitions of the parts. The UML diagrams also show the bindings, and these are hyperlinks to the details of the binding.

These UML diagrams are intended to communicate the contents of the resource to a human. An alternate set of diagrams that is more suited to code generation is available as part of the UML reference platform.