PatientData Module
Reads patient data in the terms of the rules and tests whether a patient is an adult or matches a patient category.
Types
| Type | Description |
|
|
|
|
|
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
adjustValue dat adjustUnit
Parameters:
PatientData
adjustUnit : Unit option
Returns: ValueUnit option
|
Returns the value to adjust a limit with: the weight in kg for the adjust unit kg, the body surface area for any other adjust unit. Returns None without an adjust unit or without that value.
|
|
Gives a patient the age of 18 years and removes the gestational and post-menstrual age. A gestational age has no meaning for a patient older than one year.
|
|
The name of the department. A rule names a department by this name.
|
Full Usage:
forAdultMatch dat
Parameters:
CorePatientData
Returns: CorePatientData * (MinMax -> bool)
|
Returns the patient to match and an extra check on the age range of a rule. For a patient matched as an adult, the patient gets the adult age and the age range must have no maximum. Any other patient is returned unchanged, with a check that always passes.
|
|
The gender in the terms of the rules. An unknown gender matches the rules for any gender.
|
|
|
|
|
|
Whether the rules for adults apply because of the mark: a marked patient of 16 or 17 years, or a marked patient without an age.
|
Full Usage:
matchesAgeAndWeight dat cat
Parameters:
CorePatientData
cat : PatientCategory
Returns: bool
|
Whether the age and the weight of a patient are in the ranges of a patient category. A patient without an age or a weight does not match a range for that value. A patient matched as an adult has the age of 18 years and matches only an age range without a maximum.
|
Full Usage:
matchesCategory dat patCat
Parameters:
CorePatientData
patCat : PatientCategory
Returns: bool
|
Whether a patient matches a patient category, including the location and the gender. A category with a location matches only a patient at that location.
|
Full Usage:
matchesCategoryWithoutLocationAndGender dat patCat
Parameters:
CorePatientData
patCat : PatientCategory
Returns: bool
|
Whether a patient matches a patient category. The location and the gender are not checked.
|
|
The renal function in the terms of the renal rules.
|
|
|
|
Patient data without any value.
|
GenPRES