UK-SBCoA / uniform-data-set-dotnet-web

.NET Core implementation of UDS with MVC and Razor Class UI Library
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

C1 Custom Attribute for Date #25

Closed smiththay closed 1 year ago

smiththay commented 1 year ago

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

ashleybot commented 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)

ashleybot commented 1 year ago

Probably custom attributes don't make sense for this one since we need to consider the entire date.