eHealth Infrastructure (v2019.5.3)

StructureDefinition: ehealth-documentreference

Introduction

A DocumentReference resource is used to describe a document that is made available to a healthcare system. A document is some sequence of bytes that is identifiable, establishes its own context (e.g., what subject, author, etc. can be displayed to the user), and has defined update management. The DocumentReference resource can be used with any document format that has a recognized mime type and that conforms to this definition.

Typically, DocumentReference resources are used in document indexing systems, such as IHE XDS , and are used to refer to:

  • CDA documents in FHIR systems
  • FHIR documents stored elsewhere (i.e. registry/repository following the XDS model)
  • PDF documents , and even digital records of faxes where sufficient information is available
  • Other kinds of documents, such as records of prescriptions

Scope and Usage

In scope of the eHealth infrastructure the primary use of the DocumentReference resource is to contain or refer to information material used in relation to PlanDefinition and Questionnaire. This information material can be in the form of embedded material (of limited size) or references to videos, PDF-files or printed material.

See eHealth-plandefinition for further details.

Formal Views of Profile Content

The official URL for this profile is:

http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference

This profile builds on DocumentReference.

This profile was published on Fri Jun 07 11:10:06 UTC 2019 as a draft by null.

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

 

Terminology Bindings

PathNameConformanceValueSet
DocumentReference.languageCommon LanguagesextensibleCommon Languages
DocumentReference.statusDocumentReferenceStatusrequiredDocumentReferenceStatus
DocumentReference.docStatusCompositionStatusrequiredCompositionStatus
DocumentReference.typeDocumentTyperequiredDocumentType
DocumentReference.classDocumentClassrequiredDocumentClass
DocumentReference.relatesTo.codeDocumentRelationshipTyperequiredDocumentRelationshipType
DocumentReference.securityLabelAll Security LabelsextensibleAll Security Labels
DocumentReference.content.formatFormatCodesrequiredFormatCodes
DocumentReference.context.eventEventTypeCodesrequiredEventTypeCodes
DocumentReference.context.facilityTypeFacilityTypeCodesrequiredFacilityTypeCodes
DocumentReference.context.practiceSettingPracticeSettingCodesrequiredPracticeSettingCodes

Constraints

IdPathDetailsRequirements
dom-2DocumentReferenceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-1DocumentReferenceIf the resource is contained in another resource, it SHALL NOT contain any narrative
: contained.text.empty()
dom-4DocumentReferenceIf 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-3DocumentReferenceIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
ele-1DocumentReference.relatesToAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
ele-1DocumentReference.contentAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
ele-1DocumentReference.contextAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
ele-1DocumentReference.context.relatedAll FHIR elements must have a @value or children
: hasValue() | (children().count() > id.count())
.