TheJacksonLaboratory / LIRICAL

LIkelihood Ratio Interpretation of Clinical AbnormaLities
https://thejacksonlaboratory.github.io/LIRICAL/stable
Other
24 stars 11 forks source link

Simplify handling of subject's age #643

Closed ielis closed 9 months ago

ielis commented 9 months ago

Previously we could have Age that was unknown. However, this is better modeled by making the Age optional and using null to represent its absence, since null conveys the same meaning.

The PR simplifies the code that uses Age and adds bounds checks on values to prevent using negative years, months, ... .