Union of http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-mhd-documentreference-comprehensive and http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-mhd-documentreference-comprehensive

This is the set of resources that conform to either of the profiles CH MHD DocumentReference Comprehensive (http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-mhd-documentreference-comprehensive) and CH MHD DocumentReference Comprehensive (http://fhir.ch/ig/ch-epr-fhir/StructureDefinition/ch-mhd-documentreference-comprehensive). E.g. what you have to deal with if you get resources conforming to one of them

Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference C0..*CH MHD DocumentReference Comprehensive
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
ch-mhd: The DocumentReference needs to conform to IHE.MHD.Comprehensive.DocumentReference
... meta Σ0..1MetaMetadata about the resource
ele-1: All FHIR elements must have a @value or children
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... language 0..1codeLanguage of the resource content
Binding: ?? (preferred): A human language.


ele-1: All FHIR elements must have a @value or children
... contained 0..*ResourceContained, inline Resources
... extension S1..*ExtensionExtension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... masterIdentifier S1..1??An identifier intended for computation
ele-1: All FHIR elements must have a @value or children
... identifier SΣ0..*IdentifierOther identifiers for the document
ele-1: All FHIR elements must have a @value or children
... status ?!SΣ1..1codecurrent | superseded
Binding: ?? (required): The status of the document reference.


ele-1: All FHIR elements must have a @value or children
... type SΣ1..1CodeableConceptKind of document (LOINC if possible)
Binding: ?? (required)
ele-1: All FHIR elements must have a @value or children
... category SΣ1..1CodeableConceptCategorization of document
Binding: ?? (required)
ele-1: All FHIR elements must have a @value or children
... subject SΣ1..1Reference(CH Core Patient) {r}Who/what is the subject of the document
ele-1: All FHIR elements must have a @value or children
... date SΣ1..1instantWhen this document reference was created
ele-1: All FHIR elements must have a @value or children
... author SΣ0..*Reference() {c}Who and/or what authored the document
ele-1: All FHIR elements must have a @value or children
... authenticator 0..1Reference() {c}Who/what authenticated the document
ele-1: All FHIR elements must have a @value or children
... relatesTo SΣ0..*BackboneElementRelationships to other documents
ele-1: All FHIR elements must have a @value or children
.... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... code Σ1..1codereplaces | transforms | signs | appends
Binding: ?? (required): The type of relationship between documents.


ele-1: All FHIR elements must have a @value or children
.... target Σ1..1Reference(CH Core DocumentReference)Target of the relationship
ele-1: All FHIR elements must have a @value or children
... description SΣ0..1stringHuman-readable description
ele-1: All FHIR elements must have a @value or children
... securityLabel SΣ1..*CodeableConceptDocument security-tags
Binding: ?? (required)
ele-1: All FHIR elements must have a @value or children
... content Σ1..1BackboneElementDocument referenced
ele-1: All FHIR elements must have a @value or children
.... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... attachment SΣ1..1AttachmentWhere to access the document
ele-1: All FHIR elements must have a @value or children
..... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... contentType SΣC1..1codeMime type of the content, with charset etc.
Binding: ?? (required)
ele-1: All FHIR elements must have a @value or children
ch-docref-1: The codes from the following ValueSet are 'preferred': http://fhir.ch/ig/ch-term/ValueSet/DocumentEntry.mimeType
Example General: text/plain; charset=UTF-8, image/png
..... language SΣ1..1codeHuman language of the content (BCP-47)
Binding: ?? (required)
ele-1: All FHIR elements must have a @value or children
Example General: en-AU
..... url SΣ1..1urlUri where the data can be found
ele-1: All FHIR elements must have a @value or children
Example General: http://www.acme.com/logo-small.png
..... size SΣ0..1unsignedIntNumber of bytes of content (if url provided)
ele-1: All FHIR elements must have a @value or children
..... hash SΣ0..1base64BinaryHash of the data (sha-1, base64ed)
ele-1: All FHIR elements must have a @value or children
..... title SΣ0..1stringLabel to display in place of the data
ele-1: All FHIR elements must have a @value or children
Example General: Official Corporate Logo
..... creation SΣ1..1dateTimeDate attachment was first created
ele-1: All FHIR elements must have a @value or children
.... format SΣ1..1CodingFormat/content rules for the document
Binding: ?? (required): Document Format Codes.


ele-1: All FHIR elements must have a @value or children
... context Σ1..1BackboneElementClinical context of document
ele-1: All FHIR elements must have a @value or children
.... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... encounter 0..*Reference(CH Core Encounter | EpisodeOfCare)Context of the document content
ele-1: All FHIR elements must have a @value or children
.... event 0..*CodeableConceptMain clinical acts documented
Binding: ?? (example): This list of codes represents the main clinical acts being documented.


ele-1: All FHIR elements must have a @value or children
.... period SΣ0..1PeriodTime of service that is being documented
ele-1: All FHIR elements must have a @value or children
.... facilityType S1..1CodeableConceptKind of facility where patient was seen
Binding: ?? (required): XDS Facility Type.


ele-1: All FHIR elements must have a @value or children
.... practiceSetting S1..1CodeableConceptAdditional details about where the content was created (e.g. clinical specialty)
Binding: ?? (required): Additional details about where the content was created (e.g. clinical specialty).


ele-1: All FHIR elements must have a @value or children
.... sourcePatientInfo S1..1Reference(CH Core Patient) {c}Patient demographics from source
ele-1: All FHIR elements must have a @value or children
.... related S0..*Reference(Resource)Related identifiers or resources
ele-1: All FHIR elements must have a @value or children
..... extension 0..*ExtensionAdditional content defined by implementations
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... reference Σ0..1stringLiteral reference, Relative, internal or absolute URL
ele-1: All FHIR elements must have a @value or children
..... type Σ0..1uriType the reference refers to (e.g. "Patient")
Binding: ?? (extensible): Aa resource (or, for logical models, the URI of the logical model).


ele-1: All FHIR elements must have a @value or children
..... identifier SΣ0..1IdentifierRequirements on XDS-I.b (Swiss context): When a Imaging Document Source provides a document to the Document Repository, it must provide the StudyInstanceUID, found in the to be registered KOS object, in the referenceIdList (urn:ihe:iti:xds:2013:referenceIdList) attribute of the documentEntry metadata.
ele-1: All FHIR elements must have a @value or children
..... display Σ0..1stringText alternative for the resource
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format