Skip to main content

DocumentReference

ResourceFoundation · DocumentsTrial useMaturity 3

A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
24 of 25 parameters tested

Structure​

ElementCard.TypeDescription
masterIdentifierΣ
0..1IdentifierMaster Version Specific Identifier
identifierΣ
0..*IdentifierOther identifiers for the document
statusRequired?!Σ
1..1codecurrent | superseded | entered-in-errorBinding (required): document-reference-status
docStatusΣ
0..1codepreliminary | final | amended | entered-in-errorBinding (required): composition-status
typeΣ
0..1CodeableConceptKind of document (LOINC if possible)Binding (preferred): c80-doc-typecodes
categoryΣ
0..*CodeableConceptCategorization of documentBinding (example): document-classcodes
subjectΣ
0..1Reference(Patient | Practitioner | Group | Device)Who/what is the subject of the document
dateΣ
0..1instantWhen this document reference was created
authorΣ
0..*Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson)Who and/or what authored the document
authenticator
0..1Reference(Practitioner | PractitionerRole | Organization)Who/what authenticated the document
custodian
0..1Reference(Organization)Organization which maintains the document
relatesToΣ
0..*BackboneElementRelationships to other documents
codeRequiredΣ
1..1codereplaces | transforms | signs | appendsBinding (required): document-relationship-type
targetRequiredΣ
1..1Reference(DocumentReference)Target of the relationship
descriptionΣ
0..1stringHuman-readable description
securityLabelΣ
0..*CodeableConceptDocument security-tagsBinding (extensible): security-labels
contentRequiredΣ
1..*BackboneElementDocument referenced
attachmentRequiredΣ
1..1AttachmentWhere to access the document
formatΣ
0..1CodingFormat/content rules for the documentBinding (preferred): formatcodes
contextΣ
0..1BackboneElementClinical context of document
encounter
0..*Reference(Encounter | EpisodeOfCare)Context of the document content
event
0..*CodeableConceptMain clinical acts documentedBinding (example): v3-ActCode
periodΣ
0..1PeriodTime of service that is being documented
facilityType
0..1CodeableConceptKind of facility where patient was seenBinding (example): c80-facilitycodes
practiceSetting
0..1CodeableConceptAdditional details about where the content was created (e.g. clinical specialty)Binding (example): c80-practice-codes
sourcePatientInfo
0..1Reference(Patient)Patient demographics from source
related
0..*Reference(Resource)Related identifiers or resources

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/DocumentReference?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
authenticatorreference

Who/what authenticated the document

DocumentReference.authenticator
authorreference

Who and/or what authored the document

DocumentReference.author
categorytoken

Categorization of document

DocumentReference.category
contenttypetoken

Mime type of the content, with charset etc.

DocumentReference.content.attachment.contentType
custodianreference

Organization which maintains the document

DocumentReference.custodian
datedate

When this document reference was created

DocumentReference.date
descriptionstring

Human-readable description

DocumentReference.description
encounterreference

Context of the document content

DocumentReference.context.encounter
eventtoken

Main clinical acts documented

DocumentReference.context.event
facilitytoken

Kind of facility where patient was seen

DocumentReference.context.facilityType
formattoken

Format/content rules for the document

DocumentReference.content.format
identifiertoken

Master Version Specific Identifier

DocumentReference.masterIdentifier | DocumentReference.identifier
languagetoken

Human language of the content (BCP-47)

DocumentReference.content.attachment.language
locationuri

Uri where the data can be found

DocumentReference.content.attachment.url
patientreference

Who/what is the subject of the document

DocumentReference.subject.where(resolve() is Patient)
perioddate

Time of service that is being documented

DocumentReference.context.period
relatestoreference

Target of the relationship

DocumentReference.relatesTo.target
relationtoken

replaces | transforms | signs | appends

DocumentReference.relatesTo.code
relationshipcomposite

Combination of relation and relatesTo

DocumentReference.relatesTo
security-labeltoken

Document security-tags

DocumentReference.securityLabel
settingtoken

Additional details about where the content was created (e.g. clinical specialty)

DocumentReference.context.practiceSetting
statustoken

current | superseded | entered-in-error

DocumentReference.status
subjectreference

Who/what is the subject of the document

DocumentReference.subject
typetoken

Kind of document (LOINC if possible)

DocumentReference.type

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition