Skip to main content

core.medplumclient.requestschema

Home > @medplum/core > MedplumClient > requestSchema

MedplumClient.requestSchema() method

Requests the schema for a resource type. If the schema is already cached, the promise is resolved immediately.

Signature:

requestSchema(resourceType: string): Promise<void>;

Parameters

Parameter

Type

Description

resourceType

string

The FHIR resource type.

Returns:

Promise<void>

Promise to a schema with the requested resource type.