diff --git a/omod/pom.xml b/omod/pom.xml
index a111e4d..0615800 100644
--- a/omod/pom.xml
+++ b/omod/pom.xml
@@ -31,7 +31,6 @@
aws-java-sdk
1.11.327
-
org.openmrs.web
openmrs-web
diff --git a/omod/src/main/java/org/openmrs/module/patientlist/advice/PatientAroundSaveAdvise.java b/omod/src/main/java/org/openmrs/module/patientlist/advice/PatientAroundSaveAdvise.java
index 2dbd6c3..3fdfb7a 100644
--- a/omod/src/main/java/org/openmrs/module/patientlist/advice/PatientAroundSaveAdvise.java
+++ b/omod/src/main/java/org/openmrs/module/patientlist/advice/PatientAroundSaveAdvise.java
@@ -74,7 +74,8 @@ public Object invoke(MethodInvocation invocation) throws Throwable {
}
// the proceed() method does not have to be called
Patient newPatient = (Patient) invocation.proceed();
- System.out.println("AFTER SAVE - ADDING NEW PATIENT TO PATIENTLIST o: " + o.getClass());
+ System.out.println("AFTER SAVE - ADDING NEW PATIENT TO PATIENTLIST: " + newPatient.getGivenName() + " "
+ + newPatient.getFamilyName());
addPatientToActiveList(patient);
log.debug("After " + invocation.getMethod().getName() + ".");
@@ -102,8 +103,8 @@ private boolean isOldPatientInActiveList() {
private boolean isPatientAlreadyRegistered(Patient patient) {
List patients = Context.getPatientService().getAllPatients();
- System.out.println("patientAlreadyRegistered: " + patient.getGivenName() + " " + patient.getFamilyName() + " "
- + patient.getGender() + " " + patient.getAge() + " "
+ System.out.println("in method patientAlreadyRegistered: " + patient.getGivenName() + " "
+ + patient.getFamilyName() + " " + patient.getGender() + " " + patient.getAge() + " "
+ patient.getAttribute("Telephone Number").getValue());
for (Patient oldPat : patients) {
if ((oldPat.getGender().equals(patient.getGender()))