Receive status updates as soon as data becomes available.
200
status code within 4 seconds. We recommend
processing the webhook request asynchronously.medical.document-download
: result of Document Query, containing the newly downloaded documents
for the patient - see details below;medical.document-conversion
: result of converting the newly downloaded C-CDA documents into FHIR -
see details below;medical.document-bulk-download-urls
: list of download urls for a patient’s documents, see
details below;medical.consolidated-data
: result of a Consolidated Data Query, containing the patient’s data in FHIR
format - see details below.medical.bulk-patient-create
: updates for a Bulk Patient Create
meta.data
field of the webhook request.
Metadata holds a record of up to 50 custom string key-value pairs. Key names can be up to 40 characters long and values up to 500 characters long. You may use this to attach whatever metadata is relevant for your use-case - for example, external IDs.
Below is an example payload you could send in the request body of one of those endpoints and how you would use the sdk:
type
will be medical.document-download
, and at this point
you’ll be able to download the raw files;type
will be medical.document-conversion
, and at this point
you’ll be able to query for patient consolidated data
in FHIR-compliant format.Bundle
you’ll find a DocumentReference
resource with the first item in the content
array containing
an attachment with a url
which can be used to download the data.
Bundle
will be empty (the entry
array will have no
elements).medical.bulk-patient-create
to indicate the status
update and provide relevant information.
You can expect to get two messages of this type for each Bulk Patient Create, with the status
being the main difference between each:
processing
: the CSV file has been uploaded and is being processed;completed
: the bulk create is completed - includes the result CSV file;failed
: the bulk create failed (likely due to the uploaded file being invalid).medical.bulk-patient-create
with status completed
includes a URL in the result
field, which you can use to download the result of the Bulk Patient Create.
succeeded
or
failed
.url
property in the returned documents
objects to download the files.