SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Date validations between 'Date of sampling' and 'Date and time of result' of pathogen test should be extended

Open adinaflorea9 opened this issue 1 year ago • 0 comments

Problem Description

Currently, in the web and mobile apps, for human and environment samples, for a sample created with a date of sampling 1st of December, and a pathogen test result with the same date, if the date of sampling is later edited to any date after the 1st of December, there is no validation triggered in the 'Date of sampling' field.

Additionally, in the mobile app, for human and environment samples, for a sample created with a date of sampling of 1st of December, a pathogen test can be created with a 'Date and time of result' in any day before the 1st of December, and no date validation is triggered for the 'Date and time of result' field.

Proposed Change

Extend the date validations on human and environment samples and their pathogen tests.

Added Value/Benefit

Consistency in regards to date validations and correlations between dates in associated entities.

Acceptance Criteria

  • [ ] in the web and mobile app, trigger a date validation for the 'Date sample was collected'/'Date of sampling' field of human and environment samples, if the date of sampling is after the 'Date and time of result' of the associated pathogen test;
  • [ ] in the mobile app, trigger a date validation for the 'Date and time of result' field of pathogen tests associated with human and environment samples, if the 'Date and time of result' is before the 'Date sample was collected'/'Date of sampling'.

Implementation Details

No response

Mockups

No response

Additional Information

No response

adinaflorea9 avatar Jan 03 '24 11:01 adinaflorea9