Closed smiththay closed 1 year ago
If there was a previous test administered within the last 3 months, NACC wants to know the date.
Valid range for the whole date would be:
From: Visit.Date
To: Visit.Date.AddMonths(-3)
Probably custom attributes don't make sense for this one since we need to consider the entire date.
For question 3a., LOGIMO, LOGIDAY & LOGIYR needs custom validation for month, day and year.
If the previous test was further than 3 months in the past, then LOGIMO, LOGIDAY, LOGIYR, LOGIPREV would all be values of N/A. And they allow for the previous year in scenarios when the current month is January to March.
LOGIMO - 1-12, 88= N/A LOGIDAY - 0-31, 88 = N/A LOGIYR - Current year or (current year - 1), 8888 = N/A