core.parameterstomedicationcheckoutresponse | Medplum
parametersToMedicationCheckoutResponse() function
Decodes the Parameters response from the $checkout-medications custom operation into a typed MedicationCheckoutResponse. Throws INVALID_MEDICATION_CHECKOUT_RESPONSE when required top-level fields are missing.
The repeating items parameter is collected across every occurrence (each is one queued/failed line); the scalar approvalUrl / vendorPatientId are read once.
Signature:
export declare function parametersToMedicationCheckoutResponse(params: Parameters): MedicationCheckoutResponse;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | Parameters | The Parameters resource returned by the operation. |
Returns:
A vendor-neutral MedicationCheckoutResponse.