Loading a patient record

When you click a link to a patient record from the Home page (/patientHome.do), PatientHomeAction is loaded. It extends BasePatientAction, which loads summary patient data into a public field called sessionPatient.

SessionPatientDAO.updateSessionPatient loads the following data into sessionPatient: ega, delivery status, partograph status, children, mother status, hiv status, and a list of long-term problems.

SessionPatientDAO.getPatientId(conn, request) puts this data into the session.

Finally, PatientHomeAction gets the current flow from sessionPatient and forwards the user to the correct page.