Patient data form customization

I am currently working on a project, part of what I hope to achieve is that patients get registered on the platform via a customized form, then based on the information provided on some fields in the form, for example let’s say the patient has blood in his urine, or is HIV positive, then an email is sent to the doctors, who will also receive a pop up alert when he logs into the system, while the patient will receive and SMS alert for appointments with the doctor.