Skip to main content

core.parameterstomedicationordersetresponse

Home > @medplum/core > parametersToMedicationOrderSetResponse

parametersToMedicationOrderSetResponse() function​

Decodes the Parameters response from the $order-set-url custom operation into a typed MedicationOrderSetResponse. ThrowsINVALID_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 asvalueString — so downstream code can read either without conversion.

Signature:

export declare function parametersToMedicationOrderSetResponse(params: Parameters): MedicationOrderSetResponse;

Parameters​

Parameter

Type

Description

params

Parameters

The Parameters resource returned by the operation.

Returns:

MedicationOrderSetResponse

A vendor-neutral MedicationOrderSetResponse.