Get a list of document references
get
/DocumentReference
Retrieves a list of documents that meet supplied query parameters.
Note:
- Search results are currently limited to published clinical documents.
- Contents of the document are found in the attachment URL.
- See the Binary resource information to determine what authorization scopes are required and how to set the
Accept
header when downloading document contents.
Authorization Types
This operation supports the following authorization types:
- Provider
- Patient
- System
Request
Query Parameters
-
_count: integer
The maximum number of results to return.
Example:_count=50
-
_id(required): string
The logical resource ID associated with the resource.
- This parameter is required if the
patient
orsubject
parameter is not used. - Must not be provided with any other parameters.
_id=1234
- This parameter is required if the
-
created: string
A date and time when the referenced document was created.
- Must be provided twice, once with the
ge
parameter and once with thele
parameter. - The two provided dates and times may not be equal and must form a closed range.
- If one
created
parameter includes a time, both must include a time.
created=ge2017-01-07&created=le2017-02-05
- Must be provided twice, once with the
-
encounter: string
The encounter to which the document reference belongs.
- Must appear once, and must represent an Encounter resource.
- May be provided with a single reference or a comma-separated list of references. Example
encounter=1234
orencounter=1234,5678
.
encounter=1213
-
patient(required): string
The patient to which the document reference belongs. This parameter is required if the
_id
orsubject
parameter is not used.
Example:patient=5678
-
subject(required): string
The subject of the document reference.
- May use the
:Patient
modifier. - This parameter is required if the
_id
orpatient
parameter is not used. - Must appear once, and must represent a Patient resource.
- May be provided with or without the
:Patient
modifier. Example:subject=Patient/12345
orsubject:Patient=12345
.
subject=Patient/91011
- May use the
Header Parameters
-
Accept(required): string
The media type to be requested. See what the resource's operation produces for what is supported.
-
Authorization(required): string
Contains the credentials to authenticate a consumer to the service. This should be the OAuth2 Bearer token.
Response
Supported Media Types
- application/json+fhir
- application/json
Default Response
Example Request:
GET https://fhir-open.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12724066&created=ge2020-01-01&created=le2020-12-31
Example Response:
{
'resourceType': 'Bundle',
'id': '0be75cc8-da20-460a-a39e-9825bdb87472',
'type': 'searchset',
'total': 1,
'link': [
{
'relation': 'self',
'url': 'https://fhir-open.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12724066&created=ge2020-01-01&created=le2020-12-31'
}
],
'entry': [
{
'fullUrl': 'https://fhir-open.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference'/197286315',
'resource': {
'resourceType': 'DocumentReference',
'id': '197286315',
'meta': {
'versionId': '197286314',
'lastUpdated': '2020-04-05T04:00:46.000Z'
},
'text': {
'status': 'generated',
'div': '<div><p><b>Document Reference</b></p><p><b>Patient Name</b>: SMART, NANCY</p><p><b>Document Type</b>: Pregnancy Summary Document</p><p><b>Document Title</b>: Pregnancy Summary Document</p><p><b>Date</b>: Apr 5, 2020 4:00 A.M. UTC</p><p><b>Document Status</b>: Auth (Verified)</p></div>'
},
'subject': {
'reference': 'Patient/12724066',
'display': 'SMART, NANCY'
},
'type': {
'coding': [
{
'system': 'https://fhir.cerner.com/ec2458f2-1e24-41c8-b71b-0e701af7583d/codeSet/72',
'code': '22520442',
'display': 'Pregnancy Summary Document',
'userSelected': true
},
{
'system': 'http://terminology.hl7.org/CodeSystem/v3-NullFlavor',
'code': 'UNK',
'display': 'unknown'
}
],
'text': 'Pregnancy Summary Document'
},
'created': '2020-04-05T04:00:45.000Z',
'indexed': '2020-04-05T04:00:45.000Z',
'status': 'current',
'docStatus': {
'coding': [
{
'system': 'http://hl7.org/fhir/composition-status',
'code': 'final',
'display': 'Final'
}
],
'text': 'Auth (Verified)'
},
'description': 'Pregnancy Summary Document',
'content': [
{
'attachment': {
'contentType': 'application/pdf',
'url': 'https://fhir-open.cerner.com/dstu2/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-197286315',
'title': 'Pregnancy Summary Document'
}
}
]
}
}
]
}
Headers
-
X-Request-Id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
X-Request-Id
, if present. -
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the
opc-Request-Id
, if present.