Smart Health Checks
0.3.0 - ci-build Australia flag

Smart Health Checks, published by AEHRC CSIRO. This guide is not an authorized publication; it is the continuous build for version 0.3.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/aehrc/smart-forms-ig/ and changes regularly. See the Directory of published versions

Extension: Contained Resource Reference

Official URL: https://smartforms.csiro.au/ig/StructureDefinition/ContainedResourceReference Version: 0.3.0
Draft as of 2025-08-30 Computable Name: ContainedResourceReference

Copyright/Legal: Copyright © 2022+ Australian Government Department of Health and Aged Care - All rights reserved. This content is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.

This extension is intended to be used as a work around to a known bug whereby contained resources that are not referenced with the type, 'Reference' are removed before a resource is created in a HAPI FHIR server. This is problematic when referencing with the type, 'canonical'. The extension can be used to reference contained resources so they are retained when added to a HAPI FHIR server.

Context of Use

    This extension may be used on the following element(s)

Usage info

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Contained Resource Reference
... extension 0..0
... url 1..1 uri "https://smartforms.csiro.au/ig/StructureDefinition/ContainedResourceReference"
... value[x] 1..1 Reference() Value of extension

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Contained Resource Reference
... id 0..1 string Unique id for inter-element referencing
... extension 0..0
... url 1..1 uri "https://smartforms.csiro.au/ig/StructureDefinition/ContainedResourceReference"

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Reference: This extension is intended to be used as a work around to a known bug whereby contained resources that are not referenced with the type, 'Reference' are removed before a resource is created in a HAPI FHIR server. This is problematic when referencing with the type, 'canonical'. The extension can be used to reference contained resources so they are retained when added to a HAPI FHIR server.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Contained Resource Reference
... extension 0..0
... url 1..1 uri "https://smartforms.csiro.au/ig/StructureDefinition/ContainedResourceReference"
... value[x] 1..1 Reference() Value of extension

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Contained Resource Reference
... id 0..1 string Unique id for inter-element referencing
... extension 0..0
... url 1..1 uri "https://smartforms.csiro.au/ig/StructureDefinition/ContainedResourceReference"

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Reference: This extension is intended to be used as a work around to a known bug whereby contained resources that are not referenced with the type, 'Reference' are removed before a resource is created in a HAPI FHIR server. This is problematic when referencing with the type, 'canonical'. The extension can be used to reference contained resources so they are retained when added to a HAPI FHIR server.

 

Other representations of profile: CSV, Excel, Schematron

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()