Package systole.synchronization.remote.ws

Examples of systole.synchronization.remote.ws.PatientSportWs


        patientWs.setProfessionId(this.convertToRemoteProfession(patient.getProfession()));

        if (patient.getSportsPatient() != null) {
            Iterator<SportPatient> sports = patient.getSportsPatient().iterator();
            while (sports.hasNext()) {
                PatientSportWs patientSportWs = this.convertToRemoteSportPatient(sports.next());
                if (patientSportWs != null) {
                    patientWs.getSports().add(patientSportWs);
                }
            }
        }
View Full Code Here


        SportRemote sportRemote = FacadeDB.getInstance().getSportSyncBroker().getSportRemoteFromSport(sportPatient.getSport());
        if (sportRemote == null) {
            return null;
        }
        PatientSportWs patientSportWs = new PatientSportWs();
        patientSportWs.setAgeAtStart(sportPatient.getAgeAtStartAsInteger() > 0 ? sportPatient.getPatient().getAge() - sportPatient.getAgeAtStartAsInteger() : 0);
        patientSportWs.setHoursXWeek(sportPatient.getHoursXWeek() != null ? sportPatient.getHoursXWeek() : 0);
        patientSportWs.setSportId(sportRemote.getRemoteId());
        return patientSportWs;
    }
View Full Code Here

TOP

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

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.