core.medicationsearchparamstoparameters
Home > @medplum/core > medicationSearchParamsToParameters
medicationSearchParamsToParameters() function
Encodes a MedicationSearchParams as a FHIR Parameters body for the vendor-neutral $drug-search (and $drug-quantity-qualifiers) custom operations. Optional fields are omitted entirely so the wire payload stays minimal and mirrors the legacy executeBot plain-JSON shape that the bot's parseInput helper would otherwise have to coerce.
Signature:
export declare function medicationSearchParamsToParameters(params: MedicationSearchParams): Parameters;
Parameters
Parameter | Type | Description |
|---|---|---|
params | Drug search parameters (vendor-neutral subset). |
Returns:
Parameters
A Parameters resource ready to POST.