Package systole.domain.clinicalInformation

Examples of systole.domain.clinicalInformation.MedicinePatientId


     */
    @Override
    protected void save() {
        if (!this.isEditing()) {
            MedicinePatient medicinePatient = (MedicinePatient) this.curretnEntity;
            medicinePatient.setId(new MedicinePatientId(medicinePatient.getMedicine().getId(), medicinePatient.getPatient().getId()));
            this.patient.getMedicinesPatient().add(medicinePatient);
        }
    }
View Full Code Here


        Medicine medicine = FacadeDB.getInstance().getMedicineSyncBroker().getMedicineByRemoteId(patientMedicineWs.getMedicineId());
        if (medicine == null) {
            return null;
        }
        MedicinePatient medicinePatient = new MedicinePatient();
        MedicinePatientId id = new MedicinePatientId(medicine.getId(), patient.getId());
        medicinePatient.setId(id);
        medicinePatient.setMedicine(medicine);
        medicinePatient.setPatient(patient);
        Integer difAges = patient.getAge() - patientMedicineWs.getAgeAtStart();
        medicinePatient.setAgeAtStartAsInteger(difAges);
View Full Code Here

TOP

Related Classes of systole.domain.clinicalInformation.MedicinePatientId

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.