Skip to main content

core.medplumclient.startasyncrequest

Home > @medplum/core > MedplumClient > startAsyncRequest

MedplumClient.startAsyncRequest() method

Starts an async request following the FHIR "Asynchronous Request Pattern". See: https://hl7.org/fhir/r4/async.html

Signature:

startAsyncRequest<T>(url: string, options?: MedplumRequestOptions): Promise<T>;

Parameters

Parameter

Type

Description

url

string

The URL to request.

options

MedplumRequestOptions

(Optional) Optional fetch options.

Returns:

Promise<T>

The response body.