Skip to main content

core.ismedicationcheckoutresponse

Home > @medplum/core > isMedicationCheckoutResponse

isMedicationCheckoutResponse() function

Type guard: validates a checkout-medications bot response.

Signature:

export declare function isMedicationCheckoutResponse(value: unknown): value is MedicationCheckoutResponse;

Parameters

Parameter

Type

Description

value

unknown

Unknown bot JSON payload.

Returns:

value is MedicationCheckoutResponse

True when the value matches MedicationCheckoutResponse.