Difference between revisions of "ANIMAL HEALTH ACTIONS AND CAMPAIGNS BUSINESS RULES"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
{| class="wikitable" style="text-align: center; | {| class="wikitable" style="text-align: center; | ||
|<span style="color:#00ffff"> '''#''' <span> | |<span style="color:#00ffff"> '''#''' </span> | ||
|<span style="color:#00ffff"> '''MODULE NAME''' <span> | |<span style="color:#00ffff"> '''MODULE NAME''' </span> | ||
|<span style="color:#00ffff"> '''OBJECT''' <span> | |<span style="color:#00ffff"> '''OBJECT''' </span> | ||
|<span style="color:#00ffff"> '''ACTION''' <span> | |<span style="color:#00ffff"> '''ACTION''' </span> | ||
|<span style="color:#00ffff"> '''VALIDATION NAME''' <span> | |<span style="color:#00ffff"> '''VALIDATION NAME''' </span> | ||
|<span style="color:#00ffff"> '''VALIDATION DESCRIPTION''' <span> | |<span style="color:#00ffff"> '''VALIDATION DESCRIPTION''' </span> | ||
|<span style="color:#00ffff"> '''VALIDATION CATEGORY''' <span> | |<span style="color:#00ffff"> '''VALIDATION CATEGORY''' </span> | ||
|<span style="color:#00ffff"> '''METHOD NAME''' <span> | |<span style="color:#00ffff"> '''METHOD NAME''' </span> | ||
|<span style="color:#00ffff"> '''CLASS NAME''' <span> | |<span style="color:#00ffff"> '''CLASS NAME''' </span> | ||
|<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' <span> | |<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' </span> | ||
|- | |- | ||
|'''1''' | |'''1''' | ||
Latest revision as of 07:25, 3 December 2021
| # | MODULE NAME | OBJECT | ACTION | VALIDATION NAME | VALIDATION DESCRIPTION | VALIDATION CATEGORY | METHOD NAME | CLASS NAME | DUPLICATED IN CLASS |
| 1 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_BOOK | REGISTRATION/EDIT | Vaccination book has minimum fields filled | Checks if vaccination book has minimum fields filled | Other | checkIfDbDataObjectHasMinimumNumOfFilledFields | ValidationChecks | Yes |
| 2 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_BOOK | REGISTRATION/EDIT | Vaccination book fields can’t be updated | Checks if specific fields are updated | Other | checkIfObjectHasBeenEditedDependOnSpecificFields | Reader | Yes |
| 3 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_BOOK | REGISTRATION/EDIT | Can’t edit number of items treated in animal health book | Checks if number of treated items is edited | Other | beforeSave | OnSaveValidations | Yes |
| 4 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_BOOK | REGISTRATION/EDIT | Can’t add larger number of treated items than total number | Checks if number of treated items is bigger than total | Other | beforeSave | OnSaveValidations | Yes |
| 5 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_BOOK | REGISTRATION/EDIT | Vaccination book action date can’t be in the future | Check if vaccination book action date is in future | Dates | checkIfDateIsInFuture | ValidationChecks | Yes |
| 6 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_RESULTS | REGISTRATION/EDIT | Vaccination results has minimum fields filled | Checks if vaccination results has minimum fields filled | Other | checkIfDbDataObjectHasMinimumNumOfFilledFields | ValidationChecks | Yes |
| 7 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Vaccination event campaign name is unique | Checks if vaccination event campaign name is unique | Uniqueness | checkIfFieldIsUnique | ValidationChecks | Yes |
| 8 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Vaccination event end date can’t be after start date | Check if start date is after end date | Dates | vaccinationEventValidationSet | ValidationChecks | No |
| 9 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Vaccination event registration date can’t be in the future | Check if registration date is in future | Dates | checkIfDateIsInFuture | ValidationChecks | Yes |
| 10 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Campaign scope of type pet can’t be applied on animals | Check if campaign scope of type pet is applied on animals | Other | vaccinationEventValidationSet | ValidationChecks | No |
| 11 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Inapplicable activity type for pets | Check if activity type is applicable for pets | Other | vaccinationEventValidationSet | ValidationChecks | No |
| 12 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Inapplicable diseases for pets | Check if disease is applicable for pets | Other | vaccinationEventValidationSet | ValidationChecks | No |
| 13 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | VACCINATION_EVENT | REGISTRATION/EDIT | Campaign scope of type animal can’t be applied on pets | Check if campaign scope of type animal is applied on pets | Other | vaccinationEventValidationSet | ValidationChecks | No |
| 14 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | ANIMAL_VACC_BOOK | REGISTRATION/EDIT | Animal can participate only once in campaign | Checks if animal already participates in campaign | Other | checkIfAnimalParticipatedInVaccinationEvent | ValidationChecks | No |
| 15 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | ANIMAL_VACC_BOOK | REGISTRATION/EDIT | Animal must have appropriate class for animal scope in campaign | Check if animal class is appropriate for campaign animal scope | Other | checkIfAnimalTypeScopeIsApplicableOnSelectedAnimal | ValidationChecks | Yes |
| 16 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | FLOCK_VACC_BOOK | REGISTRATION/EDIT | Flock must have appropriate class for animal scope in campaign | Check if flock class is appropriate for campaign animal scope | Other | checkIfAnimalTypeScopeIsApplicableOnSelectedAnimal | ValidationChecks | Yes |
| 17 | ANIMAL HEALTH ACTIONS AND CAMPAIGNS | FLOCK_VACC_BOOK | REGISTRATION/EDIT | Number of entered units must be smaller than total number | Checks if total number is larger than entered units | Other | beforeSave | OnSaveValidations | Yes |