Final year project for a Patient-controlled electronic medical record system.