Finished patient.php