Package systole.domain.clinicalInformation

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


    /* (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

    /* (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

     * @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

    protected void loadIconOnForm() {
    }

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

        }

        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

        }
        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

Related Classes of systole.domain.clinicalInformation.SurgeryPatient

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.