Get a list of document references
/fhir/r4/{query_endpoint_alias}/DocumentReference
This path retrieves documents using the patient ID, the source patient medical record number (MRN), and the specific encounter or visit number.
Use the following query parameters to retrieve the generated Consolidated Clinical Document Architecture (C-CDA) documents for a given patient within a specified date range:
- Patient (required): cdex-patient-id
- Date (conditional): The date range within which the encounter occurs.
Example: DocumentReference?patient=1979464&date=ge2023-11-04
Use the following query parameters to retrieve the generated C-CDA documents for a given patient identifier within a specified date range:
- Patient identifier (required): The patient's MRN. The format includes the assigning authority and the value separated by a vertical bar (|). For example, aa|value.
- Date (conditional): The date range within which the encounter occurs.
Example: DocumentReference?patient.identifier=891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.1.1|8133&date=ge2023-01-01
Use the following query parameters to retrieve the generated C-CDA documents for a given patient encounter or account number:
- Patient (required): The Oracle Health Clinical Data Exchange patient ID.
- Encounter (conditional): The patient account number. The format includes the assigning authority and the value separated by a vertical bar (|). For example, aa|value.
Example: DocumentReference?patient={global-patient-id}&encounter={aa|fin}
Post-filter request parameters:
When responding to a request, the Oracle Health Clinical Data Exchange FHIR server first retrieves all results that match your primary search parameters above, then the server filters those results based on the additional post-filtered parameters that you have specified.
The post-filtering parameters are status, category, type, setting, facility, security-label, and format.
Note:
- The DocumentReference does not retrieve existing C-CDA documents for a patient. Instead, it generates new C-CDA documents based on the current clinical content in the system. This functionality prevents communicating outdated data, and also ensures that the C-CDA content contains only data that the requesting payer is authorized to retrieve.
- Separate C-CDAs are generated for each encounter context from the system in the DocumentReference response.
Request
-
category: string
The DocumentEntry class code (the LOINC code, must be passed).
- The format for this field requires both the code and system to be passed with the separator '^^'.
- For example: category=34133-9^^2.16.840.1.113883.6.1 -
date (Conditional): string(date)
The date range within which the encounter occurs.
Note:
- The Time component is not supported.
- Only the ge and le prefixes are supported.
- This value can be provided in the following conditions:
- Once with an appropriate prefix representing the earliest date.
For example, date=ge2023-01-01.
- Or, twice with appropriate prefixes to indicate a specific range.
For example, date=ge2023-01-01&date=le2024-01-01. -
encounter (Conditional): string
The encounter context.
The format includes the assigning authority and the value separated by a vertical bar (|).
For example, aa|value.
The assigning authority is required. -
format: string
The DocumentEntry format code (that is, the format and content rules for the document).
- The format for this field requires both the code and system to be passed with the separator '^^'.
- For example: format=urn:hl7-org:sdwg:ccda-nonXMLBody:2.1^^1.3.6.1.4.1.19376.1.2.3 -
patient(required): string
The patient that is the subject of the documents.
- The patient is required if patient.identifier is not used. -
patient.identifier(required): string
The patient identifier that is the subject of the documents.
- The patient identifier is required if patient is not used.
- The patient's MRN is supported. The format includes the assigning authority and the value separated by a vertical bar (|).
For example, aa|value. -
security-label: string
The DocumentEntry confidentiality code (that is, the document security-tags).
- The format for this field requires both the code and system to be passed with the separator '^^'.
- For example: security-label=N^^2.16.840.1.113883.5.25 -
setting: string
The DocumentEntry practice setting code (that is, additional details about where the content was created, for example, the clinical specialty).
- The format for this field requires both the code and system to be passed with the separator '^^'.
- For example: setting=394802001-9^^2.16.840.1.113883.6.96 -
status: string
The current and previous status in current status | superseded status format.
-
type: string
DocumentEntry type code (the LOINC code, must be passed).
- The format for this field requires both the code and system to be passed with the separator '^^'.
- For example: type=34133-9^^2.16.840.1.113883.6.1
-
authorization(required): string
This string contains the credentials to authenticate a consumer to the service. This value should be the OAuth 2.0 bearer token.
Response
- application/json
200 Response
Success
- The response would include all the documents reference matched.
-
X-Request-Id: string
Oracle troubleshooting identifier
-
opc-request-id: string
Oracle troubleshooting identifier
object
-
authenticator:
Reference
-
author:
array author
The Practitioner who authored the document.
-
category:
array category
The document category, displayed as Summary of Episode Note in the generated C-CDA documents. Preferred valueset https://hl7.org/fhir/R4/valueset-document-classcodes.html
-
content:
object content
The document referenced.
-
context:
object context
-
custodian:
Reference
-
date:
string(instant)
The data and time that this document was created.
-
description:
string
The description of the document.
-
docStatus:
string
preliminary | final | amended | entered-in-error
-
id:
string
The logical ID of this artifact.
-
identifier:
array identifier
Other identifiers for the document.
-
masterIdentifier:
Identifier
-
resourceType:
string
The resource type is DocumentReference.
-
securityLabel:
array securityLabel
The security tag hard-coded as Normal is displayed on the generated C-CDA documents.
-
status:
string
current | superseded | entered-in-error The status is diplayed as 'current' in the generated C-CDA documents.
-
subject:
object subject
-
type:
array type
The type of document, displayed as Summary of Episode Note in the generated C-CDA documents. Preferred valueset https://hl7.org/fhir/R4/valueset-c80-doc-typecodes.html
{
"fullUrl": "https://cell1.query.stage.cdexhub.us-ashburn-1.oci.oraclecloud.com/fhir/r4/e48ebcb3-4027-5c58-ac57-e866afc7be0c/DocumentReference/urn:uuid:cca32c1d-8301-4ed7-ac8e-671cb11ff968",
"resource": {
"resourceType": "DocumentReference",
"id": "urn:uuid:cca32c1d-8301-4ed7-ac8e-671cb11ff968",
"masterIdentifier": {
"system": "urn:ietf:rfc:3986",
"value": "1.3.6.1.4.1.21367.2010.4381289"
},
"identifier": [
{
"use": "official",
"system": "urn:ietf:rfc:3986",
"value": "urn:uuid:cca32c1d-8301-4ed7-ac8e-671cb11ff968"
}
],
"status": "current",
"docStatus": "final",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "34133-9",
"display": "Summary of Episode Note"
}
]
},
"category": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "34133-9",
"display": "Summary of Episode Note"
}
]
}
],
"subject": {
"reference": "https://cell1.query.stage.cdexhub.us-ashburn-1.oci.oraclecloud.com/fhir/r4/e48ebcb3-4027-5c58-ac57-e866afc7be0c/Patient/2586450001",
"display": "PEREZ JUAN"
},
"date": "2024-09-26",
"author": [
{
"type": "Practitioner",
"identifier": {
"use": "official",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "NPI",
"display": "National provider identifier"
}
]
},
"system": "urn:ietf:rfc:3986",
"value": "Cerner HIE"
},
"display": "Cerner HIE"
}
],
"authenticator": {
"type": "Practitioner",
"identifier": {
"use": "official",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "NPI",
"display": "National provider identifier"
}
]
},
"value": "Cerner HIE"
},
"display": "Cerner HIE"
},
"custodian": {
"type": "Organization",
"identifier": {
"use": "official",
"type": {
"coding": [
{
"system": "urn:ietf:rfc:3986",
"code": "urn:oid",
"display": "OID"
}
]
},
"value": ""
},
"display": "Model Clinic 2"
},
"description": "CCD for Encounter: 18103-2.16.840.1.113883.3.995.10.2.1",
"securityLabel": [
{
"coding": [
{
"system": "2.16.840.1.113883.5.25",
"code": "N",
"display": "Normal"
}
]
}
],
"content": [
{
"attachment": {
"contentType": "text/xml",
"language": "en-us",
"url": "https://cell1.query.stage.cdexhub.us-ashburn-1.oci.oraclecloud.com/fhir/r4/e48ebcb3-4027-5c58-ac57-e866afc7be0c/Binary/urn:uuid:cca32c1d-8301-4ed7-ac8e-671cb11ff968",
"size": 108842,
"hash": "f49999cd60913a68f8b89d7f431ee1ef24853b73",
"creation": "2024-09-26"
},
"format": {
"system": "1.3.6.1.4.1.19376.1.2.3",
"code": "urn:ihe:pcc:xphr:2007",
"display": "HL7 CCD Document"
}
}
],
"context": {
"encounter": [
{
"identifier": {
"system": "891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.2.1",
"value": "18103"
}
}
],
"period": {
"end": "2024-05-13"
},
"practiceSetting": {
"coding": [
{
"system": "2.16.840.1.113883.6.96",
"code": "394802001",
"display": "General Medicine"
}
]
},
"sourcePatientInfo": {
"identifier": {
"system": "891c71549f4a4bb439b4de8a532f155c_2.16.840.1.113883.3.995.10.1.1",
"value": "8133"
},
"display": "PEREZ JUAN"
}
}
}
}
array
object
-
attachment:
object attachment
The location where you can access the document.
-
format:
Coding
array
object
-
reference:
string
The reference to the Oracle Health Clinical Data Exchange patient ID.
array
object
-
extension:
array extension
-
id:
string
Unique id for inter-element referencing
object
-
display:
string
Text alternative for the resource
-
identifier:
Identifier
-
reference:
string
iteral reference, Relative, internal or absolute URL
-
type:
string
Type the reference refers to (e.g. "Patient")
object
-
url:
string
Minimum Length:
1
identifies the meaning of the extension -
value:
string
Minimum Length:
1
Value of extension
object
-
coding:
array coding
A reference to a code defined by a terminology system
-
text:
string
Plain text representation of the concept
array
object
-
code:
string
Minimum Length:
1
Symbol in syntax defined by the system -
display:
string
Minimum Length:
1
Representation defined by the system -
system:
string
Minimum Length:
1
Identity of the terminology system -
userSelected:
boolean
If this coding was chosen directly by the user
-
version:
string
Minimum Length:
1
Version of the system - if relevant
object
-
contentType:
string
The mime type of the content, including the character set and other information.
-
creation:
string(date-time)
The date that the attachment was initially created.
-
hash:
string
The hash of the data (for example, sha-1, base64ed).
-
language:
string
The human language of the content.
-
size:
number
The number of bytes of content (if the URL is provided).
-
title:
string
The label that is displayed in place of the data.
-
url:
string
The URI where the data is available.
object
-
end:
string(date-time)
End time with inclusive boundary
-
start:
string(date-time)
Starting time with inclusive boundary
object
-
period:
Period
-
system:
string
The namespace for the identifier value (uri)
-
type:
CodeableConcept
-
use:
string
usual | official | temp | secondary | old (If known)
-
value:
string
The value that is unique