API Reference

Preview - Attachments

Overview

[!NOTE] This Endpoint is in preview and is not yet available to all users

Attachments are binary documents attached to DocumentReference entities in FHIR.

Attachment by DocumentReference ID and Attachment ID

Requests the Attachment data for a specific attachment from a specific DocumentReference.

METHOD GET

[base url]/attachment/report/`{document_reference_id}`/`{attachment_id}`

PARAMS
[base url] - FHIR base url
[document_reference_id] - The ID of the DocumentReference entity [attachment_id] - The ID of the specific attachment to download

HEADERS

The Authorization token SHALL be obtained during Authentication and Authorization process. Go to Authentication and Authorization for further details.

HeaderTypeRequired/OptionalValue
Authorizationstringrequired'Bearer' <token>

RESPONSES

CodeDescriptionComment
200OKThe request was processed successfully
400Bad requestInvalid request parameters or FHIR operation outcome resource returned
401UnauthorizedThis code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource
404no Route matched with those valuesThe request was able to communicate with a given server, but the server could not find what was requested
500Internal Server ErrorThe server has encountered a situation it doesn't know how to handle

EXAMPLE:

curl --location --request GET 'https://sandbox.fhir.elationemr.com/fhir/attachment/report/123/456' \
--header 'Authorization: Bearer fe1cd986-1ac7-4c26-b8b3-d632a48408fd'