Examples of PatientMedicineWs


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

Examples of systole.synchronization.remote.ws.PatientMedicineWs

        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
Copyright © 2018 www.massapi.com. 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.