core.parameterstomedicationcartcontentsresponse
Home > @medplum/core > parametersToMedicationCartContentsResponse
parametersToMedicationCartContentsResponse() function
Decodes the Parameters response from the $get-cart custom operation into a typed MedicationCartContentsResponse. Throws INVALID_MEDICATION_CART_CONTENTS_RESPONSE when required top-level fields are missing.
Signature:
export declare function parametersToMedicationCartContentsResponse(params: Parameters): MedicationCartContentsResponse;
Parameters
Parameter | Type | Description |
|---|---|---|
params | Parameters | The |
Returns:
MedicationCartContentsResponse
A vendor-neutral MedicationCartContentsResponse.