diff --git a/1.sources/MyHealth/src/ejb/common/CommonFacadeBean.java b/1.sources/MyHealth/src/ejb/common/CommonFacadeBean.java index dfa144c..ff821e9 100644 --- a/1.sources/MyHealth/src/ejb/common/CommonFacadeBean.java +++ b/1.sources/MyHealth/src/ejb/common/CommonFacadeBean.java @@ -481,19 +481,19 @@ public class CommonFacadeBean implements CommonFacadeRemote, CommonFacadeLocal { return qsTO; } - public VisitTO getPOJOforVisitJPA(VisitJPA qs, int nestedProps) { + public VisitTO getPOJOforVisitJPA(VisitJPA vi, int nestedProps) { VisitTO qsTO = null; - if (qs != null) { + if (vi != null) { FamilyDoctorJPA fd = null; PatientJPA pat = null; if (nestedProps > 0) { - fd = qs.getFamilyDoctor(); - pat = qs.getPatient(); + fd = vi.getFamilyDoctor(); + pat = vi.getPatient(); } nestedProps--; - qsTO = new VisitTO(qs.getId(), qs.getDate(), qs.getTime(), qs.getObservations(), qs.getResult(), this.getPOJOforFamilyDoctorJPA(fd, nestedProps), + qsTO = new VisitTO(vi.getId(), vi.getDate(), vi.getTime(), vi.getObservations(), vi.getResult(), this.getPOJOforFamilyDoctorJPA(fd, nestedProps), this.getPOJOforPatientJPA(pat, nestedProps)); }