Skip to main content
POST
Upload Document
This endpoint returns the DocumentReference ID and a URL to enable you to upload your patients’ medical documents, making them available to other HIEs.

Overview

To use this endpoint, you will need to follow these steps:
  1. Create a DocumentReference to describe the document that’s being uploaded (see sections below for details on the expected fields and format).
  2. Execute the endpoint and receive a URL to use for the document upload.
  3. Upload the document by executing a PUT request using the URL with a Content-Length header specifying the size of the document.
Uploads are limited to 50MB per file.

Query Params

patientId
string
required
The ID of the Patient.

Body

A FHIR DocumentReference.
type
CodeableConcept
required
A CodeableConcept of the document type.
description
string
required
A brief description of the document - for example Discharge Summary.
context
DocumentReferenceContext[]
required
Context of the document content.
Note that you do not need to include a Patient or Organization resource in the contained property, as those will be inferred on our end - if you do, they will be overwritten.
Example Payload:

Response

The DocumentReference ID and a URL to be used for file upload.