Check Module
Checks the limits and frequencies of a dose rule against the G-Standaard dose rules and grades each difference.
Types
| Type | Description |
|
The settings of checkDoseRuleWith: the upper margin and the handling of the rate checks. |
|
|
The outcome of comparing a test range with a reference range. |
|
|
|
|
|
|
|
|
|
|
|
Returns the G-Standaard dose rules for the patient data, the generic, the form and the route. |
|
|
|
|
|
How the rate checks are handled. The G-Standaard dose check does not cover the administration rate. |
|
|
The grade of a dose-check signal, after the G-Standaard dose-check guideline. Within is a pass; every other case is a signal. |
Functions and values
| Function or value |
Description
|
|
The age of the patient in months that the G-Standaard dose rules are looked up with. Returns None for patient data without an age.
|
Full Usage:
canonTimeUnit u
Parameters:
string
Returns: string
|
|
|
|
Full Usage:
checkAllWith log getDosageRules pat drs
Parameters:
int -> DoseRule -> unit
getDosageRules : GStandProvider
pat : PatientData
drs : DoseRule[]
Returns: string array
|
Checks all dose rules and returns the distinct messages of the failed checks. Calls log with the index and the dose rule before each check.
|
|
|
Full Usage:
checkDoseRuleWith cfg getDosageRules patientData dr
Parameters:
CheckConfig
getDosageRules : GStandProvider
patientData : PatientData
dr : DoseRule
Returns: (type)
|
|
Full Usage:
checkDoseRuleWithProvider getDosageRules patientData dr
Parameters:
GStandProvider
patientData : PatientData
dr : DoseRule
Returns: (type)
|
Checks a dose rule against the G-Standaard dose rules from getDosageRules, with the default settings.
|
|
Compares a test range with a reference range, with its maximum raised by the factor margin when margin is Some. The highest limit of the test range is compared with the maximum and the lowest limit with the minimum, and each message shows the reference limit as it is, with the margin when it is a maximum. Either range empty gives NotApplicable.
|
|
Compares a test range with a reference range, with its maximum raised by the factor margin when margin is Some. Ranges whose units cannot be compared give CannotCheck; any other exception is a defect and is not caught.
|
Full Usage:
createDoseRulesWithMapping routeMapping patientData gen frm rte
Parameters:
RouteMapping array
patientData : PatientData
gen : string
frm : string
rte : string
Returns: DoseRule seq
|
|
Full Usage:
createMapping r
Parameters:
(type)
Returns: (type)
|
|
Full Usage:
filterPatient pat pdsg
Parameters:
PatientCategory
pdsg : PatientDosage
Returns: bool
|
|
Full Usage:
freqMsg aantalDiff eenheidDiff
Parameters:
bool
eenheidDiff : bool
Returns: string
|
Describes how a frequency differs from the G-Standaard frequency: the count, the time unit, or both. The G-Standaard text number is left out on purpose.
|
Returns true when every frequency in genform is in the G-Standaard frequencies gstand, or when the time units are interchangeable and the counts are equal. Only this direction is checked, not gstand in genform.
|
|
Full Usage:
gStandProvider routeMapping
Parameters:
RouteMapping array
Returns: GStandProvider
|
Makes a GStandProvider that maps the route with routeMapping and reads the G-Standaard dose rules.
|
Full Usage:
gradeComparisons cannotCheck norm abs
Parameters:
string
norm : Comparison
abs : Comparison
Returns: (Severity option * string)[]
|
Grades a test range from its comparison with the norm range and with the absolute range, as one signal per side that is breached. Above the absolute maximum is OverAbsolute, also when the norm range cannot be checked; above the norm maximum is AdvisoryOverNorm and below the norm minimum UnderNorm. Otherwise a comparison that cannot be checked gives IncomparableUnits with the message cannotCheck, so that a check that was not done never shows as Within. Two empty ranges give no signal.
|
|
The groups of frequency time units that count as equal, such as per 4 weken and per maand. Per 12 weken and per 3 maanden are not equal on purpose.
|
Full Usage:
interchangeable a b
Parameters:
string
b : string
Returns: bool
|
|
Full Usage:
mapRouteWithMapping routeMapping s
Parameters:
RouteMapping array
s : string
Returns: string
|
|
|
The text that says a limit is raised by the factor margin, such as " (+20%)".
|
Full Usage:
matchWithZIndex getDosageRules patientData dr
Parameters:
GStandProvider
patientData : PatientData
dr : DoseRule
Returns: (type)
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
rateScopeLabel mode msg
Parameters:
RateCheckMode
msg : string
Returns: string option
|
|
|
|
|
|
|
GenPRES