Package systole.synchronization.remote.ws

Examples of systole.synchronization.remote.ws.PatientPathologyWs


        }

        if (patient.getPathologiesPatient() != null) {
            Iterator<PathologyPatient> patholiges = patient.getPathologiesPatient().iterator();
            while (patholiges.hasNext()) {
                PatientPathologyWs pathologyWs = this.convertToRemotePathologyPatient(patholiges.next());
                if (pathologyWs != null) {
                    patientWs.getPathologies().add(pathologyWs);
                }
            }
        }
View Full Code Here


        PathologyRemote pathologyRemote = FacadeDB.getInstance().getPathologySyncBroker().getPathologyRemoteByPathology(pathologyPatient.getPathology());
        if (pathologyRemote == null) {
            return null;
        }
        PatientPathologyWs patientPathologyWs = new PatientPathologyWs();
        patientPathologyWs.setPathologyId(pathologyRemote.getRemoteId());
        patientPathologyWs.setAgeAtStart(pathologyPatient.getAgeAtStartAsInteger() > 0 ? pathologyPatient.getPatient().getAge() - pathologyPatient.getAgeAtStartAsInteger() : 0);
        patientPathologyWs.setCurrently(pathologyPatient.getCurrently() != null ? pathologyPatient.getCurrently() : false);
        patientPathologyWs.setInherited(pathologyPatient.getInherited() != null ? pathologyPatient.getInherited() : false);
        return patientPathologyWs;
    }
View Full Code Here

TOP

Related Classes of systole.synchronization.remote.ws.PatientPathologyWs

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.