Logo GenPRES

Patient Module

Returns the gender, age, weight, height and department of patient data and reads patient data from a Dto. Reading returns the errors when a value is invalid or the data cannot select rules.

Nested modules

Modules Description

AgeParts

Holds the age parts years, months, weeks and days and converts a list of age parts to days and an age to age parts.

Functions and values

Function or value Description

fromDto today dto

Full Usage: fromDto today dto

Parameters:
Returns: Result<PatientData, DtoError list>

Reads patient data from a Dto on a date. Returns the errors when a value is invalid or when the data is not enough to select rules.

today : DateTime
dto : Dto
Returns: Result<PatientData, DtoError list>

getAge p

Full Usage: getAge p

Parameters:
Returns: Age list

The age as a list of age parts. The list is empty when there is no age.

p : PatientData
Returns: Age list

getDepartment p

Full Usage: getDepartment p

Parameters:
Returns: string option

The name of the department.

p : PatientData
Returns: string option

getGender p

Full Usage: getGender p

Parameters:
Returns: Gender
p : PatientData
Returns: Gender

getHeight p

Full Usage: getHeight p

Parameters:
Returns: HeightValue option

The height used for calculation, measured or estimated.

p : PatientData
Returns: HeightValue option

getWeight p

Full Usage: getWeight p

Parameters:
Returns: WeightValue option

The weight used for calculation, measured or estimated.

p : PatientData
Returns: WeightValue option

Type something to start searching.