core.parameterstomedicationorderresponse
Home > @medplum/core > parametersToMedicationOrderResponse
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 |
Returns:
A vendor-neutral MedicationOrderResponse.