added alert_flag to patient model and add links for lab_tests