Package systole.synchronization.remote.ws

Examples of systole.synchronization.remote.ws.PatientMedicineWs


        }

        if (patient.getMedicinesPatient() != null) {
            Iterator<MedicinePatient> medicines = patient.getMedicinesPatient().iterator();
            while (medicines.hasNext()) {
                PatientMedicineWs patientMedicineWs = this.convertToRemoteMedicinePatient(medicines.next());
                if (patientMedicineWs != null) {
                    patientWs.getMedicines().add(patientMedicineWs);
                }
            }
        }
View Full Code Here


        MedicineRemote medicineRemote = FacadeDB.getInstance().getMedicineSyncBroker().getMedicineRemoteByMedicine(medicinePatient.getMedicine());
        if (medicineRemote == null) {
            return null;
        }
        PatientMedicineWs patientMedicineWs = new PatientMedicineWs();
        patientMedicineWs.setAgeAtStart(medicinePatient.getAgeAtStartAsInteger() > 0 ? medicinePatient.getPatient().getAge() - medicinePatient.getAgeAtStartAsInteger() : 0);
        patientMedicineWs.setDosage(medicinePatient.getDosage());
        patientMedicineWs.setMedicineId(medicineRemote.getRemoteId());
        return patientMedicineWs;
    }
View Full Code Here

TOP

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

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.