Utility for standard rest API's to sanitize arguments on incoming requests.
yarn add @asymmetrik/fhir-sanitize-param
This package exports a number of functions meant for sanitizing different data types.
The functions available from this package are:
sanitizeBoolean, sanitizeDate, sanitizeNumber, sanitizeQuantity, sanitizeString, sanitizeToken
See fhir-sanitize-param tests for more usage examples.