Smart Forms
0.2.0 - ci-build

Smart Forms, published by AEHRC CSIRO. This guide is not an authorized publication; it is the continuous build for version 0.2.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.2.0
Draft as of 2024-11-29 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):

  • Element ID Element

Usage info

Usage:

Formal Views of Extension Content

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

This structure is derived from Extension

Summary

Simple Extension of 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.

This structure is derived from Extension

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

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. 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 of 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 & Constraintsdoco
.. Extension 0..* Extension Contained Resource Reference
... extension 0..0
... url 1..1 uri "https://smartforms.csiro.au/ig/StructureDefinition/ContainedResourceReference"
... value[x] 0..1 Reference() Value of extension

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. 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

 

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()