Examples of FamilyPatientBackground


Examples of systole.domain.clinicalInformation.FamilyPatientBackground

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

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

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

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

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

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

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

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

     * @see systole.view.crud.controller.ControllerEntityEdition#loadEntityFromForm()
     */
    @Override
    protected void loadEntityFromForm() {
        JDialogFamilyBackground form = (JDialogFamilyBackground) this.editForm;
        FamilyPatientBackground familyPatientPathology = (FamilyPatientBackground) this.curretnEntity;
        familyPatientPathology.setFamily((Family) form.getCmbRelatives().getSelectedItem());
        familyPatientPathology.setBackgroundCardiac(form.getjChkCardiac().isSelected());
        familyPatientPathology.setBackgroundCholesterol(form.getjChkCholesterol().isSelected());
        familyPatientPathology.setBackgroundDiabetic(form.getjChkDiabetic().isSelected());
        familyPatientPathology.setBackgroundHypertension(form.getjChkHypertension().isSelected());
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

     * @see systole.view.crud.controller.ControllerEntityEdition#loadEntityOnForm()
     */
    @Override
    protected void loadEntityOnForm() {
        JDialogFamilyBackground form = (JDialogFamilyBackground) this.editForm;
        FamilyPatientBackground familyPatientBackground = (FamilyPatientBackground) this.curretnEntity;
        form.getCmbRelatives().setSelectedItem(familyPatientBackground.getFamily());
        form.getjChkCardiac().setSelected((familyPatientBackground.getBackgroundCardiac() == null) ? false : familyPatientBackground.getBackgroundCardiac().booleanValue());
        form.getjChkCholesterol().setSelected((familyPatientBackground.getBackgroundCholesterol() == null) ? false : familyPatientBackground.getBackgroundCholesterol().booleanValue());
        form.getjChkDiabetic().setSelected((familyPatientBackground.getBackgroundDiabetic() == null) ? false : familyPatientBackground.getBackgroundDiabetic().booleanValue());
        form.getjChkHypertension().setSelected((familyPatientBackground.getBackgroundHypertension() == null) ? false : familyPatientBackground.getBackgroundHypertension().booleanValue());
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

     * @see systole.view.crud.controller.ControllerEntityEdition#save()
     */
    @Override
    protected void save() {
        if (!this.isEditing()) {
            FamilyPatientBackground background = (FamilyPatientBackground) this.curretnEntity;
            background.setId(new FamilyPatientBackgroundId(background.getFamily().getId(), background.getPatient().getId()));
            this.patient.getFamilyPatientBackgrounds().add(background);
        }
    }
View Full Code Here

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

    protected void loadIconOnForm() {
    }

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

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

        }

        if (patientWs.getFamilyBackground() != null) {
            Iterator<PatientFamilyWs> backgrounds = patientWs.getFamilyBackground().iterator();
            while (backgrounds.hasNext()) {
                FamilyPatientBackground background = this.convertToLocalPatientFamilyBackground(backgrounds.next(), patient);
                if (background != null) {
                    patient.getFamilyPatientBackgrounds().add(background);
                }
            }
        }
View Full Code Here

Examples of systole.domain.clinicalInformation.FamilyPatientBackground

        }
        Family family = FacadeDB.getInstance().getFamilySyncBroker().getFamilyByRemoteId(patientFamilyWs.getFamilyId());
        if (family == null) {
            return null;
        }
        FamilyPatientBackground familyPatientBackground = new FamilyPatientBackground();
        FamilyPatientBackgroundId id = new FamilyPatientBackgroundId(family.getId(), patient.getId());
        familyPatientBackground.setId(id);
        familyPatientBackground.setFamily(family);
        familyPatientBackground.setPatient(patient);
        familyPatientBackground.setBackgroundCardiac(patientFamilyWs.isBackgroundCardiac());
        familyPatientBackground.setBackgroundCholesterol(patientFamilyWs.isBackgroundCholesterol());
        familyPatientBackground.setBackgroundDiabetic(patientFamilyWs.isBackgroundDiabetic());
        familyPatientBackground.setBackgroundHypertension(patientFamilyWs.isBackgroundHypertension());
        return familyPatientBackground;
    }
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.