This page is part of the FHIR Specification (v4.6.0: R5 Draft Ballot - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
Orders and Observations Work Group | Maturity Level: 3 | Trial Use | Security Category: Not Classified | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
This resource has been identified by FMG as a possible normative candidate for R5; this will be discussed with it's owning committee. Ballot comment is requested on this.
A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this "document" encompasses any serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference.
A DocumentReference resource is used to index a document, clinical note, and other binary objects such as a photo, video, or audio recording, including those resulting from diagnostic or care provision procedures, to make them 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 presented 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.
DocumentReference contains metadata, inline content or direct references to documents such as:
FHIR defines both a document format and this document reference. FHIR documents are for documents that are authored and assembled in FHIR. DocumentReference is intended for general references to any type of media file including assembled documents.
The document that is a target of the reference can be a reference to a FHIR document served by another server, or the target can be stored in the special FHIR Binary Resource, or the target can be stored on some other server system. The document reference is also able to address documents that are retrieved by a service call such as an XDS.b RetrieveDocumentSet, or a DICOM exchange, or an HL7 v2 message query - though the way each of these service calls works must be specified in some external standard or other documentation.
A DocumentReference
describes some other document. This means that there are two sets of
provenance information relevant here: the provenance of the document, and the provenance of the document
reference. Sometimes, the provenance information is closely related, as when the document producer also
produces the document reference, but in other workflows, the document reference is generated later by
other actors. In the DocumentReference
resource, the meta
content refers to the provenance of the reference itself, while the content described below concerns
the document it references. Like all resources, there is overlap between the information in the
resource directly, and in the general Provenance resource. This is
discussed as part of the description of the Provenance resource.
This resource is referenced by AdverseEvent, Consent, Contract, DeviceUsage, DiagnosticReport, itself, MedicationKnowledge, MedicinalProductDefinition, Observation, PackagedProductDefinition, Procedure, RegulatedAuthorization, SubstanceDefinition and SubstanceReferenceInformation.
This resource implements the Event pattern.
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
DocumentReference | TU | DomainResource | A reference to a document Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | |
identifier | Σ | 0..* | Identifier | Other identifiers for the document |
basedOn | 0..* | Reference(ServiceRequest | CarePlan) | Procedure that caused this media to be created | |
status | ?!Σ | 1..1 | code | current | superseded | entered-in-error DocumentReferenceStatus (Required) |
docStatus | Σ | 0..1 | code | preliminary | final | amended | entered-in-error CompositionStatus (Required) |
type | Σ | 0..1 | CodeableConcept | Kind of document (LOINC if possible) DocumentC80Type (Preferred) |
category | Σ | 0..* | CodeableConcept | Categorization of document Document Class Value Set (Example) |
subject | Σ | 0..1 | Reference(Patient | Practitioner | Group | Device | PractitionerRole | Specimen | Organization | Location) | Who/what is the subject of the document |
encounter | 0..* | Reference(Encounter) | Context of the document content | |
event | 0..* | CodeableConcept | Main clinical acts documented v3 Code System ActCode (Example) | |
facilityType | 0..1 | CodeableConcept | Kind of facility where patient was seen DocumentC80FacilityType (Example) | |
practiceSetting | 0..1 | CodeableConcept | Additional details about where the content was created (e.g. clinical specialty) DocumentC80PracticeSetting (Example) | |
period | Σ | 0..1 | Period | Time of service that is being documented |
date | Σ | 0..1 | instant | When this document reference was created |
author | Σ | 0..* | Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson | CareTeam) | Who and/or what authored the document |
attester | 0..* | BackboneElement | Attests to accuracy of composition | |
mode | 1..1 | code | personal | professional | legal | official DocumentAttestationMode (Required) | |
time | 0..1 | dateTime | When the composition was attested | |
party | 0..1 | Reference(Patient | RelatedPerson | Practitioner | PractitionerRole | Organization) | Who attested the composition | |
custodian | 0..1 | Reference(Organization) | Organization which maintains the document | |
relatesTo | Σ | 0..* | BackboneElement | Relationships to other documents |
code | Σ | 1..1 | code | replaces | transforms | signs | appends DocumentRelationshipType (Required) |
target | Σ | 1..1 | Reference(DocumentReference) | Target of the relationship |
description | Σ | 0..1 | markdown | Human-readable description |
securityLabel | Σ | 0..* | CodeableConcept | Document security-tags SecurityLabels (Extensible) |
content | Σ | 1..* | BackboneElement | Document referenced |
attachment | Σ | 1..1 | Attachment | Where to access the document |
format | Σ | 0..1 | Coding | Format/content rules for the document DocumentReference Format Code Set (Preferred) |
identifier | Σ | 0..1 | Identifier | Identifier of the attachment binary |
sourcePatientInfo | 0..1 | Reference(Patient) | Patient demographics from source | |
related | 0..* | Reference(Any) | Related identifiers or resources | |
Documentation for this format |
UML Diagram (Legend)
XML Template
<DocumentReference xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <identifier><!-- 0..* Identifier Other identifiers for the document --></identifier> <basedOn><!-- 0..* Reference(CarePlan|ServiceRequest) Procedure that caused this media to be created --></basedOn> <status value="[code]"/><!-- 1..1 current | superseded | entered-in-error --> <docStatus value="[code]"/><!-- 0..1 preliminary | final | amended | entered-in-error --> <type><!-- 0..1 CodeableConcept Kind of document (LOINC if possible) --></type> <category><!-- 0..* CodeableConcept Categorization of document --></category> <subject><!-- 0..1 Reference(Device|Group|Location|Organization|Patient| Practitioner|PractitionerRole|Specimen) Who/what is the subject of the document --></subject> <encounter><!-- 0..* Reference(Encounter) Context of the document content --></encounter> <event><!-- 0..* CodeableConcept Main clinical acts documented --></event> <facilityType><!-- 0..1 CodeableConcept Kind of facility where patient was seen --></facilityType> <practiceSetting><!-- 0..1 CodeableConcept Additional details about where the content was created (e.g. clinical specialty) --></practiceSetting> <period><!-- 0..1 Period Time of service that is being documented --></period> <date value="[instant]"/><!-- 0..1 When this document reference was created --> <author><!-- 0..* Reference(CareTeam|Device|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) Who and/or what authored the document --></author> <attester> <!-- 0..* Attests to accuracy of composition --> <mode value="[code]"/><!-- 1..1 personal | professional | legal | official --> <time value="[dateTime]"/><!-- 0..1 When the composition was attested --> <party><!-- 0..1 Reference(Organization|Patient|Practitioner|PractitionerRole| RelatedPerson) Who attested the composition --></party> </attester> <custodian><!-- 0..1 Reference(Organization) Organization which maintains the document --></custodian> <relatesTo> <!-- 0..* Relationships to other documents --> <code value="[code]"/><!-- 1..1 replaces | transforms | signs | appends --> <target><!-- 1..1 Reference(DocumentReference) Target of the relationship --></target> </relatesTo> <description value="[markdown]"/><!-- 0..1 Human-readable description --> <securityLabel><!-- 0..* CodeableConcept Document security-tags --></securityLabel> <content> <!-- 1..* Document referenced --> <attachment><!-- 1..1 Attachment Where to access the document --></attachment> <format><!-- 0..1 Coding Format/content rules for the document --></format> <identifier><!-- 0..1 Identifier Identifier of the attachment binary --></identifier> </content> <sourcePatientInfo><!-- 0..1 Reference(Patient) Patient demographics from source --></sourcePatientInfo> <related><!-- 0..* Reference(Any) Related identifiers or resources --></related> </DocumentReference>
JSON Template
{ "resourceType" : "DocumentReference", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "identifier" : [{ Identifier }], // Other identifiers for the document "basedOn" : [{ Reference(CarePlan|ServiceRequest) }], // Procedure that caused this media to be created "status" : "<code>", // R! current | superseded | entered-in-error "docStatus" : "<code>", // preliminary | final | amended | entered-in-error "type" : { CodeableConcept }, // Kind of document (LOINC if possible) "category" : [{ CodeableConcept }], // Categorization of document "subject" : { Reference(Device|Group|Location|Organization|Patient| Practitioner|PractitionerRole|Specimen) }, // Who/what is the subject of the document "encounter" : [{ Reference(Encounter) }], // Context of the document content "event" : [{ CodeableConcept }], // Main clinical acts documented "facilityType" : { CodeableConcept }, // Kind of facility where patient was seen "practiceSetting" : { CodeableConcept }, // Additional details about where the content was created (e.g. clinical specialty) "period" : { Period }, // Time of service that is being documented "date" : "<instant>", // When this document reference was created "author" : [{ Reference(CareTeam|Device|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) }], // Who and/or what authored the document "attester" : [{ // Attests to accuracy of composition "mode" : "<code>", // R! personal | professional | legal | official "time" : "<dateTime>", // When the composition was attested "party" : { Reference(Organization|Patient|Practitioner|PractitionerRole| RelatedPerson) } // Who attested the composition }], "custodian" : { Reference(Organization) }, // Organization which maintains the document "relatesTo" : [{ // Relationships to other documents "code" : "<code>", // R! replaces | transforms | signs | appends "target" : { Reference(DocumentReference) } // R! Target of the relationship }], "description" : "<markdown>", // Human-readable description "securityLabel" : [{ CodeableConcept }], // Document security-tags "content" : [{ // R! Document referenced "attachment" : { Attachment }, // R! Where to access the document "format" : { Coding }, // Format/content rules for the document "identifier" : { Identifier } // Identifier of the attachment binary }], "sourcePatientInfo" : { Reference(Patient) }, // Patient demographics from source "related" : [{ Reference(Any) }] // Related identifiers or resources }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:DocumentReference; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:DocumentReference.identifier [ Identifier ], ... ; # 0..* Other identifiers for the document fhir:DocumentReference.basedOn [ Reference(CarePlan|ServiceRequest) ], ... ; # 0..* Procedure that caused this media to be created fhir:DocumentReference.status [ code ]; # 1..1 current | superseded | entered-in-error fhir:DocumentReference.docStatus [ code ]; # 0..1 preliminary | final | amended | entered-in-error fhir:DocumentReference.type [ CodeableConcept ]; # 0..1 Kind of document (LOINC if possible) fhir:DocumentReference.category [ CodeableConcept ], ... ; # 0..* Categorization of document fhir:DocumentReference.subject [ Reference(Device|Group|Location|Organization|Patient|Practitioner|PractitionerRole| Specimen) ]; # 0..1 Who/what is the subject of the document fhir:DocumentReference.encounter [ Reference(Encounter) ], ... ; # 0..* Context of the document content fhir:DocumentReference.event [ CodeableConcept ], ... ; # 0..* Main clinical acts documented fhir:DocumentReference.facilityType [ CodeableConcept ]; # 0..1 Kind of facility where patient was seen fhir:DocumentReference.practiceSetting [ CodeableConcept ]; # 0..1 Additional details about where the content was created (e.g. clinical specialty) fhir:DocumentReference.period [ Period ]; # 0..1 Time of service that is being documented fhir:DocumentReference.date [ instant ]; # 0..1 When this document reference was created fhir:DocumentReference.author [ Reference(CareTeam|Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ], ... ; # 0..* Who and/or what authored the document fhir:DocumentReference.attester [ # 0..* Attests to accuracy of composition fhir:DocumentReference.attester.mode [ code ]; # 1..1 personal | professional | legal | official fhir:DocumentReference.attester.time [ dateTime ]; # 0..1 When the composition was attested fhir:DocumentReference.attester.party [ Reference(Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ]; # 0..1 Who attested the composition ], ...; fhir:DocumentReference.custodian [ Reference(Organization) ]; # 0..1 Organization which maintains the document fhir:DocumentReference.relatesTo [ # 0..* Relationships to other documents fhir:DocumentReference.relatesTo.code [ code ]; # 1..1 replaces | transforms | signs | appends fhir:DocumentReference.relatesTo.target [ Reference(DocumentReference) ]; # 1..1 Target of the relationship ], ...; fhir:DocumentReference.description [ markdown ]; # 0..1 Human-readable description fhir:DocumentReference.securityLabel [ CodeableConcept ], ... ; # 0..* Document security-tags fhir:DocumentReference.content [ # 1..* Document referenced fhir:DocumentReference.content.attachment [ Attachment ]; # 1..1 Where to access the document fhir:DocumentReference.content.format [ Coding ]; # 0..1 Format/content rules for the document fhir:DocumentReference.content.identifier [ Identifier ]; # 0..1 Identifier of the attachment binary ], ...; fhir:DocumentReference.sourcePatientInfo [ Reference(Patient) ]; # 0..1 Patient demographics from source fhir:DocumentReference.related [ Reference(Any) ], ... ; # 0..* Related identifiers or resources ]
Changes since R3
DocumentReference | |
DocumentReference.basedOn |
|
DocumentReference.status |
|
DocumentReference.docStatus |
|
DocumentReference.subject |
|
DocumentReference.encounter |
|
DocumentReference.event |
|
DocumentReference.facilityType |
|
DocumentReference.practiceSetting |
|
DocumentReference.period |
|
DocumentReference.author |
|
DocumentReference.attester |
|
DocumentReference.attester.mode |
|
DocumentReference.attester.time |
|
DocumentReference.attester.party |
|
DocumentReference.relatesTo.code |
|
DocumentReference.description |
|
DocumentReference.content.identifier |
|
DocumentReference.sourcePatientInfo |
|
DocumentReference.related |
|
DocumentReference.masterIdentifier |
|
DocumentReference.authenticator |
|
DocumentReference.context |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R3 <--> R4 Conversion Maps (status = 1 test of which 1 fail to execute.)
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
DocumentReference | TU | DomainResource | A reference to a document Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | |
identifier | Σ | 0..* | Identifier | Other identifiers for the document |
basedOn | 0..* | Reference(ServiceRequest | CarePlan) | Procedure that caused this media to be created | |
status | ?!Σ | 1..1 | code | current | superseded | entered-in-error DocumentReferenceStatus (Required) |
docStatus | Σ | 0..1 | code | preliminary | final | amended | entered-in-error CompositionStatus (Required) |
type | Σ | 0..1 | CodeableConcept | Kind of document (LOINC if possible) DocumentC80Type (Preferred) |
category | Σ | 0..* | CodeableConcept | Categorization of document Document Class Value Set (Example) |
subject | Σ | 0..1 | Reference(Patient | Practitioner | Group | Device | PractitionerRole | Specimen | Organization | Location) | Who/what is the subject of the document |
encounter | 0..* | Reference(Encounter) | Context of the document content | |
event | 0..* | CodeableConcept | Main clinical acts documented v3 Code System ActCode (Example) | |
facilityType | 0..1 | CodeableConcept | Kind of facility where patient was seen DocumentC80FacilityType (Example) | |
practiceSetting | 0..1 | CodeableConcept | Additional details about where the content was created (e.g. clinical specialty) DocumentC80PracticeSetting (Example) | |
period | Σ | 0..1 | Period | Time of service that is being documented |
date | Σ | 0..1 | instant | When this document reference was created |
author | Σ | 0..* | Reference(Practitioner | PractitionerRole | Organization | Device | Patient | RelatedPerson | CareTeam) | Who and/or what authored the document |
attester | 0..* | BackboneElement | Attests to accuracy of composition | |
mode | 1..1 | code | personal | professional | legal | official DocumentAttestationMode (Required) | |
time | 0..1 | dateTime | When the composition was attested | |
party | 0..1 | Reference(Patient | RelatedPerson | Practitioner | PractitionerRole | Organization) | Who attested the composition | |
custodian | 0..1 | Reference(Organization) | Organization which maintains the document | |
relatesTo | Σ | 0..* | BackboneElement | Relationships to other documents |
code | Σ | 1..1 | code | replaces | transforms | signs | appends DocumentRelationshipType (Required) |
target | Σ | 1..1 | Reference(DocumentReference) | Target of the relationship |
description | Σ | 0..1 | markdown | Human-readable description |
securityLabel | Σ | 0..* | CodeableConcept | Document security-tags SecurityLabels (Extensible) |
content | Σ | 1..* | BackboneElement | Document referenced |
attachment | Σ | 1..1 | Attachment | Where to access the document |
format | Σ | 0..1 | Coding | Format/content rules for the document DocumentReference Format Code Set (Preferred) |
identifier | Σ | 0..1 | Identifier | Identifier of the attachment binary |
sourcePatientInfo | 0..1 | Reference(Patient) | Patient demographics from source | |
related | 0..* | Reference(Any) | Related identifiers or resources | |
Documentation for this format |
XML Template
<DocumentReference xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <identifier><!-- 0..* Identifier Other identifiers for the document --></identifier> <basedOn><!-- 0..* Reference(CarePlan|ServiceRequest) Procedure that caused this media to be created --></basedOn> <status value="[code]"/><!-- 1..1 current | superseded | entered-in-error --> <docStatus value="[code]"/><!-- 0..1 preliminary | final | amended | entered-in-error --> <type><!-- 0..1 CodeableConcept Kind of document (LOINC if possible) --></type> <category><!-- 0..* CodeableConcept Categorization of document --></category> <subject><!-- 0..1 Reference(Device|Group|Location|Organization|Patient| Practitioner|PractitionerRole|Specimen) Who/what is the subject of the document --></subject> <encounter><!-- 0..* Reference(Encounter) Context of the document content --></encounter> <event><!-- 0..* CodeableConcept Main clinical acts documented --></event> <facilityType><!-- 0..1 CodeableConcept Kind of facility where patient was seen --></facilityType> <practiceSetting><!-- 0..1 CodeableConcept Additional details about where the content was created (e.g. clinical specialty) --></practiceSetting> <period><!-- 0..1 Period Time of service that is being documented --></period> <date value="[instant]"/><!-- 0..1 When this document reference was created --> <author><!-- 0..* Reference(CareTeam|Device|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) Who and/or what authored the document --></author> <attester> <!-- 0..* Attests to accuracy of composition --> <mode value="[code]"/><!-- 1..1 personal | professional | legal | official --> <time value="[dateTime]"/><!-- 0..1 When the composition was attested --> <party><!-- 0..1 Reference(Organization|Patient|Practitioner|PractitionerRole| RelatedPerson) Who attested the composition --></party> </attester> <custodian><!-- 0..1 Reference(Organization) Organization which maintains the document --></custodian> <relatesTo> <!-- 0..* Relationships to other documents --> <code value="[code]"/><!-- 1..1 replaces | transforms | signs | appends --> <target><!-- 1..1 Reference(DocumentReference) Target of the relationship --></target> </relatesTo> <description value="[markdown]"/><!-- 0..1 Human-readable description --> <securityLabel><!-- 0..* CodeableConcept Document security-tags --></securityLabel> <content> <!-- 1..* Document referenced --> <attachment><!-- 1..1 Attachment Where to access the document --></attachment> <format><!-- 0..1 Coding Format/content rules for the document --></format> <identifier><!-- 0..1 Identifier Identifier of the attachment binary --></identifier> </content> <sourcePatientInfo><!-- 0..1 Reference(Patient) Patient demographics from source --></sourcePatientInfo> <related><!-- 0..* Reference(Any) Related identifiers or resources --></related> </DocumentReference>
JSON Template
{ "resourceType" : "DocumentReference", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "identifier" : [{ Identifier }], // Other identifiers for the document "basedOn" : [{ Reference(CarePlan|ServiceRequest) }], // Procedure that caused this media to be created "status" : "<code>", // R! current | superseded | entered-in-error "docStatus" : "<code>", // preliminary | final | amended | entered-in-error "type" : { CodeableConcept }, // Kind of document (LOINC if possible) "category" : [{ CodeableConcept }], // Categorization of document "subject" : { Reference(Device|Group|Location|Organization|Patient| Practitioner|PractitionerRole|Specimen) }, // Who/what is the subject of the document "encounter" : [{ Reference(Encounter) }], // Context of the document content "event" : [{ CodeableConcept }], // Main clinical acts documented "facilityType" : { CodeableConcept }, // Kind of facility where patient was seen "practiceSetting" : { CodeableConcept }, // Additional details about where the content was created (e.g. clinical specialty) "period" : { Period }, // Time of service that is being documented "date" : "<instant>", // When this document reference was created "author" : [{ Reference(CareTeam|Device|Organization|Patient|Practitioner| PractitionerRole|RelatedPerson) }], // Who and/or what authored the document "attester" : [{ // Attests to accuracy of composition "mode" : "<code>", // R! personal | professional | legal | official "time" : "<dateTime>", // When the composition was attested "party" : { Reference(Organization|Patient|Practitioner|PractitionerRole| RelatedPerson) } // Who attested the composition }], "custodian" : { Reference(Organization) }, // Organization which maintains the document "relatesTo" : [{ // Relationships to other documents "code" : "<code>", // R! replaces | transforms | signs | appends "target" : { Reference(DocumentReference) } // R! Target of the relationship }], "description" : "<markdown>", // Human-readable description "securityLabel" : [{ CodeableConcept }], // Document security-tags "content" : [{ // R! Document referenced "attachment" : { Attachment }, // R! Where to access the document "format" : { Coding }, // Format/content rules for the document "identifier" : { Identifier } // Identifier of the attachment binary }], "sourcePatientInfo" : { Reference(Patient) }, // Patient demographics from source "related" : [{ Reference(Any) }] // Related identifiers or resources }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:DocumentReference; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:DocumentReference.identifier [ Identifier ], ... ; # 0..* Other identifiers for the document fhir:DocumentReference.basedOn [ Reference(CarePlan|ServiceRequest) ], ... ; # 0..* Procedure that caused this media to be created fhir:DocumentReference.status [ code ]; # 1..1 current | superseded | entered-in-error fhir:DocumentReference.docStatus [ code ]; # 0..1 preliminary | final | amended | entered-in-error fhir:DocumentReference.type [ CodeableConcept ]; # 0..1 Kind of document (LOINC if possible) fhir:DocumentReference.category [ CodeableConcept ], ... ; # 0..* Categorization of document fhir:DocumentReference.subject [ Reference(Device|Group|Location|Organization|Patient|Practitioner|PractitionerRole| Specimen) ]; # 0..1 Who/what is the subject of the document fhir:DocumentReference.encounter [ Reference(Encounter) ], ... ; # 0..* Context of the document content fhir:DocumentReference.event [ CodeableConcept ], ... ; # 0..* Main clinical acts documented fhir:DocumentReference.facilityType [ CodeableConcept ]; # 0..1 Kind of facility where patient was seen fhir:DocumentReference.practiceSetting [ CodeableConcept ]; # 0..1 Additional details about where the content was created (e.g. clinical specialty) fhir:DocumentReference.period [ Period ]; # 0..1 Time of service that is being documented fhir:DocumentReference.date [ instant ]; # 0..1 When this document reference was created fhir:DocumentReference.author [ Reference(CareTeam|Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ], ... ; # 0..* Who and/or what authored the document fhir:DocumentReference.attester [ # 0..* Attests to accuracy of composition fhir:DocumentReference.attester.mode [ code ]; # 1..1 personal | professional | legal | official fhir:DocumentReference.attester.time [ dateTime ]; # 0..1 When the composition was attested fhir:DocumentReference.attester.party [ Reference(Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ]; # 0..1 Who attested the composition ], ...; fhir:DocumentReference.custodian [ Reference(Organization) ]; # 0..1 Organization which maintains the document fhir:DocumentReference.relatesTo [ # 0..* Relationships to other documents fhir:DocumentReference.relatesTo.code [ code ]; # 1..1 replaces | transforms | signs | appends fhir:DocumentReference.relatesTo.target [ Reference(DocumentReference) ]; # 1..1 Target of the relationship ], ...; fhir:DocumentReference.description [ markdown ]; # 0..1 Human-readable description fhir:DocumentReference.securityLabel [ CodeableConcept ], ... ; # 0..* Document security-tags fhir:DocumentReference.content [ # 1..* Document referenced fhir:DocumentReference.content.attachment [ Attachment ]; # 1..1 Where to access the document fhir:DocumentReference.content.format [ Coding ]; # 0..1 Format/content rules for the document fhir:DocumentReference.content.identifier [ Identifier ]; # 0..1 Identifier of the attachment binary ], ...; fhir:DocumentReference.sourcePatientInfo [ Reference(Patient) ]; # 0..1 Patient demographics from source fhir:DocumentReference.related [ Reference(Any) ], ... ; # 0..* Related identifiers or resources ]
Changes since Release 3
DocumentReference | |
DocumentReference.basedOn |
|
DocumentReference.status |
|
DocumentReference.docStatus |
|
DocumentReference.subject |
|
DocumentReference.encounter |
|
DocumentReference.event |
|
DocumentReference.facilityType |
|
DocumentReference.practiceSetting |
|
DocumentReference.period |
|
DocumentReference.author |
|
DocumentReference.attester |
|
DocumentReference.attester.mode |
|
DocumentReference.attester.time |
|
DocumentReference.attester.party |
|
DocumentReference.relatesTo.code |
|
DocumentReference.description |
|
DocumentReference.content.identifier |
|
DocumentReference.sourcePatientInfo |
|
DocumentReference.related |
|
DocumentReference.masterIdentifier |
|
DocumentReference.authenticator |
|
DocumentReference.context |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R3 <--> R4 Conversion Maps (status = 1 test of which 1 fail to execute.)
See the Profiles & Extensions and the alternate definitions: Master Definition XML + JSON, XML Schema/Schematron + JSON Schema, ShEx (for Turtle) + see the extensions, the spreadsheet version & the dependency analysis a
Path | Definition | Type | Reference |
---|---|---|---|
DocumentReference.status | Required | DocumentReferenceStatus | |
DocumentReference.docStatus | Required | CompositionStatus | |
DocumentReference.type | Preferred | http://hl7.org/fhir/ValueSet/c80-doc-typecodes | |
DocumentReference.category | Example | DocumentClassValueSet | |
DocumentReference.event | Example | ActCode | |
DocumentReference.facilityType | Example | http://hl7.org/fhir/ValueSet/c80-facilitycodes | |
DocumentReference.practiceSetting | Example | http://hl7.org/fhir/ValueSet/c80-practice-codes | |
DocumentReference.attester.mode | Required | DocumentAttestationMode | |
DocumentReference.relatesTo.code | Required | DocumentRelationshipType | |
DocumentReference.securityLabel | Extensible | All Security Labels | |
DocumentReference.content.format | Preferred | DocumentReferenceFormatCodeSet |
Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Expression | In Common |
attester | reference | Who attested the composition | DocumentReference.attester.party (Practitioner, Organization, Patient, PractitionerRole, RelatedPerson) | |
author | reference | Who and/or what authored the document | DocumentReference.author (Practitioner, Organization, CareTeam, Device, Patient, PractitionerRole, RelatedPerson) | |
based-on | reference | Procedure that caused this media to be created | DocumentReference.basedOn (CarePlan, ServiceRequest) | |
category | token | Categorization of document | DocumentReference.category | |
contenttype N | token | Mime type of the content, with charset etc. | DocumentReference.content.attachment.contentType | |
creation N | date | Date attachment was first created | DocumentReference.content.attachment.creation | |
custodian | reference | Organization which maintains the document | DocumentReference.custodian (Organization) | |
date N | date | When this document reference was created | DocumentReference.date | |
description N | string | Human-readable description | DocumentReference.description | |
doc-status N | token | preliminary | final | amended | entered-in-error | DocumentReference.docStatus | |
encounter | reference | Context of the document content | DocumentReference.encounter (Encounter) | |
event | token | Main clinical acts documented | DocumentReference.event | |
facility | token | Kind of facility where patient was seen | DocumentReference.facilityType | |
format | token | Format/content rules for the document | DocumentReference.content.format | |
identifier | token | Identifier of the attachment binary | DocumentReference.content.identifier | DocumentReference.identifier | |
language N | token | Human language of the content (BCP-47) | DocumentReference.content.attachment.language | |
location N | uri | Uri where the data can be found | DocumentReference.content.attachment.url | |
patient | reference | Who/what is the subject of the document | DocumentReference.subject.where(resolve() is Patient) (Practitioner, Group, Specimen, Organization, Device, Patient, PractitionerRole, Location) | |
period | date | Time of service that is being documented | DocumentReference.period | |
related | reference | Related identifiers or resources | DocumentReference.related (Any) | |
relatesto | reference | Target of the relationship | DocumentReference.relatesTo.target (DocumentReference) | |
relation N | token | replaces | transforms | signs | appends | DocumentReference.relatesTo.code | |
relationship | composite | Combination of relation and relatesTo | On DocumentReference.relatesTo: relatesto: code relation: target | |
security-label | token | Document security-tags | DocumentReference.securityLabel | |
setting | token | Additional details about where the content was created (e.g. clinical specialty) | DocumentReference.practiceSetting | |
status N | token | current | superseded | entered-in-error | DocumentReference.status | |
subject | reference | Who/what is the subject of the document | DocumentReference.subject (Practitioner, Group, Specimen, Organization, Device, Patient, PractitionerRole, Location) | |
type | token | Kind of document (LOINC if possible) | DocumentReference.type |