0.1.7 - ci-build

EgdeEHG_IG - Local Development build (v0.1.7). See the Directory of published versions

Resource Profile: DocumentReference - Egde Health Gateway - profile

Official URL: http://www.egde.no/StructureDefinition/ehg-no-DocumentReference Version: 0.1.7
Draft as of 2023-03-24 Computable Name: EhgNoDocumentReference

Egde Health Gateway DocumentReference profile

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

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

This structure is derived from NoBasisDocumentReference

NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*NoBasisDocumentReferenceA reference to a document
... status S1..1codecurrent | superseded | entered-in-error
... type 0..1CodeableConceptKind of document
Binding: Volven 9602 Dokumenttyper (required)
... subject 0..1Reference(Patient - Egde Health Gateway - profile for Norwegian patients)Who/what is the subject of the document
... author 0..*Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use)Who and/or what authored the document
... description S0..1stringHuman-readable description
... content
.... attachment S1..1EhgAttachmentContent in a format defined elsewhere

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
DocumentReference.typerequiredDokumentyper9602VS
NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*NoBasisDocumentReferenceA reference to a document
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!SΣ1..1codecurrent | superseded | entered-in-error
Binding: DocumentReferenceStatus (required): The status of the document reference.

... subject ΣC0..1Reference(Patient - Egde Health Gateway - profile for Norwegian patients)Who/what is the subject of the document
... date SΣ0..1instantWhen this document reference was created
... author ΣC0..*Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use)Who and/or what authored the document
... description SΣ0..1stringHuman-readable description
... content ΣN1..*BackboneElementDocument referenced
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... attachment SC1..1EhgAttachmentContent in a format defined elsewhere

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
DocumentReference.statusrequiredDocumentReferenceStatus
DocumentReference.typerequiredDokumentyper9602VS

Constraints

IdGradePath(s)DetailsRequirements
att-1errorDocumentReference.content.attachmentIf the Attachment has data, it SHALL have a contentType
: data.empty() or contentType.exists()
dom-2errorDocumentReferenceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorDocumentReferenceIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorDocumentReferenceIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorDocumentReferenceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceDocumentReferenceA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ref-1errorDocumentReference.subject, DocumentReference.authorSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*NoBasisDocumentReferenceA reference to a document
... id Σ0..1idLogical id of this artifact
... meta ΣN0..1MetaMetadata about the resource
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... text N0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... masterIdentifier ΣN0..1IdentifierMaster Version Specific Identifier
... identifier ΣN0..*IdentifierOther identifiers for the document
... status ?!SΣ1..1codecurrent | superseded | entered-in-error
Binding: DocumentReferenceStatus (required): The status of the document reference.

... docStatus ΣN0..1codepreliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): Status of the underlying document.

... type Σ0..1CodeableConceptKind of document
Binding: Volven 9602 Dokumenttyper (required)
... category ΣN0..*CodeableConceptCategorization of document
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.


... subject ΣC0..1Reference(Patient - Egde Health Gateway - profile for Norwegian patients)Who/what is the subject of the document
... date SΣ0..1instantWhen this document reference was created
... author ΣC0..*Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use)Who and/or what authored the document
... authenticator CN0..1Reference(Practitioner | PractitionerRole | Organization)Who/what authenticated the document
... custodian CN0..1Reference(Organization)Organization which maintains the document
... relatesTo ΣN0..*BackboneElementRelationships to other documents
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... code ΣN1..1codereplaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): The type of relationship between documents.

.... target ΣCN1..1Reference(DocumentReference)Target of the relationship
... description SΣ0..1stringHuman-readable description
... securityLabel ΣN0..*CodeableConceptDocument security-tags
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


... content ΣN1..*BackboneElementDocument referenced
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... attachment SC1..1EhgAttachmentContent in a format defined elsewhere
.... format ΣN0..1CodingFormat/content rules for the document
Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes.

... context ΣN0..1BackboneElementClinical context of document
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... encounter CN0..*Reference(Encounter | EpisodeOfCare)Context of the document content
.... event N0..*CodeableConceptMain clinical acts documented
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.


.... period ΣCN0..1PeriodTime of service that is being documented
.... facilityType N0..1CodeableConceptKind of facility where patient was seen
Binding: FacilityTypeCodeValueSet (example): XDS Facility Type.

.... practiceSetting N0..1CodeableConceptAdditional details about where the content was created (e.g. clinical specialty)
Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty).

.... sourcePatientInfo CN0..1Reference(Patient)Patient demographics from source
.... related CN0..*Reference(Resource)Related identifiers or resources

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
DocumentReference.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
DocumentReference.statusrequiredDocumentReferenceStatus
DocumentReference.docStatusrequiredCompositionStatus
DocumentReference.typerequiredDokumentyper9602VS
DocumentReference.categoryexampleDocumentClassValueSet
DocumentReference.relatesTo.coderequiredDocumentRelationshipType
DocumentReference.securityLabelextensibleAll Security Labels
DocumentReference.content.formatpreferredDocumentReferenceFormatCodeSet (a valid code from http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem)
DocumentReference.context.eventexampleActCode
DocumentReference.context.facilityTypeexampleFacilityTypeCodeValueSet
DocumentReference.context.practiceSettingexamplePracticeSettingCodeValueSet

Constraints

IdGradePath(s)DetailsRequirements
att-1errorDocumentReference.content.attachmentIf the Attachment has data, it SHALL have a contentType
: data.empty() or contentType.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
per-1errorDocumentReference.context.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorDocumentReference.subject, DocumentReference.author, DocumentReference.authenticator, DocumentReference.custodian, DocumentReference.relatesTo.target, DocumentReference.context.encounter, DocumentReference.context.sourcePatientInfo, DocumentReference.context.relatedSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

Differential View

This structure is derived from NoBasisDocumentReference

NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*NoBasisDocumentReferenceA reference to a document
... status S1..1codecurrent | superseded | entered-in-error
... type 0..1CodeableConceptKind of document
Binding: Volven 9602 Dokumenttyper (required)
... subject 0..1Reference(Patient - Egde Health Gateway - profile for Norwegian patients)Who/what is the subject of the document
... author 0..*Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use)Who and/or what authored the document
... description S0..1stringHuman-readable description
... content
.... attachment S1..1EhgAttachmentContent in a format defined elsewhere

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
DocumentReference.typerequiredDokumentyper9602VS

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*NoBasisDocumentReferenceA reference to a document
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... status ?!SΣ1..1codecurrent | superseded | entered-in-error
Binding: DocumentReferenceStatus (required): The status of the document reference.

... subject ΣC0..1Reference(Patient - Egde Health Gateway - profile for Norwegian patients)Who/what is the subject of the document
... date SΣ0..1instantWhen this document reference was created
... author ΣC0..*Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use)Who and/or what authored the document
... description SΣ0..1stringHuman-readable description
... content ΣN1..*BackboneElementDocument referenced
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... attachment SC1..1EhgAttachmentContent in a format defined elsewhere

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
DocumentReference.statusrequiredDocumentReferenceStatus
DocumentReference.typerequiredDokumentyper9602VS

Constraints

IdGradePath(s)DetailsRequirements
att-1errorDocumentReference.content.attachmentIf the Attachment has data, it SHALL have a contentType
: data.empty() or contentType.exists()
dom-2errorDocumentReferenceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorDocumentReferenceIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorDocumentReferenceIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorDocumentReferenceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceDocumentReferenceA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ref-1errorDocumentReference.subject, DocumentReference.authorSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. DocumentReference 0..*NoBasisDocumentReferenceA reference to a document
... id Σ0..1idLogical id of this artifact
... meta ΣN0..1MetaMetadata about the resource
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... text N0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... masterIdentifier ΣN0..1IdentifierMaster Version Specific Identifier
... identifier ΣN0..*IdentifierOther identifiers for the document
... status ?!SΣ1..1codecurrent | superseded | entered-in-error
Binding: DocumentReferenceStatus (required): The status of the document reference.

... docStatus ΣN0..1codepreliminary | final | amended | entered-in-error
Binding: CompositionStatus (required): Status of the underlying document.

... type Σ0..1CodeableConceptKind of document
Binding: Volven 9602 Dokumenttyper (required)
... category ΣN0..*CodeableConceptCategorization of document
Binding: DocumentClassValueSet (example): High-level kind of a clinical document at a macro level.


... subject ΣC0..1Reference(Patient - Egde Health Gateway - profile for Norwegian patients)Who/what is the subject of the document
... date SΣ0..1instantWhen this document reference was created
... author ΣC0..*Reference(Practitioner - Egde Health Gateway - profile for Norwegian practitioners | Organization - Egde Health Gateway - profile for domestic use | Organization - Egde Health Gateway - profile for domestic use)Who and/or what authored the document
... authenticator CN0..1Reference(Practitioner | PractitionerRole | Organization)Who/what authenticated the document
... custodian CN0..1Reference(Organization)Organization which maintains the document
... relatesTo ΣN0..*BackboneElementRelationships to other documents
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... code ΣN1..1codereplaces | transforms | signs | appends
Binding: DocumentRelationshipType (required): The type of relationship between documents.

.... target ΣCN1..1Reference(DocumentReference)Target of the relationship
... description SΣ0..1stringHuman-readable description
... securityLabel ΣN0..*CodeableConceptDocument security-tags
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


... content ΣN1..*BackboneElementDocument referenced
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... attachment SC1..1EhgAttachmentContent in a format defined elsewhere
.... format ΣN0..1CodingFormat/content rules for the document
Binding: DocumentReferenceFormatCodeSet (preferred): Document Format Codes.

... context ΣN0..1BackboneElementClinical context of document
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!ΣN0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... encounter CN0..*Reference(Encounter | EpisodeOfCare)Context of the document content
.... event N0..*CodeableConceptMain clinical acts documented
Binding: v3 Code System ActCode (example): This list of codes represents the main clinical acts being documented.


.... period ΣCN0..1PeriodTime of service that is being documented
.... facilityType N0..1CodeableConceptKind of facility where patient was seen
Binding: FacilityTypeCodeValueSet (example): XDS Facility Type.

.... practiceSetting N0..1CodeableConceptAdditional details about where the content was created (e.g. clinical specialty)
Binding: PracticeSettingCodeValueSet (example): Additional details about where the content was created (e.g. clinical specialty).

.... sourcePatientInfo CN0..1Reference(Patient)Patient demographics from source
.... related CN0..*Reference(Resource)Related identifiers or resources

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
DocumentReference.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
DocumentReference.statusrequiredDocumentReferenceStatus
DocumentReference.docStatusrequiredCompositionStatus
DocumentReference.typerequiredDokumentyper9602VS
DocumentReference.categoryexampleDocumentClassValueSet
DocumentReference.relatesTo.coderequiredDocumentRelationshipType
DocumentReference.securityLabelextensibleAll Security Labels
DocumentReference.content.formatpreferredDocumentReferenceFormatCodeSet (a valid code from http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem)
DocumentReference.context.eventexampleActCode
DocumentReference.context.facilityTypeexampleFacilityTypeCodeValueSet
DocumentReference.context.practiceSettingexamplePracticeSettingCodeValueSet

Constraints

IdGradePath(s)DetailsRequirements
att-1errorDocumentReference.content.attachmentIf the Attachment has data, it SHALL have a contentType
: data.empty() or contentType.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
per-1errorDocumentReference.context.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorDocumentReference.subject, DocumentReference.author, DocumentReference.authenticator, DocumentReference.custodian, DocumentReference.relatesTo.target, DocumentReference.context.encounter, DocumentReference.context.sourcePatientInfo, DocumentReference.context.relatedSHALL have a contained resource if a local reference is provided
: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

 

Other representations of profile: CSV, Excel, Schematron