PatientData Module
Creates patient data and sets the values derived from the age, the weight and the height: adult mark, post-menstrual age, estimates and body surface area.
Nested modules
| Modules | Description |
|
Holds the Dto of the patient data, without the patient identity, and converts patient data to and from the Dto. Returns the validation errors of an invalid Dto. |
Functions and values
| Function or value |
Description
|
|
|
|
Returns the body surface area in m2 that is set on the patient data.
|
Full Usage:
calcBsa formula dat
Parameters:
'a option -> decimal<MeasureProduct<kg, MeasureOne>> -> decimal<MeasureProduct<cm, MeasureOne>> -> 'b
dat : PatientData
Returns: 'b option
Type parameters: 'a, 'b |
Calculates the body surface area with a formula from the calculation weight and height, measured or estimated; None without both.
|
|
Sets the body surface area by the Du Bois formula, rounded to 2 significant digits. The body surface area is None without a calculation weight and height.
|
|
Sets the post-menstrual age to the age in days plus the gestational age; None without either.
|
Full Usage:
checkMinimumData dat
Parameters:
PatientData
Returns: Result<PatientData, PatientDataError>
|
Returns the patient data when it is enough to select rules with, and NoAgeOrMeasuredWeightAndHeight otherwise.
|
Full Usage:
create dep diagn gend age wght hght gest
Parameters:
Department
diagn : string[]
gend : Gender
age : AgeValue option
wght : Weight
hght : Height
gest : AgeWeeksDays option
Returns: PatientData
|
Creates patient data without a location, an access, a renal function or a mark of the user. The adult mark and the need for the gestational age follow from the age. The post-menstrual age is None until determineGestationalAndPostMenstrualAge sets it. Without the resources, the estimates are none and the options are the options without resources.
|
Full Usage:
determineAdultMarkAndGestationalAgeNeed dat
Parameters:
PatientData
Returns: PatientData
|
Sets the adult mark and the need for the gestational age from the age. A patient marked as an adult keeps the mark when the age allows it.
|
|
Sets the values that follow from the age: the adult mark, the need for the gestational age, the gestational age when it is used, and the post-menstrual age.
|
Full Usage:
determineGestationalAndPostMenstrualAge dat
Parameters:
PatientData
Returns: PatientData
|
Removes the gestational age when the gestational age is not used, then calculates the post-menstrual age.
|
|
Calculates the interventions of the emergency list that are not medication, from the age and from the calculation weight, measured or estimated.
|
Full Usage:
estimate resources dat
Parameters:
PatientDataResources option
dat : PatientData
Returns: PatientData
|
Sets the estimates and the options from the resources. A measured calculation weight or height is rounded to the nearest calculation value; any other becomes the estimated mean, without a date, or none without an estimate. Without the resources, the patient data is returned unchanged.
|
|
Creates patient data with the age at the start of an age type, and the normal weight and height of that age type for a gender as undated estimates.
|
|
The gestational age as a time value in days; none without one.
|
|
The calculation height in cm, measured or estimated; none without one.
|
|
Removes the gestational age when the gestational age is not used.
|
|
Sets the adult mark from the age and the mark the user asks for. The mark is ignored when the age does not allow it.
|
|
True when the patient data has an age, an adult mark, or a measured weight with a measured height.
|
|
The post-menstrual age as a time value in days; none without one.
|
Full Usage:
roundMeasured steps valueOf dateOf ofStep actual calculation
Parameters:
decimal<'u>[]
valueOf : 'a -> decimal<'u>
dateOf : 'a -> 'b
ofStep : 'b -> decimal<'u> -> 'a
actual : 'a list
calculation : Source<'a> option
Returns: 'a list * Source<'a> option
Type parameters: 'a, 'b, 'u (requires equality) |
Rounds a measured calculation value to the nearest step and keeps the measurement date. The exact measurement is added to the actual values when none of them has the same date and the same value. A value that is not measured, or that is already a step, is returned unchanged.
|
|
The patient data with nothing known.
|
|
The calculation weight in kg, measured or estimated; none without one.
|
GenPRES