core.parameterstomedicationcartmanageresponse
Home > @medplum/core > parametersToMedicationCartManageResponse
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 |
Returns:
A vendor-neutral MedicationCartManageResponse.