2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). 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: R4B R4 R3 R2

?.? Element

The base definition for all elements contained inside a resource. All elements, whether defined as a Data Type or as part of a resource structure, have this base content:

?.?.1 Content

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. Element 1..1ElementBase for all elements
... id 0..1idxml:id (or equivalent in JSON)
... extension 0..*ExtensionAdditional Content defined by implementations

UML Diagram

to do

XML Template

<Element xmlns="http://hl7.org/fhir" id="xml:id (or equivalent in JSON) (id)"> doco
 <extension><!-- 0..* Extension Additional Content defined by implementations --></extension>
</Element>

JSON Template


{doco
  "resourceType" : "Element",
  // from Element: extension
  "id" : "<id>", // xml:id (or equivalent in JSON)
  (Extensions - see JSON page)
}

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. Element 1..1ElementBase for all elements
... id 0..1idxml:id (or equivalent in JSON)
... extension 0..*ExtensionAdditional Content defined by implementations

UML Diagram

todo

XML Template

<Element xmlns="http://hl7.org/fhir" id="xml:id (or equivalent in JSON) (id)"> doco
 <extension><!-- 0..* Extension Additional Content defined by implementations --></extension>
</Element>

JSON Template

{doco
  "resourceType" : "Element",
  // from Element: extension
  "id" : "<id>", // xml:id (or equivalent in JSON)
  (Extensions - see JSON page)
}