Package systole.domain.clinicalInformation

Examples of systole.domain.clinicalInformation.PathologyPatient


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

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

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


     * @see systole.view.crud.controller.ControllerEntityEdition#loadEntityFromForm()
     */
    @Override
    protected void loadEntityFromForm() {
        JDialogPathologyByPatient form = (JDialogPathologyByPatient) this.editForm;
        PathologyPatient pathologyPatient = (PathologyPatient) this.curretnEntity;
        pathologyPatient.setPathology((Pathology) form.getCmbPathologies().getSelectedItem());
        pathologyPatient.setInherited(form.getChkInherited().isSelected());
        pathologyPatient.setCurrently(form.getChkPresentToday().isSelected());
        Integer age = (Integer) form.getjSpnYears().getValue();
       pathologyPatient.setAgeAtStartAsInteger(age);
    }
View Full Code Here

     * @see systole.view.crud.controller.ControllerEntityEdition#loadEntityOnForm()
     */
    @Override
    protected void loadEntityOnForm() {
        JDialogPathologyByPatient form = (JDialogPathologyByPatient) this.editForm;
        PathologyPatient pathologyPatient = (PathologyPatient) this.curretnEntity;
        Pathology pathology = pathologyPatient.getPathology();
        form.getCmbPathologies().setSelectedItem(pathology);
        form.getChkInherited().setSelected((pathologyPatient.getInherited() == null) ? false : pathologyPatient.getInherited());
        form.getChkPresentToday().setSelected((pathologyPatient.getCurrently() == null) ? false : pathologyPatient.getCurrently());
        form.getjSpnYears().setValue(pathologyPatient.getAgeAtStartAsInteger());
    }
View Full Code Here

     * @see systole.view.crud.controller.ControllerEntityEdition#save()
     */
    @Override
    protected void save() {
        if (!this.isEditing()) {
            PathologyPatient pathologyPatient = (PathologyPatient) this.curretnEntity;
            pathologyPatient.setId(new PathologyPatientId(pathologyPatient.getPathology().getId(), pathologyPatient.getPatient().getId()));
            this.patient.getPathologiesPatient().add(pathologyPatient);
        }
    }
View Full Code Here

    protected void loadIconOnForm() {
    }

    @Override
    protected Object createEntity() throws ExceptionDAO {
        return new PathologyPatient(this.patient);
    }
View Full Code Here

        }

        if (patientWs.getPathologies() != null) {
            Iterator<PatientPathologyWs> pathologies = patientWs.getPathologies().iterator();
            while (pathologies.hasNext()) {
                PathologyPatient pathologyPatient = this.convertToLocalPatientPathology(pathologies.next(), patient);
                if (pathologyPatient != null) {
                    patient.getPathologiesPatient().add(pathologyPatient);
                }
            }
        }
View Full Code Here

        }
        Pathology pathology = FacadeDB.getInstance().getPathologySyncBroker().getPathologyByRemoteId(patientPathologyWs.getPathologyId());
        if (pathology == null) {
            return null;
        }
        PathologyPatient pathologyPatient = new PathologyPatient();
        PathologyPatientId id = new PathologyPatientId(pathology.getId(), patient.getId());
        pathologyPatient.setId(id);
        Integer difAges = patient.getAge() - patientPathologyWs.getAgeAtStart();
        pathologyPatient.setAgeAtStartAsInteger(difAges);
        pathologyPatient.setCurrently(patientPathologyWs.isCurrently());
        pathologyPatient.setInherited(patientPathologyWs.isInherited());
        return pathologyPatient;
    }
View Full Code Here

TOP

Related Classes of systole.domain.clinicalInformation.PathologyPatient

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.