core.parameterstomedicationorderresponse | Medplum
parametersToMedicationOrderResponse() function
Decodes the Parameters response from the $order-medication custom operation into a typed MedicationOrderResponse. Throws INVALID_MEDICATION_ORDER_RESPONSE when required fields are missing.
Signature:
export declare function parametersToMedicationOrderResponse(params: Parameters): MedicationOrderResponse;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | Parameters | The Parameters resource returned by the operation. |
Returns:
A vendor-neutral MedicationOrderResponse.