Skip to content
Snippets Groups Projects
Commit 56aae33f authored by xuechen5's avatar xuechen5
Browse files

Merge 2 functions into 1

parent 8278e004
No related branches found
No related tags found
2 merge requests!22Merge UC92 into Master,!15Merge 5-uc-92-activate-pre-registered-patient-2 into UC92v2
......@@ -47,7 +47,7 @@ public class ViewPreRegisteredPatientListAction {
*
* @throws ITrustException
*/
private void getPreRegisteredFromPatientsTable() throws ITrustException {
public List<PatientBean> getPreRegisteredPatients() throws ITrustException {
try {
List<PatientBean> plist = patientDAO.getAllPreRegisteredPatients();
......@@ -56,25 +56,11 @@ public class ViewPreRegisteredPatientListAction {
PreRegisteredPatients.add(pb);
}
return PreRegisteredPatients;
}
catch (DBException dbe) {
throw new ITrustException(dbe.getMessage());
}
}
/**
* Get the list of Pre-Registered patients
*
* @return the list of patients an HCP has had office visits with
* @throws DBException
*/
public List<PatientBean> getPreRegisteredPatients() throws DBException {
try {
getPreRegisteredFromPatientsTable();
}
catch (ITrustException ie) {
}
return PreRegisteredPatients;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment