DocumentReference

The FHIR R4 DocumentReference resource represents a reference to a document or other health record. It can be used to represent a patient's medical documents, including clinical notes, lab reports, discharge summaries, and other documentation generated during the course of care.

Use Cases

  • Retrieve clinical documents for patient history
  • Share documents with specialists for consultation
  • Store signed consent forms and patient agreements
  • Access diagnostic images or reports
  • Retrieve scanned patient records from archives

Base URLs

Authentication

All requests require OAuth 2.0 authentication using a Bearer Token. Unauthorized requests return 401 Unauthorized responses.

Required scopes:

  • documentreference.read for GET
  • documentreference.write for POST, PUT, DELETE

For more information, go to: OAuth 2.0 Authentication.

Supported Methods

MethodOperationDescription
GETRead DocumentReferenceRetrieves a specific DocumentReference record by its FHIR ID.
GETSearch DocumentReferenceSearches for DocumentReference records for a specified patient.
GETDownload DocumentReference as PDFRetrieves a PDF version of a specific DocumentReference via the $pdf operation.
POSTCreate DocumentReferenceSubmits a new DocumentReference record to the Health Gorilla FHIR server.
DELETEDelete DocumentReferenceRemoves an existing DocumentReference record from the system by full resource deletion.

Frequently Used Search Parameters

ParameterDescriptionFHIR Value Set / Example ValuesFHIR Data TypeRequired
patientFilters by patient IDPatient/{id}ReferenceYes
statusFilters by the status of the document referenceDocumentReferenceStatus (current)tokenNo
typeFilters by document type or categoryDocumentReferenceType (discharge-summary)tokenNo
dateFilters by the document creation datege2024-01-01, le2024-12-31dateNo
authorFilters by the author of the documentPractitioner/{id}, RelatedPerson/{id}ReferenceNo
categoryFilters by document category (e.g., clinical note, imaging)DocumentReferenceCategory (clinical-note)tokenNo

Commonly Returned Resource Attributes

AttributeDescriptionExample ValuesFHIR Data TypeRequired
patientReference to the patient associated with the documentPatient/{id}Reference(Patient)Yes
statusCurrent status of the document referencecurrentCodeableConceptYes
typeType or category of the documentclinical-noteCodeableConceptYes
contentA list of content references (e.g., a URL or other reference)Attachment/{id}Reference(Attachment)Yes
authorWho authored the documentPractitioner/{id}, RelatedPerson/{id}ReferenceNo
dateThe date the document was created or issued2024-02-12T12:34:56ZdateTimeNo
categoryCategory or classification of the documentclinical-noteCodeableConceptNo

Webhooks

Clients can subscribe to receive notifications when new documents are added or existing ones are updated. For more information, go to: Webhooks & Polling.

Error Handling

All DocumentReference operations follow standard Health Gorilla error handling, including use of FHIR OperationOutcome for structured responses. For more information, go to: Error Handling.

Additional Resources

HL7 FHIR DocumentReference