Skip to content

Address Birth Year Inaccuracies #1541

@Davinkjohnson

Description

@Davinkjohnson

This issue replaces issue #1520 and addresses paths to issues seen in issue #1519.

After further review, there are two areas which need to be updated to ensure inaccurate birth years do not create downstream impacts to derived variables.

The first change is to update the submitParticipantsData and updateParticipantData APIs, the second change is to update the PWA, within the sign up process. Both places must be changed to not allow a birth year that is either less than 18 years prior or greater than 90 years prior to "today" (year at API call or sign-up).

Within the API call a 206 error should be returned for any participant whose year does not meet the criteria (re-use as much of the existing error handling as possible). Also, within the PWA any year which does not meet the criteria should follow the same path as any other current filtering (where a red line error appears and the recruit is prompted to re-check the year entered).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions