Revise Patient Survey

Patients can now revise their survey. Made additional code
optimizations.