Skip to main content

core.medplumclient.bulkexport

Home > @medplum/core > MedplumClient > bulkExport

MedplumClient.bulkExport() method

Performs Bulk Data Export operation request flow. See The FHIR "Bulk Data Export" for full details: https://build.fhir.org/ig/HL7/bulk-data/export.html\#bulk-data-export

Signature:

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

Parameters

ParameterTypeDescription
exportLevelstring(Optional) Optional export level. Defaults to system level export. 'Group/:id' - Group of Patients, 'Patient' - All Patients.
resourceTypesstring(Optional) A string of comma-delimited FHIR resource types.
sincestring(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).
optionsMedplumRequestOptions(Optional) Optional fetch options.

Returns:

Promise<Partial<BulkDataExport>>

Bulk Data Response containing links to Bulk Data files. See "Response - Complete Status" for full details: https://build.fhir.org/ig/HL7/bulk-data/export.html\#response\-\-\-complete-status