private void addOfDate(OfDate patientHistoryx, Tree t1) { if (t1.isPvariable()) { Pvariablex pvariablex = new Pvariablex(t1); if ("ofDate".equals(t1.getPvalueO().getPvariable())) { patientHistoryx.setPvOfDate(pvariablex); } } }
private TaskPatientx taskPatientx(Tree taskT) { TaskPatientx taskPatientx = new TaskPatientx(taskT); for (Tree t1 : taskT.getChildTs()) { addOfDate(taskPatientx, t1); if (t1.isPvariable()) { Pvariablex pvariablex = new Pvariablex(t1); if ("cycle".equals(t1.getPvalueO().getPvariable())) { taskPatientx.setPvCycle(pvariablex); } } } log.debug(taskPatientx); return taskPatientx; }