This page is part of the FHIR Specification (v0.0.82: DSTU 1). 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 Content Detailed Descriptions 1.18 DomainResource Resource 1.18.1 Scope and Usage A domain resource is an resource that: has a human-readable XHTML representation of the content of the resource (see Human Narrative in resources ) can contain additional related resources inside the resource (see Contained Resources ) can have additional extensions and modifierExtensions as well as the defined data (See Extensibility ) As an abstract resource, this resource never exists directly, only one of its descendent resources ( list ). 1.18.2 Boundaries and Relationships This resource is extends resource . All of the listed resources except Bundle and Binary extend this resource. 1.18.3 Resource Content Structure UML XML JSON All Structure Name Flags Card. Type Description & Constraints DomainResource I Resource A resource with narrative, extensions, and contained resources If a resource is contained in another resource, it SHALL not have a meta.versionId or a meta.lastUpdated If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource If the resource is contained in another resource, it SHALL not contain nested Resources If the resource is contained in another resource, it SHALL not contain any narrative text I 0..1 Narrative Text summary of the resource, for human interpretation contained 0..* Resource Contained, inline Resources extension 0..* Extension Additional Content defined by implementations modifierExtension 0..* Extension Extensions that cannot be ignored UML Diagram DomainResource ( Resource ) A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety text : Narrative 0..1 These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope contained : Resource 0..* May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension extension : Extension 0..* May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions modifierExtension : Extension 0..* XML Template < <!-- from Element: --> <</text> <</contained> <</extension> <</modifierExtension> </[name]> JSON Template { "resourceType" : "", // from " " () () } Structure Name Flags Card. Type Description & Constraints DomainResource I Resource A resource with narrative, extensions, and contained resources If a resource is contained in another resource, it SHALL not have a meta.versionId or a meta.lastUpdated If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource If the resource is contained in another resource, it SHALL not contain nested Resources If the resource is contained in another resource, it SHALL not contain any narrative text I 0..1 Narrative Text summary of the resource, for human interpretation contained 0..* Resource Contained, inline Resources extension 0..* Extension Additional Content defined by implementations modifierExtension 0..* Extension Extensions that cannot be ignored UML Diagram DomainResource ( Resource ) A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety text : Narrative 0..1 These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope contained : Resource 0..* May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension extension : Extension 0..* May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions modifierExtension : Extension 0..* XML Template < <!-- from Element: --> <</text> <</contained> <</extension> <</modifierExtension> </[name]> JSON Template { "resourceType" : "", // from " " () () } 1.18.3.1 Constraints dom-1 : If the resource is contained in another resource, it SHALL not contain any narrative (xpath: not(parent::f:contained and f:text) ) dom-2 : If the resource is contained in another resource, it SHALL not contain nested Resources (xpath: not(parent::f:contained and f:contained) ) dom-3 : If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (xpath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))])) ) dom-4 : If a resource is contained in another resource, it SHALL not have a meta.versionId or a meta.lastUpdated (xpath: not(exists(f:contained/f:meta/f:versionId)) and not(exists(f:contained/f:meta/f:lastUpdated)) ) 1.18.4 Search Parameters This resource doesn't define any common Search parameters To search for extensions, define a search parameter for the extension. All other search parameters are named aliases for existing content in the resource. In some cases, though not all, the search parameter name is the same as the element that it searches, but this is not required. Searching for extensions is the same - define a name that identifies the value extension by its URL, and then searches can filter based on the value of the extension. © HL7.org 2011+. FHIR DSTU (v0.4.0-4902) generated on Fri, Mar 27, 2015 00:17+1100. Links: What's a DSTU? | Version History | Specification Map | Compare to DSTU1 | | Propose a change try { var currentTabIndex = sessionStorage.getItem('fhir-resource-tab-index'); } catch(exception){ if (navigator.userAgent.toLowerCase().indexof('msie') == -1) alert(exception); } if (!currentTabIndex) currentTabIndex = '0'; $( '#tabs' ).tabs({ active: currentTabIndex, activate: function( event, ui ) { store(ui.newTab.index()); } }); function store(currentTab) { try { sessionStorage.setItem('fhir-resource-tab-index', currentTab); } catch(exception){ if (navigator.userAgent.toLowerCase().indexof('msie') == -1) alert(exception); } $( '#tabs' ).tabs('option', 'active', currentTab); }