Examples of SurgeryPatient


Examples of systole.domain.clinicalInformation.SurgeryPatient

        Vector<String> result = new Vector<String>();

        int amount = (maxAmount > 0 ? maxAmount : this.getSurgeries().size());

        while ((it.hasNext()) && (amount > 0)) {
            SurgeryPatient surgery = it.next();
            result.add(surgery.toString());
            amount--;
        }
        return result;
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.SurgeryPatient

    /* (non-Javadoc)
     * @see systole.view.crud.controller.ControllerEntityEdition#loadEntityFromForm()
     */
    @Override
    protected void loadEntityFromForm() {
        SurgeryPatient surgeryPatient = (SurgeryPatient) this.curretnEntity;
        JDialogSugeries form = (JDialogSugeries) this.editForm;
        surgeryPatient.setPatient(this.patient);
        surgeryPatient.setSurgery((Surgery) form.getCmbSurgeries().getSelectedItem());
        Integer age = null;
        try {
            age = Integer.parseInt(form.getjTxtAge().getText());
        } catch (NumberFormatException e) {
        }
        surgeryPatient.setAgeAtSurgery(age);
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.SurgeryPatient

    /* (non-Javadoc)
     * @see systole.view.crud.controller.ControllerEntityEdition#loadEntityOnForm()
     */
    @Override
    protected void loadEntityOnForm() {
        SurgeryPatient surgeryPatient = (SurgeryPatient) this.curretnEntity;
        JDialogSugeries form = (JDialogSugeries) this.editForm;
        form.getCmbSurgeries().setSelectedItem(surgeryPatient.getSurgery());
        form.getjTxtAge().setText(surgeryPatient.getAgeAtSurgery() != null ? surgeryPatient.getAgeAtSurgery().toString() : "");
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.SurgeryPatient

     * @see systole.view.crud.controller.ControllerEntityEdition#save()
     */
    @Override
    protected void save() {
        if (!this.isEditing()) {
            SurgeryPatient surgeryPatient = (SurgeryPatient) this.curretnEntity;
            surgeryPatient.setId(new SurgeryPatientId(surgeryPatient.getPatient().getId(), surgeryPatient.getSurgery().getId()));
            this.patient.getSurgeriesPatient().add(surgeryPatient);
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.SurgeryPatient

    protected void loadIconOnForm() {
    }

    @Override
    protected Object createEntity() throws ExceptionDAO {
        return new SurgeryPatient();
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.SurgeryPatient

        }

        if (patientWs.getSurgeries() != null) {
            Iterator<PatientSurgeryWs> surgeries = patientWs.getSurgeries().iterator();
            while (surgeries.hasNext()) {
                SurgeryPatient surgeryPatient = this.convertToLocalPatientSurgery(surgeries.next(), patient);
                if (surgeryPatient != null) {
                    patient.getSurgeriesPatient().add(surgeryPatient);
                }
            }
        }
View Full Code Here

Examples of systole.domain.clinicalInformation.SurgeryPatient

        }
        Surgery surgery = FacadeDB.getInstance().getSurgerySyncBroker().getSurgeryByRemoteId(patientSurgeryWs.getSurgeryId());
        if (surgery == null) {
            return null;
        }
        SurgeryPatient surgeryPatient = new SurgeryPatient();
        SurgeryPatientId id = new SurgeryPatientId(patient.getId(), surgery.getId());
        surgeryPatient.setId(id);
        surgeryPatient.setSurgery(surgery);
        surgeryPatient.setPatient(patient);
        surgeryPatient.setAgeAtSurgery(patientSurgeryWs.getAgeAtSurgery());
        return surgeryPatient;
    }
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.