This page is part of the US Core (v1.1.0: STU2 Ballot 1) based on FHIR R3. The current version which supercedes this version is 5.0.1. For a full list of available versions, see the Directory of published versions
This profile sets minimum expectations for searching and fetching patient documents using the DocumentReference Resource. It is compatible with the ITI-68 in IHE MHD specification. It identifies the mandatory core elements, extensions, vocabularies and value sets which SHALL be present in the DocumentReference resource when using this profile.
Example Usage Scenarios:
The following are example usage scenarios for the US Core DocumentReference profile:
The following data-elements are mandatory (i.e data MUST be present). These are presented below in a simple human-readable explanation. Profile specific guidance and examples are provided as well. The Formal Profile Definition below provides the formal summary, definitions, and terminology requirements.
Each DocumentReference must have:
In addition it should have ( if available) :
Profile specific implementation guidance:
For a C-CDA Clinical Summary of Care (CCD):
urn:hl7-org:sdwg:ccda-structuredBody:2.1
Description of Profiles, Differentials, and Snapshots.
The official URL for this profile is: http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference
Published on Sun Dec 10 00:00:00 AEDT 2017 as a draft by HL7 US Realm Steering Committee.
This profile builds on DocumentReference
DocumentReference.status
DocumentReference.type
which is bound to Document Type value setDocumentReference.subject
DocumentReference.content.attachment
DocumentReference.content.attachment.contentType
which is bound to MimeType value setDocumentReference.content.attachment.url
DocumentReference.content.format
with an extensible binding to DocumentReference Format value setSHOULD have:
DocumentReference.identifier
DocumentReference.created
DocumentReference.context.encounter
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
DocumentReference | 0..* | US Core DocumentReference Profile | ||
identifier | S | 0..1 | Identifier | |
status | S | 1..1 | code | Binding: DocumentReferenceStatus (required) |
type | S | 1..1 | CodeableConcept | Binding: Document Type Value Set (required) |
subject | S | 1..1 | Reference(US Core Patient Profile) | |
created | S | 0..1 | dateTime | |
content | S | 1..1 | BackboneElement | |
attachment | S | 1..1 | Attachment | |
contentType | S | 1..1 | code | |
url | S | 1..1 | uri | |
format | S | 1..1 | Coding | Binding: DocumentReference Format Code Set (extensible) |
context | S | 0..1 | BackboneElement | |
encounter | S | 0..1 | Reference(US Core Encounter Profile) | |
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
DocumentReference | I | 0..* | US Core DocumentReference Profile | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
masterIdentifier | Σ | 0..1 | Identifier | Master Version Specific Identifier |
identifier | SΣ | 0..1 | Identifier | Other identifiers for the document |
status | ?!SΣ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required) |
docStatus | Σ | 0..1 | code | preliminary | final | appended | amended | entered-in-error Binding: CompositionStatus (required) |
type | SΣ | 1..1 | CodeableConcept | Kind of document (LOINC if possible) Binding: Document Type Value Set (required) |
class | Σ | 0..1 | CodeableConcept | Categorization of document Binding: Document Class Value Set (example) |
subject | SΣ | 1..1 | Reference(US Core Patient Profile) | Who/what is the subject of the document |
created | SΣ | 0..1 | dateTime | Document creation time |
indexed | Σ | 1..1 | instant | When this document reference was created |
author | Σ | 0..* | Reference(Practitioner), Reference(Organization), Reference(Device), Reference(Patient), Reference(RelatedPerson) | Who and/or what authored the document |
authenticator | Σ | 0..1 | Reference(Practitioner), Reference(Organization) | Who/what authenticated the document |
custodian | Σ | 0..1 | Reference(Organization) | Organization which maintains the document |
relatesTo | ?!ΣI | 0..* | BackboneElement | Relationships to other documents |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
code | Σ | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required) |
target | Σ | 1..1 | Reference(DocumentReference) | Target of the relationship |
description | Σ | 0..1 | string | Human-readable description (title) |
securityLabel | Σ | 0..* | CodeableConcept | Document security-tags Binding: All Security Labels (extensible) |
content | SΣI | 1..1 | BackboneElement | Document referenced |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
attachment | SΣ | 1..1 | Attachment | Where to access the document |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
contentType | SΣ | 1..1 | code | Mime type of the content, with charset etc. Binding: IETF BCP-13 (required) Example General': text/plain; charset=UTF-8, image/png |
language | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: Common Languages (extensible) Example General': en-AU |
data | 0..1 | base64Binary | Data inline, base64ed | |
url | SΣ | 1..1 | uri | Uri where the data can be found Example General': http://www.acme.com/logo-small.png |
size | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided) |
hash | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed) |
title | Σ | 0..1 | string | Label to display in place of the data Example General': Official Corporate Logo |
creation | Σ | 0..1 | dateTime | Date attachment was first created |
format | SΣ | 1..1 | Coding | Format/content rules for the document Binding: DocumentReference Format Code Set (extensible) |
context | SΣI | 0..1 | BackboneElement | Clinical context of document |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
encounter | SΣ | 0..1 | Reference(US Core Encounter Profile) | Context of the document content |
event | Σ | 0..* | CodeableConcept | Main clinical acts documented Binding: v3 Code System ActCode (example) |
period | Σ | 0..1 | Period | Time of service that is being documented |
facilityType | Σ | 0..1 | CodeableConcept | Kind of facility where patient was seen Binding: Facility Type Code Value Set (example) |
practiceSetting | Σ | 0..1 | CodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: Practice Setting Code Value Set (example) |
sourcePatientInfo | Σ | 0..1 | Reference(Patient) | Patient demographics from source |
related | ΣI | 0..* | BackboneElement | Related identifiers or resources |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 0..1 | Identifier | Identifier of related objects or events |
ref | Σ | 0..1 | Reference(Resource) | Related Resource |
Documentation for this format |
DocumentReference.status
DocumentReference.type
which is bound to Document Type value setDocumentReference.subject
DocumentReference.content.attachment
DocumentReference.content.attachment.contentType
which is bound to MimeType value setDocumentReference.content.attachment.url
DocumentReference.content.format
with an extensible binding to DocumentReference Format value setSHOULD have:
DocumentReference.identifier
DocumentReference.created
DocumentReference.context.encounter
Differential View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
DocumentReference | 0..* | US Core DocumentReference Profile | ||
identifier | S | 0..1 | Identifier | |
status | S | 1..1 | code | Binding: DocumentReferenceStatus (required) |
type | S | 1..1 | CodeableConcept | Binding: Document Type Value Set (required) |
subject | S | 1..1 | Reference(US Core Patient Profile) | |
created | S | 0..1 | dateTime | |
content | S | 1..1 | BackboneElement | |
attachment | S | 1..1 | Attachment | |
contentType | S | 1..1 | code | |
url | S | 1..1 | uri | |
format | S | 1..1 | Coding | Binding: DocumentReference Format Code Set (extensible) |
context | S | 0..1 | BackboneElement | |
encounter | S | 0..1 | Reference(US Core Encounter Profile) | |
Documentation for this format |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
DocumentReference | I | 0..* | US Core DocumentReference Profile | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
masterIdentifier | Σ | 0..1 | Identifier | Master Version Specific Identifier |
identifier | SΣ | 0..1 | Identifier | Other identifiers for the document |
status | ?!SΣ | 1..1 | code | current | superseded | entered-in-error Binding: DocumentReferenceStatus (required) |
docStatus | Σ | 0..1 | code | preliminary | final | appended | amended | entered-in-error Binding: CompositionStatus (required) |
type | SΣ | 1..1 | CodeableConcept | Kind of document (LOINC if possible) Binding: Document Type Value Set (required) |
class | Σ | 0..1 | CodeableConcept | Categorization of document Binding: Document Class Value Set (example) |
subject | SΣ | 1..1 | Reference(US Core Patient Profile) | Who/what is the subject of the document |
created | SΣ | 0..1 | dateTime | Document creation time |
indexed | Σ | 1..1 | instant | When this document reference was created |
author | Σ | 0..* | Reference(Practitioner), Reference(Organization), Reference(Device), Reference(Patient), Reference(RelatedPerson) | Who and/or what authored the document |
authenticator | Σ | 0..1 | Reference(Practitioner), Reference(Organization) | Who/what authenticated the document |
custodian | Σ | 0..1 | Reference(Organization) | Organization which maintains the document |
relatesTo | ?!ΣI | 0..* | BackboneElement | Relationships to other documents |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
code | Σ | 1..1 | code | replaces | transforms | signs | appends Binding: DocumentRelationshipType (required) |
target | Σ | 1..1 | Reference(DocumentReference) | Target of the relationship |
description | Σ | 0..1 | string | Human-readable description (title) |
securityLabel | Σ | 0..* | CodeableConcept | Document security-tags Binding: All Security Labels (extensible) |
content | SΣI | 1..1 | BackboneElement | Document referenced |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
attachment | SΣ | 1..1 | Attachment | Where to access the document |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
contentType | SΣ | 1..1 | code | Mime type of the content, with charset etc. Binding: IETF BCP-13 (required) Example General': text/plain; charset=UTF-8, image/png |
language | Σ | 0..1 | code | Human language of the content (BCP-47) Binding: Common Languages (extensible) Example General': en-AU |
data | 0..1 | base64Binary | Data inline, base64ed | |
url | SΣ | 1..1 | uri | Uri where the data can be found Example General': http://www.acme.com/logo-small.png |
size | Σ | 0..1 | unsignedInt | Number of bytes of content (if url provided) |
hash | Σ | 0..1 | base64Binary | Hash of the data (sha-1, base64ed) |
title | Σ | 0..1 | string | Label to display in place of the data Example General': Official Corporate Logo |
creation | Σ | 0..1 | dateTime | Date attachment was first created |
format | SΣ | 1..1 | Coding | Format/content rules for the document Binding: DocumentReference Format Code Set (extensible) |
context | SΣI | 0..1 | BackboneElement | Clinical context of document |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
encounter | SΣ | 0..1 | Reference(US Core Encounter Profile) | Context of the document content |
event | Σ | 0..* | CodeableConcept | Main clinical acts documented Binding: v3 Code System ActCode (example) |
period | Σ | 0..1 | Period | Time of service that is being documented |
facilityType | Σ | 0..1 | CodeableConcept | Kind of facility where patient was seen Binding: Facility Type Code Value Set (example) |
practiceSetting | Σ | 0..1 | CodeableConcept | Additional details about where the content was created (e.g. clinical specialty) Binding: Practice Setting Code Value Set (example) |
sourcePatientInfo | Σ | 0..1 | Reference(Patient) | Patient demographics from source |
related | ΣI | 0..* | BackboneElement | Related identifiers or resources |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
identifier | Σ | 0..1 | Identifier | Identifier of related objects or events |
ref | Σ | 0..1 | Reference(Resource) | Related Resource |
Documentation for this format |
Downloads: StructureDefinition: (XML, JSON, CSV), Schema: XML Schematron
Below is an overview of the required set of RESTful FHIR interactions - for example, search and read operations - for this profile. See the Conformance requirements for a complete list of supported RESTful interactions for this IG.
Typically, DocumentReference resources are used with document indexing systems, such as IHE XDS. However, document references may also may be created “on-the-fly” in response to a Document Query request. In other words there MAY NOT be pre-existing index of references to a patient’s documents at the FHIR endpoint. This results in an empty bundle being returned when searching using a normal FHIR Query. Therefore, the $docref operation has been defined to both create and fetch patient DocumentReference Resources.
The following search criteria describe fetching pre-indexed documents and those created “on-the-fly”.
Searching pre-indexed documents:
GET [base]/DocumentReference?patient=[id]
Example: GET [base]/DocumentReference?patient=2169591
Support: Mandatory to support search by patient.
Implementation Notes: Search for all documents for a patient. Fetches a bundle of all DocumentReference resources for the specified patient (how to search by reference).
GET [base]/DocumentReference?patient=[id]&type=[type]&period=[date]
Example: GET [base]/DocumentReference?patient=2169591&type=34133-9&period=ge2016-01-01
Support: Optional to support search by patient and type and date range.
Implementation Notes: Fetches a bundle of all DocumentReference resources for the specified patient for a given time period and document type. (how to search by reference), (how to search by token), and (how to search by date).
Searching documents using the $docref operation:
Functional behavior of Server when responding to the $docref operation:
GET [base]/DocumentReference/$docref?patient=[id]
Example:
Support: Mandatory to support response to operation.
Implementation Notes: Search for CCD document from the last encounter and MAY search for other document types from the last encounter as well. Fetches a bundle of DocumentReference resources for the specified patient (how to search by reference).