AgeWeeksDays Module
Converts an age in weeks and days to and from days, calculates the post-menstrual age and checks whether a gestational age is below term.
Nested modules
| Modules | Description |
|
Holds the Dto of an age in weeks and days and converts the age to and from the Dto. Returns a validation error for weeks or days outside the bounds. |
|
|
Holds the comparison operators for two ages in weeks and days. |
|
|
Holds a getter and setter pair for the weeks and for the days of an age in weeks and days. |
|
|
Gets and sets the weeks and the days of an age in weeks and days. |
|
|
Holds the validators and the options for a gestational age: 20 to 52 weeks and 0 to 6 days. |
Functions and values
| Function or value |
Description
|
Full Usage:
comp op awd1 awd2
Parameters:
'a -> 'b -> 'c
awd1 : 'a
awd2 : 'b
Returns: 'c
Type parameters: 'a, 'b, 'c |
|
Full Usage:
create w d
Parameters:
int<MeasureProduct<week, MeasureOne>>
d : int<MeasureProduct<day, MeasureOne>>
Returns: AgeWeeksDays
|
|
Full Usage:
fromDays days
Parameters:
int<MeasureProduct<day, MeasureOne>>
Returns: AgeWeeksDays
|
A number of days as weeks and days.
|
|
|
|
|
|
|
|
|
Full Usage:
postMenstrualAge av ga
Parameters:
AgeValue
ga : AgeWeeksDays
Returns: AgeWeeksDays
|
Returns the post-menstrual age in weeks and days: the age in days plus the gestational age.
|
|
The gestational age at term: 37 weeks, where the FullTerm gestation type starts.
|
|
|
|
|
|
|
|
Weeks and days as a time value in days, the inverse of fromValueUnit.
|
GenPRES