Skip to main content

core.ismedicationcartcontentsresponse

Home > @medplum/core > isMedicationCartContentsResponse

isMedicationCartContentsResponse() function

Type guard: validates a cart-read bot response.

Signature:

export declare function isMedicationCartContentsResponse(value: unknown): value is MedicationCartContentsResponse;

Parameters

Parameter

Type

Description

value

unknown

Unknown bot JSON payload.

Returns:

value is MedicationCartContentsResponse

True when the value matches MedicationCartContentsResponse.