I have built three forms in my app as follows.
Form 1 : the CHW registers a tb contact in the following fields: registration date, full name, phone number, age
Form 2 : Contact follow up form (visit form): the CHW has to make 5 visits. The first visit is during registration day, 2nd visit after 15 days and 3rd visit after 30 days. In the first visit the CHW checks if the contact has tb symptoms. if he/she has symptoms, he/she is then referred to a health facility for tb test. If the test is positive at the HF, the contact is removed from the contact list and added to the tb patients list.
My problem is the validation. The CHW only has to make visits 2 and 3 if the contact has no symptoms in form 2 and the tb test is negative after filling out the referral form (form3) at the health facility. How can I link forms 2 and 3?
Form 3 : Referral form: the CHW fills out this form to know the contact’s tb test result.