core.escapesearchvalue
Home > @medplum/core > escapeSearchValue
escapeSearchValue() function
Escapes a literal string for use as a single FHIR search value. Backslash-escapes commas and backslashes, so that the value is not split into multiple "or" values. This is the inverse of splitSearchOnComma.
See: https://hl7.org/fhir/r4/search.html\#escaping
Signature:
export declare function escapeSearchValue(input: string): string;
Parameters
Parameter | Type | Description |
|---|---|---|
input | string | The literal string to search for. |
Returns:
string
The escaped FHIR search value.