| | 92 | |
| | 93 | == Regression Test Plan / Summary of Functionality |
| | 94 | |
| | 95 | Here is a list of the actions carried out by the import processes of the NIHR Bioresource CiviCRM module. The list can be used as the basis of a test plan. |
| | 96 | |
| | 97 | 1. [ ] If the patient already exists, the module will update the details of the patient. MISMATCH? |
| | 98 | 1. [ ] If the patient does not already exist, the patient is created. |
| | 99 | 1. [ ] The patient's prefix (title) should be set correctly. |
| | 100 | 1. [ ] Address details for the patient should be created for a new patient. |
| | 101 | 1. [ ] Address details will be amended for an existing patient, but will not be duplicated. |
| | 102 | 1. [ ] The bioresource contact group should be created when the module is enabled. |
| | 103 | 1. [ ] Patients should be added to the bioresource contact group |
| | 104 | 1. [ ] If the patient already exists, it should not create a duplicate membership of the group. |
| | 105 | 1. Where the Letter Type = 'Invitation Letter' |
| | 106 | 1. [ ] A new bioresource study enrollment should be created for the patient. |
| | 107 | 1. [ ] If a bioresource enrollment for the patient already exists, an error should be produced (On screen and in watchdog) and continue to the next patient. |
| | 108 | 1. [ ] Creates an invitation letter activity against the enrollment. |
| | 109 | 1. [ ] If Check Questionnaire is checked, creates a check questionnaire activity with the check questionnaire date. |
| | 110 | 1. [ ] If Check Questionnaire is checked, but no check questionnaire date is supplied **???** |
| | 111 | 1. [ ] If Declined checked, creates a check consent activity with the check consent date. |
| | 112 | 1. [ ] If Declined checked, but no consent checked date is supplied **???** |
| | 113 | 1. [ ] If Consent checked, created a check consent activity with the check consent date. |
| | 114 | 1. [ ] If Consent checked, but no consent checked date is supplied **???** |
| | 115 | 1. [ ] If consent checked, changes the enrollment status to 'Recruited' and creates an activity for change of status, using the consent date. |
| | 116 | 1. Where the Letter Type = 'Reminder Letter' |
| | 117 | 1. [ ] If the enrollment does not exist, an error should be produced (On screen and in watchdog) and continue to the next patient. |
| | 118 | 1. [ ] Creates a reminder letter activity against the enrollment. |
| | 119 | 1. [ ] If consent, declined or questionnaire checked columns are 'Y', not activities or enrollment statuses are changed. |