core.parameterstomedicationcartmanageresponse | Medplum

parametersToMedicationCartManageResponse() function

Decodes the Parameters response from the $remove-cart-medication / $clear-cart custom operations into a typed MedicationCartManageResponse. Throws INVALID_MEDICATION_CART_RESPONSE when required top-level fields are missing.

Signature:

export declare function parametersToMedicationCartManageResponse(params: Parameters): MedicationCartManageResponse;

Parameters

Parameter Type Description
params Parameters The Parameters resource returned by the operation.

Returns:

MedicationCartManageResponse

A vendor-neutral MedicationCartManageResponse.