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

ParameterTypeDescription
resourceTypestringThe FHIR resource type.

Returns:

Promise<void>

Promise to a schema with the requested resource type.