core.parameterstomedicationordersetresponse
Home > @medplum/core > parametersToMedicationOrderSetResponse
parametersToMedicationOrderSetResponse() function
Decodes the Parameters response from the $order-set-url custom operation into a typed MedicationOrderSetResponse. Throws INVALID_MEDICATION_ORDER_SET_RESPONSE when launchUrl is missing or empty.
Echoed vendor ids (vendorPatientId, vendorOrderSetId) are preserved as the wire type — number when sent as valueInteger, string when sent as valueString — so downstream code can read either without conversion.
Signature:
export declare function parametersToMedicationOrderSetResponse(params: Parameters): MedicationOrderSetResponse;
Parameters
Parameter | Type | Description |
|---|---|---|
params | Parameters | The |
Returns:
A vendor-neutral MedicationOrderSetResponse.