Skip to main content

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 Parameters resource returned by the operation.

Returns:

MedicationCartContentsResponse

A vendor-neutral MedicationCartContentsResponse.