DocumentReference
Overview
The DocumentReference resource is used to reference a clinical document for a patient within the health system. This resource supports reading Continuity of Care Documents (CCD), returning a list of clinical documents, and a reference to retrieve a document as a PDF.
The following HL7® FHIR® US Core Implementation Guide STU 4.0.0 Profiles are supported by this resource:
The following fields are returned if valued for clinical documents:
- DocumentReference id
- Status
- Document status
- Document type
- Document category
- Subject (Patient)
- Created Date
- Author
- Authenticator/verifying provider
- Document description/title
- Document Attachment
- Document Format
- Patient encounter
- Document period
- Custodian
- Related
Terminology Bindings
DocumentReference.status |
|
DocumentReference.docStatus |
|
DocumentReference.type |
|
DocumentReference.category |
|
Search
Search for DocumentReferences that meet supplied query parameters:
GET /DocumentReference?:parameters
Authorization Types
Parameters
Name | Required? | Type | Description |
---|---|---|---|
_id |
This, or patient
|
token |
The logical resource id associated with the resource. Example: 12345
|
patient |
This, or _id
|
reference |
The specific patient to return DocumentReferences for. Example: 12345
|
encounter |
N | reference |
The Encounter in which the document was created. May be a list separated by commas. Example: 123,456
|
period |
N | date |
Time of service that is being documented. Must use the ge and lt prefixes. Example: lt2017-01-5
|
type |
N | token |
The type of document. May be a list separated by commas. Example: http://loinc.org|11488-4
|
_count |
N | number |
The maximum number of results to return. Defaults to 10 and maximum 100 documents can be returned. |
category |
N | token |
The categorization of document. Example: http://loinc.org|11488-4
|
_revinclude |
N | token |
Provenance resource entries to be returned as part of the bundle. Example: _revinclude=Provenance:target
|
date |
N | date |
When this document reference was created. |
Implementation Notes
-
Search operation is supported for clinical-note, cardiology, radiology, microbiology and pathology charted documents and clinical-note staged documents.
- When searching with the
period
parameter:- It must be provided twice, once with the
ge
prefix, and once with thelt
prefix. -
Period
parameter must include a time.
- It must be provided twice, once with the
- When searching with the
encounter
parameter:- Patient level documents are filtered out from responses when the encounter id is zero/blank.
-
The
_revinclude
parameter may be provided once with the valueProvenance:target
. Example:_revinclude=Provenance:target
-
The
_revinclude
parameter may be provided with the_id/patient
parameter. Example:_id=214938095&_revinclude=Provenance:target
-
When
_revinclude
is provided in a request to the closed endpoint, the OAuth2 token must include theuser/Provenance.read
scope. Currentlypatient/Provenance.read
is not supported and hence_revinclude
cannot be utilised for patient persona. - When searching with the
date
parameter:- It must be provided once with a prefix to imply a date range or without a prefix to search for document
(s) at a specific date. Alternately it may be provided twice with
le
,lt
,ge
, orgt
prefixes to search for document(s) within specific range. The date and prefix pairs must create a closed range. - For a single ‘date’ occurrence ,
time
component is optional but for twodate
occurrences, must includetime
component.
- It must be provided once with a prefix to imply a date range or without a prefix to search for document
(s) at a specific date. Alternately it may be provided twice with
-
Date
andperiod
search parameter cannot be provided together.
Headers
Accept: application/json+fhir
Authorization: <OAuth2 Bearer Token>
Example
Request
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853
Response
Status: 200 OK
{
"resourceType": "Bundle",
"id": "271fc608-6a12-48f3-a9f8-2d1bfe395328",
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853"
}
],
"entry": [
{
"fullUrl": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381924",
"resource": {
"resourceType": "DocumentReference",
"id": "198381924",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p><p><b>Verifying Provider</b>: Model, User 154 Cerner</p></div>""
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381924-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip",
"userSelected": true
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"author": [
{
"reference": "Practitioner/11638428",
"display": "Model, User 154 Cerner"
}
],
"authenticator": {
"reference": "Practitioner/11638428",
"display": "Model, User 154 Cerner"
},
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381924",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
},
{
"fullUrl": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381926",
"resource": {
"resourceType": "DocumentReference",
"id": "198381926",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p></div>"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381926-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip",
"userSelected": true
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381926",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
}
]
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Example with RevInclude
Authorization Types
Request
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?_id=198449751&_revinclude=Provenance:target
Response
Status: 200 OK
{
"resourceType": "Bundle",
"id": "e6af8dd8-78e2-4e9e-b04c-760b76128426",
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?_id=198449751&_revinclude=Provenance%3Atarget"
}
],
"entry": [
{
"fullUrl": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198449751",
"resource": {
"resourceType": "DocumentReference",
"id": "198449751",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-15T07:45:48.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: SMART, WILMA</p><p><b>Document Type</b>: Height Weight Allergy Rule - Text</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: Clinical Note</p><p><b>Service Start Date</b>: Jul 15, 2022 1:15 P.M. UTC</p><p><b>Service End Date</b>: Jul 15, 2022 1:15 P.M. UTC</p><p><b>Document Status</b>: Final</p><p><b>Verifying Provider</b>: Allen, Jodi</p></div>"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198449751-2022071507454800"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "20732501",
"display": "Height Weight Allergy Rule - Text",
"userSelected": true
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Height Weight Allergy Rule - Text"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12724065",
"display": "SMART, WILMA"
},
"date": "2022-07-15T07:45:48Z",
"author": [
{
"reference": "Practitioner/12743472",
"display": "Allen, Jodi"
}
],
"authenticator": {
"reference": "Practitioner/12743472",
"display": "Allen, Jodi"
},
"content": [
{
"attachment": {
"contentType": "text/plain",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/R-198449751",
"title": "Clinical Note",
"creation": "2022-07-15T13:15:46.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97953483"
}
],
"period": {
"start": "2022-07-15T13:15:46.000Z",
"end": "2022-07-15T13:15:46.000Z"
}
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Provenance/INT.doc-198449751",
"resource": {
"resourceType": "Provenance",
"id": "INT.doc-198449751",
"meta": {
"versionId": "198449751",
"lastUpdated": "2022-07-15T07:45:48Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Provenance</b></p><p><b>Target</b>:</p><ul><li>DocumentReference/198449751</li></ul><p><b>Recorded</b>: Jul 15, 2022 7:45 A.M. UTC</p><p><b>Agents</b>:</p><dl><dt>Allen, Jodi</dt><dd><b>Agent Type</b>: Author</dd><dd><b>Agent Role</b>: Source</dd><dt>Model Cancer Center</dt><dd><b>Agent Type</b>: Author</dd><dd><b>Agent Role</b>: Source</dd></dl></div>"
},
"target": [
{
"reference": "DocumentReference/198449751"
}
],
"recorded": "2022-07-15T07:45:48Z",
"agent": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"code": "author"
}
],
"text": "Author"
},
"role": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/contractsignertypecodes",
"code": "SOURCE"
}
],
"text": "Source"
}
],
"who": {
"reference": "Practitioner/12743472",
"display": "Allen, Jodi"
}
},
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/provenance-participant-type",
"code": "author"
}
],
"text": "Author"
},
"role": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/contractsignertypecodes",
"code": "SOURCE"
}
],
"text": "Source"
}
],
"who": {
"reference": "Organization/1024451",
"display": "Model Cancer Center"
}
}
]
},
"search": {
"mode": "include"
}
}
]
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Example: search by encounter filters patients level documents
Request
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853&encounter=97966172
Response
Status: 200 OK
{
"resourceType": "DocumentReference",
"id": "198381924",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p><p><b>Verifying Provider</b>: M., User 154 Cerner</p></div>"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381924-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip"
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"author": [
{
"reference": "Practitioner/11638428",
"display": "M., User 154 Cerner"
}
],
"authenticator": {
"reference": "Practitioner/11638428",
"display": "M., User 154 Cerner"
},
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-ehr.devcerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381924",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Patient Authorization Request
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853
Response
Status: 200 OK
{
"resourceType": "Bundle",
"id": "74e2c51e-96af-4f95-abd1-bbbe566e386b",
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12769853"
}
],
"entry": [
{
"fullUrl": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381924",
"resource": {
"resourceType": "DocumentReference",
"id": "198381924",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p><p><b>Verifying Provider</b>: M., User 154 Cerner</p></div>"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381924-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip"
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"author": [
{
"reference": "Practitioner/11638428",
"display": "M., User 154 Cerner"
}
],
"authenticator": {
"reference": "Practitioner/11638428",
"display": "M., User 154 Cerner"
},
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381924",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
},
{
"fullUrl": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381926",
"resource": {
"resourceType": "DocumentReference",
"id": "198381926",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p></div>"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381926-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip"
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381926",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
}
]
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Errors
The common errors and OperationOutcomes may be returned.
Retrieve by id
List an individual DocumentReference by its id:
GET /DocumentReference/:id
Authorization Types
Implementation Notes
- Read operation is supported for clinical-note, cardiology, radiology, microbiology and pathology charted documents and clinical-note staged documents.
Headers
Accept: application/json+fhir
Authorization: <OAuth2 Bearer Token>
Example
Request
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381924
Response
Status: 200 OK
{
"resourceType": "DocumentReference",
"id": "198381924",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p><p><b>Verifying Provider</b>: Model, User 154 Cerner</p></div>""
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381924-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip",
"userSelected": true
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"author": [
{
"reference": "Practitioner/11638428",
"display": "Model, User 154 Cerner"
}
],
"authenticator": {
"reference": "Practitioner/11638428",
"display": "Model, User 154 Cerner"
},
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381924",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Patient Authorization Request
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/198381924
Response
Status: 200 OK
{
"resourceType": "DocumentReference",
"id": "198381924",
"meta": {
"versionId": "1",
"lastUpdated": "2022-07-07T09:43:56.000Z"
},
"text": {
"status": "generated",
"div": "<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><p><b>Document Reference</b></p><p><b>Patient Name</b>: GETEST, PatientOneHundredSixtySix</p><p><b>Document Type</b>: Waveform Strip</p><p><b>Document Category</b>: Unknown</p><p><b>Document Title</b>: test1</p><p><b>Service Start Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Service End Date</b>: Jul 7, 2022 9:43 A.M. UTC</p><p><b>Document Status</b>: Final</p><p><b>Verifying Provider</b>: M., User 154 Cerner</p></div>"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-198381924-2022070709435600"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2574499721",
"display": "Waveform Strip"
},
{
"system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor",
"code": "UNK",
"display": "unknown"
}
],
"text": "Waveform Strip"
},
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
],
"text": "Unknown"
}
],
"subject": {
"reference": "Patient/12769853",
"display": "GETEST, PatientOneHundredSixtySix"
},
"date": "2022-07-07T09:43:56Z",
"author": [
{
"reference": "Practitioner/11638428",
"display": "M., User 154 Cerner"
}
],
"authenticator": {
"reference": "Practitioner/11638428",
"display": "M., User 154 Cerner"
},
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-198381924",
"title": "test1",
"creation": "2022-07-07T09:43:56.000Z"
},
"format": {
"system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
"code": "unknown",
"display": "Unknown"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97966172"
}
],
"period": {
"start": "2022-07-07T09:43:56.000Z",
"end": "2022-07-07T09:43:56.000Z"
}
}
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Errors
The common errors and OperationOutcomes may be returned.
Create
Create a new document reference.
POST /DocumentReference
Implementation Notes
- Only the body fields mentioned below are supported. Unsupported fields will be ignored.
- All provided dates must have a time component.
- Supported MIME Types: application/pdf, text/plain, text/richtext, text/rtf, text/html, application/xml, and application/xhtml+xml
Authorization Types
Headers
Authorization: <OAuth2 Bearer Token>
Content-Type: application/fhir+json
Body Fields
Name | Required | Type | |
---|---|---|---|
resourceType
|
Yes |
string |
|
|
|||
status
|
Yes |
code |
|
|
|||
docStatus
|
Yes |
code |
|
|
|||
type
|
Yes |
CodeableConcept |
|
|
|||
subject
|
Yes |
Reference |
|
|
|||
author
|
Yes |
Reference |
|
|
|||
authenticator
|
No |
Reference |
|
|
|||
content
|
Yes |
BackboneElement |
|
|
|||
content.attachment
|
Yes |
Attachment |
|
|
|||
content.attachment.contentType
|
Yes |
Code |
|
|
|||
content.attachment.data
|
Yes |
base64Binary |
|
|
|||
content.attachment.title
|
No |
Attachment |
|
|
|||
content.attachment.creation
|
No |
dateTime |
|
|
|||
context
|
Yes |
BackboneElement |
|
|
|||
context.encounter
|
No |
Reference |
|
|
|||
context.period
|
Yes |
Period |
|
|
Example
Request
POST https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference
Body
{
"resourceType": "DocumentReference",
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2820507",
"display": "Admission Note Physician",
"userSelected": true
}
],
"text": "Admission Note Physician"
},
"subject": {
"reference": "Patient/12457977"
},
"author": [
{
"reference": "Practitioner/3332064"
}
],
"authenticator": {
"reference": "Practitioner/3332064"
},
"content": [
{
"attachment": {
"contentType": "application/xml;charset=utf-8",
"data": "PGh0bWw+Cjx0aXRsZT4gVGVzdCBEb2N1bWVudCA8L3RpdGxlPgoKRG9jdW1lbnQgY29udGVudCEKCjwvaHRtbD4=",
"title": "Height Weight Allergy Rule",
"creation": "2020-07-29T21:02:04.000Z"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97987761"
}
],
"period": {
"start": "2020-01-01T00:00:00.000Z",
"end": "2020-01-01T01:00:00.000Z"
}
}
}
Response
Status: 201 Created
Cache-Control: no-cache Content-Length: 0 Content-Type: text/html Date: Fri, 04 Nov 2022 10:15:11 GMT Etag: W/"1" Location: https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/201051629 Vary: Origin X-Request-Id: 5f5324e1-2966-47ec-8076-0d3906828b56+5532_p0Ds
Update
Update an existing document reference:
PUT /DocumentReference/:id
Authorization Types
Implementation Notes
- Refer to the HL7® FHIR® Update documentation for additional details about update operations.
- Both read and write scopes are required.
Headers
Authorization: <OAuth2 Bearer Token>
Accept: application/json+fhir
Content-Type: application/fhir+json
If-Match: W/"<Current version of the DocumentReference resource>"
Body fields
Name | Required | Type | |
---|---|---|---|
resourceType
|
Yes |
string |
|
|
|||
status
|
Yes |
code |
|
|
|||
docStatus
|
Yes |
code |
|
|
|||
type
|
‘Yes’ |
CodeableConcept |
|
|
|||
subject
|
Yes |
Reference |
|
|
|||
author
|
Yes |
Reference |
|
|
|||
authenticator
|
No |
Reference |
|
|
|||
content
|
Yes |
BackboneElement |
|
|
|||
content.attachment
|
Yes |
Attachment |
|
|
|||
content.attachment.contentType
|
Yes |
Code |
|
|
|||
content.attachment.data
|
Yes |
base64Binary |
|
|
|||
content.attachment.title
|
No |
Attachment |
|
|
|||
content.attachment.creation
|
No |
dateTime |
|
|
|||
context
|
Yes |
BackboneElement |
|
|
|||
context.encounter
|
No |
Reference |
|
|
|||
context.period
|
Yes |
Period |
|
|
Example
Request
PUT https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/16885181
Body
{
"resourceType": "DocumentReference",
"id": "201051629",
"status": "entered-in-error",
"docStatus": "amended",
"type": {
"coding": [
{
"system": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72",
"code": "2820507",
"display": "Admission Note-Physician",
"userSelected": true
}
]
},
"subject": {
"reference": "Patient/12457977"
},
"author": [
{
"reference": "Practitioner/3332064"
}
],
"authenticator": {
"reference": "Practitioner/3332064"
},
"identifier": [
{
"system": "https://fhir.cerner.com/ceuuid",
"value": "CE87caf4b7-9397-4667-9897-702218017c9e-201051629-2022110410151000"
}
],
"content": [
{
"attachment": {
"contentType": "application/xml;charset=utf-8",
"data": "PGh08L3RpdGxlPgoKRG9jdW1lbnQgY29udGVudCEKCjwvaHRtbD4=",
"title": "Height Weight Allergy Rule",
"creation": "2020-07-29T21:02:04.000Z"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97987761"
}
],
"period": {
"start": "2020-01-01T00:00:00.000Z",
"end": "2020-01-01T01:00:00.000Z"
}
}
}
Response
Status: 200 OK
Cache-Control: no-cache Content-Length: 0 Content-Type: application/json+fhir Date: Fri, 04 Nov 2022 11:54:04 GMT Etag: W/"2" Last-Modified: Fri, 04 Nov 2022 11:54:04 GMT Vary: Origin X-Request-Id: d2a211a4-ccd4-4ba8-b4f4-d3da9200543c+6313_U7Z3
The ETag
response header indicates the current If-Match
version to use on subsequent update.
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Errors
The common errors and OperationOutcomes may be returned.
Operation: docref
US Core operation for querying DocumentReferences for the supplied parameters:
GET /DocumentReference/$docref?:parameters
Terminology Bindings
DocumentReference.type |
|
DocumentReference.content.format |
|
Authorization Types
Parameters
Name | Required? | Type | Description |
---|---|---|---|
patient |
Y | reference |
The specific patient to return DocumentReferences for. Example: 12345
|
type |
N | token |
The document reference type, can be a list of comma separated values. Example: http://loinc.org|34133-9 |
start |
N | number |
The start of the date range from which document reference records should be included. If not provided, then all records from the beginning of time are included. Example: 2014-09-24T12:00:00.000Z |
end |
N | number |
The end of the date range till which document reference records should be included. If not provided, then all records up to the current date are included. Example: 2016-09-24T12:00:00.000Z |
Implementation Notes
- The type parameter must include both a system and a code. (e.g. &type=http://loinc.org|34133-9)
- The start and end parameters must be valid dateTimes with a time component. They must have prefixes of eq or nothing.
Headers
Accept: application/json+fhir
Authorization: <OAuth2 Bearer Token>
Example
Request
GET https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/$docref?patient=13160351&type=http%3A%2F%2Floinc.org%7C34133-9
Response
Status: 200 OK
{
"resourceType": "Bundle",
"id": "2cb9157f-0f05-4fe4-af14-95d5808a4070",
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/$docref?patient=13160351"
}
],
"entry": [
{
"fullUrl": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/b79484c9-1170-44cd-9910-f9013ff2ea1f",
"resource": {
"resourceType": "DocumentReference",
"id": "b79484c9-1170-44cd-9910-f9013ff2ea1f",
"status": "current",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "34133-9",
"display": "Summary of episode note"
}
],
"text": "Summary of episode note"
},
"subject": {
"reference": "Patient/13160351"
},
"date": "2020-12-14T08:20:26Z",
"content": [
{
"attachment": {
"contentType": "application/xml",
"url": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/$autogen-ccd-if?patient=13160351"
},
"format": {
"system": "urn:oid:1.3.6.1.4.1.19376.1.2.3",
"code": "urn:hl7-org:sdwg:ccda-structuredBody:2.1",
"display": "For documents following C-CDA constraints using a structured body."
}
}
]
}
}
]
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Patient Authorization Request
GET https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/$docref?patient=13160351&type=http%3A%2F%2Floinc.org%7C34133-9
Response
Status: 200 OK
{
"resourceType": "Bundle",
"id": "2cb9157f-0f05-4fe4-af14-95d5808a4070",
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/$docref?patient=13160351"
}
],
"entry": [
{
"fullUrl": "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/b79484c9-1170-44cd-9910-f9013ff2ea1f",
"resource": {
"resourceType": "DocumentReference",
"id": "b79484c9-1170-44cd-9910-f9013ff2ea1f",
"status": "current",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "34133-9",
"display": "Summary of episode note"
}
],
"text": "Summary of episode note"
},
"subject": {
"reference": "Patient/13160351"
},
"date": "2020-12-14T08:20:26Z",
"content": [
{
"attachment": {
"contentType": "application/xml",
"url": "https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/$autogen-ccd-if?patient=13160351"
},
"format": {
"system": "urn:oid:1.3.6.1.4.1.19376.1.2.3",
"code": "urn:hl7-org:sdwg:ccda-structuredBody:2.1",
"display": "For documents following C-CDA constraints using a structured body."
}
}
]
}
}
]
}
Note: The examples provided here are non-normative and replaying them in the public sandbox is not guaranteed to yield the results shown on the site.
Errors
The common errors and OperationOutcomes may be returned.