core.ismedicationcheckoutresponse | Medplum
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.