FilterHelpers Module
Looks up the prescription rules for a filter, keeps the rules that can be prescribed for the patient and returns the pick lists. The lookup of all prescription rules and the lookup of the pick lists log a failure and give an empty result; the lookup of the prescribable rules returns the error to the caller.
Functions and values
| Function or value |
Description
|
Full Usage:
getPrescribableRules logger provider filter
Parameters:
Logger
provider : IResourceProvider
filter : DoseFilter
Returns: Result<PrescriptionRule array, Message list>
|
Returns the prescription rules for the filter that can be prescribed for the patient data of the filter. Logs a warning when no rule is left.
|
Full Usage:
getPrescriptionRules logger provider
Parameters:
Logger
provider : IResourceProvider
Returns: PatientData -> PrescriptionRule[]
|
|
Full Usage:
optionsFor logger provider doseFilter
Parameters:
Logger
provider : IResourceProvider
doseFilter : DoseFilter
Returns: FilterOptions
|
Returns the pick lists of the prescribable rules for the dose filter. Logs the error and returns empty pick lists when the rule lookup fails.
|
|
GenPRES