core.medplumclient.bulkexport | Medplum

MedplumClient.bulkExport() method

Performs Bulk Data Export operation request flow. See the FHIR "Bulk Data Export" for full details.

Signature:

bulkExport(exportLevel?: string, resourceTypes?: string, since?: string, options?: MedplumRequestOptions): Promise<Partial<BulkDataExport>>;

Parameters

Parameter Type Description
exportLevel string (Optional) Optional export level. Defaults to system level export. 'Group/:id' - Group of Patients, 'Patient' - All Patients.
resourceTypes string (Optional) A string of comma-delimited FHIR resource types.
since string (Optional) Resources will be included in the response if their state has changed after the supplied time (e.g. if Resource.meta.lastUpdated is later than the supplied _since time).
options MedplumRequestOptions (Optional) Optional fetch options.

Returns:

Promise<Partial>

Bulk Data Response containing links to Bulk Data files. See the "Response - Complete Status" for full details.