CH Core (R4)
6.0.0-ballot-ci-build - ci-build Switzerland flag

CH Core (R4), published by HL7 Switzerland. This guide is not an authorized publication; it is the continuous build for version 6.0.0-ballot-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7ch/ch-core/ and changes regularly. See the Directory of published versions

Extension: Entry Resource Cross References

Official URL: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-ext-entry-resource-cross-references Version: 6.0.0-ballot-ci-build
Active as of 2023-11-02 Computable Name: EntryResourceCrossReferences

Copyright/Legal: CC0-1.0

Extension to make a reference beween resources as entries in i.e. document bundles.

Context of Use

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

  • Element ID DomainResource

Scope and Usage

This Extension can be used to reference entry to entry in two different documents (i.e. Bundle[type=document]). If you have to change attributes of an entry (i.e. Immunization) which is documented in a FHIR document Bundle/Composition, you create a new document - or a copy of - with the same content.

  • First you change the attributes of the entry which have to be changed.
  • Second you add the relatesTo information to the Composition in the new document.
  • Third you add this extension to the Immunization entry in the new document.
    • The entry slice will be filled with the Identifier of the entry in the original document and define the resource type (Immunization).
    • The container slice will be filled with the Identifier and resource type of the Composition in the original document.
    • The relationcode slice will be set with the corresponding code (i.e. replaces).

You can use this extension for all kind of resources and containers.

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

Complex Extension: Extension to make a reference beween resources as entries in i.e. document bundles.

  • entry: base64Binary, boolean, canonical, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta: Reference to the related entry.
  • container: base64Binary, boolean, canonical, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference, SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta: Reference to the related container resource
  • relationcode: code: Reference to the related document

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

PathConformanceValueSetURI
Extension.extension:entry.value[x]:valueReference.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
Extension.extension:container.value[x]:valueReference.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
Extension.extension:relationcode.value[x]:valueCoderequiredDocumentRelationshipType
http://hl7.org/fhir/ValueSet/document-relationship-type
from the FHIR Standard

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