Logo GenPRES

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

CoreAdultMark

CorePatientData

Functions and values

Function or value Description

access dat

Full Usage: access dat

Parameters:
Returns: AccessDevice list

The access devices in the terms of the rules.

dat : CorePatientData
Returns: AccessDevice list

adjustValue dat adjustUnit

Full Usage: adjustValue dat adjustUnit

Parameters:
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.

dat : PatientData
adjustUnit : Unit option
Returns: ValueUnit option

asAdult dat

Full Usage: asAdult dat

Parameters:
Returns: CorePatientData

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.

dat : CorePatientData
Returns: CorePatientData

department dat

Full Usage: department dat

Parameters:
Returns: string option

The name of the department. A rule names a department by this name.

dat : CorePatientData
Returns: string option

forAdultMatch dat

Full Usage: forAdultMatch dat

Parameters:
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.

dat : CorePatientData
Returns: CorePatientData * (MinMax -> bool)

gender dat

Full Usage: gender dat

Parameters:
Returns: Gender

The gender in the terms of the rules. An unknown gender matches the rules for any gender.

dat : CorePatientData
Returns: Gender

hasDataBesidesDepartment dat

Full Usage: hasDataBesidesDepartment dat

Parameters:
Returns: bool

Whether the patient has any value other than the department.

dat : CorePatientData
Returns: bool

isAdult dat

Full Usage: isAdult dat

Parameters:
Returns: bool

True when the adult mark of the patient data says adult.

dat : CorePatientData
Returns: bool

matchedAsAdult dat

Full Usage: matchedAsAdult dat

Parameters:
Returns: bool

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.

dat : CorePatientData
Returns: bool

matchesAgeAndWeight dat cat

Full Usage: matchesAgeAndWeight dat cat

Parameters:
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.

dat : CorePatientData
cat : PatientCategory
Returns: bool

matchesCategory dat patCat

Full Usage: matchesCategory dat patCat

Parameters:
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.

dat : CorePatientData
patCat : PatientCategory
Returns: bool

matchesCategoryWithoutLocationAndGender dat patCat

Full Usage: matchesCategoryWithoutLocationAndGender dat patCat

Parameters:
Returns: bool

Whether a patient matches a patient category. The location and the gender are not checked.

dat : CorePatientData
patCat : PatientCategory
Returns: bool

renalFunction dat

Full Usage: renalFunction dat

Parameters:
Returns: RenalFunction option

The renal function in the terms of the renal rules.

dat : CorePatientData
Returns: RenalFunction option

toString dat

Full Usage: toString dat

Parameters:
Returns: string

Prints the patient data as Dutch text.

dat : PatientData
Returns: string

unknown

Full Usage: unknown

Returns: PatientData

Patient data without any value.

Returns: PatientData

Type something to start searching.