SAMPLE AND RESULT REGISTRATION BUSINESS RULES

From NAITS
Jump to navigation Jump to search
# MODULE NAME OBJECT ACTION VALIDATION NAME VALIDATION DESCRIPTION VALIDATION CATEGORY METHOD NAME CLASS NAME DUPLICATED IN CLASS
1 SAMPLE AND RESULT REGISTRATION LABORATORY REGISTRATION/EDIT Lab name for laboratory must be entered Checks if lab name is null/empty Mandatory fields beforeSave OnSaveValidations Yes
2 SAMPLE AND RESULT REGISTRATION LABORATORY REGISTRATION/EDIT Lab name must be unique Checks if lab name is unique Uniqueness checkIfFieldIsUnique ValidationChecks Yes
3 SAMPLE AND RESULT REGISTRATION LABORATORY REGISTRATION/EDIT Appropriate email format Checks if email format is appropriate Other beforeSave OnSaveValidations Yes
4 SAMPLE AND RESULT REGISTRATION LAB_TEST_RESULT REGISTRATION/EDIT Lab test result for laboratory must be entered Checks if lab test result is null/empty Mandatory fields beforeSave OnSaveValidations Yes
5 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION Lab test result can be created only in lab sample with tuberculosis disease Checks if test result is created in lab sample with tuberculosis disease Other beforeSaveLabSample OnSaveValidations Yes
6 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION Lab test result can be created only by CVIRO user Check if user belongs to CVIRO user group Other checkIfUserLinkedToDefaultGroup UserManager Yes
7 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Lab sample collection date can’t be in the future Check if collection date is in future Dates checkIfDateIsInFuture ValidationChecks Yes
8 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION Animal ear tag can’t be changed Check if animal ear tag is changed Other beforeSaveLabSample OnSaveValidations Yes
9 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE EDIT Lab test result can be edited only in lab sample with tuberculosis disease Checks if test result is edited in lab sample with tuberculosis disease Other beforeSaveLabSample OnSaveValidations Yes
10 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE EDIT Lab test result can be edited only by CVIRO user Check if user belongs to CVIRO user group Other checkIfUserLinkedToDefaultGroup UserManager Yes
11 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Disease test field can’t be null/empty Check if field is null/empty Mandatory fields beforeSaveLabSample OnSaveValidations Yes
12 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Sample type field can’t be null/empty Check if field is null/empty Mandatory fields beforeSaveLabSample OnSaveValidations Yes
13 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Sample test type  field can’t be null/empty Check if field is null/empty Mandatory fields beforeSaveLabSample OnSaveValidations Yes
14 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE EDIT Lab sample with status received can’t be edited Check if edited lab sample has received status Other beforeSaveLabSample OnSaveValidations Yes
15 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Wrong sample entered for lab sample Check if sample is correct Other beforeSaveLabSample OnSaveValidations Yes
16 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Add animal ear tag in sample that is holding originated Check if sample is holding originated Other beforeSaveLabSample OnSaveValidations Yes
17 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Animal breed doesn’t match with disease Check if disease is allowed for animal breed Other checkIfMultiselectedDiseasesAreAppropriate ValidationChecks No
18 SAMPLE AND RESULT REGISTRATION LAB_SAMPLE REGISTRATION/EDIT Animal ear tag is must field for lab sample without parent Check if animal ear tag is entered Mandatory fields beforeSaveLabSample OnSaveValidations Yes