DocumentReference
Overview
The DocumentReference resource provides a reference to a document of any kind for any purpose. This includes clinical documents, images, reports, and other content that supports patient care.
Resource Schema
Key fields in the DocumentReference resource:
{
"resourceType": "DocumentReference",
"id": "example-docref-123",
"status": "current",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "34133-9",
"display": "Summarization of episode note"
}
]
},
"category": [
{
"coding": [
{
"system": "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category",
"code": "clinical-note",
"display": "Clinical Note"
}
]
}
],
"subject": {
"reference": "Patient/123456"
},
"date": "2023-07-15T14:30:00Z",
"author": [
{
"reference": "Practitioner/789"
}
],
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "Binary/document-456"
}
}
]
}
Operations
The DocumentReference resource supports Read and Search operations. Support varies by CareRecord solution.
| CareRecord / Solution | Read | Search |
|---|---|---|
| GEHRIMED | ✅ | ✅ |
| myAvatar | ✅ | ✅ |
| myEvolv | ✅ | ✅ |
| myUnity | ✅ | ✅ |
| TheraOffice | ✅ | ✅ |
Read
HTTP Method: GET
URL: /DocumentReference/{id}
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/uscore/v1/DocumentReference/123456 \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/uscore/v1/DocumentReference/123456 \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json"
Search
HTTP Method: GET or POST
URL: /DocumentReference or /DocumentReference/_search
- Production
- Preview
Search by Patient
curl -X POST https://fhir.netsmartcloud.com/uscore/v1/DocumentReference/_search \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123"
Search by Patient
curl -X POST https://fhirtest.netsmartcloud.com/uscore/v1/DocumentReference/_search \
-H "Authorization: Bearer {token}" \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "patient=Patient/123"
Integration Patterns
Common Workflows
- Document Retrieval - Access clinical documents and reports
- Document Management - Organize and categorize patient documents
- Content Integration - Link documents to clinical workflows
Relationships to Other Resources
- Patient - Subject of the document
- Practitioner - Author of the document
- Binary - Actual document content
- Encounter - Healthcare encounter related to the document
Error Handling
For common errors and troubleshooting guidance, see Common Errors.