Logo GenPRES

Filter Module

Reconciles the selections of a sent filter with the lists of a fresh filter and tells whether the reconciled filter dropped a selection.

Nested modules

Modules Description

Dto

Holds the serializable shape of a filter, with the dose types as strings, and converts a filter to and from the Dto.

Functions and values

Function or value Description

dropped sent reconciled

Full Usage: dropped sent reconciled

Parameters:
Returns: bool

Returns true when the sent filter selects an indication, generic, route, form or dose type that the reconciled filter no longer selects.

sent : Filter
reconciled : Filter
Returns: bool

reconcile fresh sent

Full Usage: reconcile fresh sent

Parameters:
Returns: Filter

Reconciles the selections of the sent filter with the lists of a fresh filter. A selection that the fresh list still has stays selected, and the list narrows to that fresh entry; a selection that the fresh list does not have is cleared, and the fresh list is used whole. The dose types are the resulting list when it has one entry, otherwise the sent list, because the fresh list holds the dose types of every rule for the patient. The diluents, the components, their selections and the picked products come from the sent filter, because the evaluation sets them and not the rules.

fresh : Filter
sent : Filter
Returns: Filter

Type something to start searching.