Logo GenPRES

PatientDataEdit Module

Applies one change to the patient data Dto and returns the same Dto.

Functions and values

Function or value Description

apply edit dto

Full Usage: apply edit dto

Parameters:
Returns: Dto

Applies the edit to the Dto and returns the same Dto. Completing the Dto with the resources estimates the weight and height again for the edited patient data; a measured value stays.

edit : PatientDataEdit
dto : Dto
Returns: Dto

setAgePart write v dto

Full Usage: setAgePart write v dto

Parameters:
    write : int option -> Dto -> unit
    v : int option
    dto : Dto

Writes one part of the age. Patient data without an age stays without one when the value is None. When there is an age, None counts as 0, so clearing one part keeps the age.

write : int option -> Dto -> unit
v : int option
dto : Dto

setGestationalPart write termPart v dto

Full Usage: setGestationalPart write termPart v dto

Parameters:
    write : 'a -> Dto -> unit
    termPart : Dto -> 'a
    v : 'a option
    dto : Dto

Type parameters: 'a

Writes one part of the gestational age, starting from the term when there is none. A value of None writes the same part of the term. Patient data without a gestational age stays without one when the value is None. Writes nothing when the age needs no gestational age.

write : 'a -> Dto -> unit
termPart : Dto -> 'a
v : 'a option
dto : Dto

Type something to start searching.