core.medplumclient.requestschema | Medplum
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, options?: MedplumRequestOptions): Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| resourceType | string | The FHIR resource type. |
| options | MedplumRequestOptions | (Optional) Optional fetch options. |
Returns:
Promise
Promise to a schema with the requested resource type.