Age at visit is calculated by subtracting the date of birth from the date of the visit and dividing the difference by days per year (365.25).
The date of the visit is defined as the first valid date in the following hierarchy: