Examples of PersonWrapper


Examples of ke.go.moh.oec.reception.controller.PersonWrapper

        }
    }

    @Action
    public void confirmMothersLastName() {
        PersonWrapper mpiMatchPersonWrapper = mainViewHelper.getSession().getMpiMatchPersonWrapper();
        PersonWrapper lpiMatchPersonWrapper = mainViewHelper.getSession().getLpiMatchPersonWrapper();
        if (mpiMatchPersonWrapper != null) {
            if (mothersLastNameAcceptRadioButton.isSelected()) {
                mothersLastNameTextField.setText(mpiMatchPersonWrapper.getMothersLastName());
            } else if (mothersLastNameRejectRadioButton.isSelected()) {
                mothersLastNameTextField.setText(lpiMatchPersonWrapper.getMothersLastName());
            }
        }
    }
View Full Code Here

Examples of ke.go.moh.oec.reception.controller.PersonWrapper

        }
    }

    @Action
    public void confirmCompoundHeadFirstName() {
        PersonWrapper mpiMatchPersonWrapper = mainViewHelper.getSession().getMpiMatchPersonWrapper();
        PersonWrapper lpiMatchPersonWrapper = mainViewHelper.getSession().getLpiMatchPersonWrapper();
        if (mpiMatchPersonWrapper != null) {
            if (compoundHeadsFirstNameAcceptRadioButton.isSelected()) {
                compoundHeadsFirstNameTextField.setText(mpiMatchPersonWrapper.getCompoundHeadFirstName());
            } else if (compoundHeadsFirstNameRejectRadioButton.isSelected()) {
                compoundHeadsFirstNameTextField.setText(lpiMatchPersonWrapper.getCompoundHeadFirstName());
            }
        }
    }
View Full Code Here

Examples of ke.go.moh.oec.reception.controller.PersonWrapper

        }
    }

    @Action
    public void confirmCompoundHeadMiddleName() {
        PersonWrapper mpiMatchPersonWrapper = mainViewHelper.getSession().getMpiMatchPersonWrapper();
        PersonWrapper lpiMatchPersonWrapper = mainViewHelper.getSession().getLpiMatchPersonWrapper();
        if (mpiMatchPersonWrapper != null) {
            if (compoundHeadsMiddleNameAcceptRadioButton.isSelected()) {
                compoundHeadsMiddleNameTextField.setText(mpiMatchPersonWrapper.getCompoundHeadMiddleName());
            } else if (compoundHeadsMiddleNameRejectRadioButton.isSelected()) {
                compoundHeadsMiddleNameTextField.setText(lpiMatchPersonWrapper.getCompoundHeadMiddleName());
            }
        }
    }
View Full Code Here

Examples of ke.go.moh.oec.reception.controller.PersonWrapper

        }
    }

    @Action
    public void confirmCompoundHeadLastName() {
        PersonWrapper mpiMatchPersonWrapper = mainViewHelper.getSession().getMpiMatchPersonWrapper();
        PersonWrapper lpiMatchPersonWrapper = mainViewHelper.getSession().getLpiMatchPersonWrapper();
        if (mpiMatchPersonWrapper != null) {
            if (compoundHeadsLastNameAcceptRadioButton.isSelected()) {
                compoundHeadsLastNameTextField.setText(mpiMatchPersonWrapper.getCompoundHeadLastName());
            } else if (compoundHeadsLastNameRejectRadioButton.isSelected()) {
                compoundHeadsLastNameTextField.setText(lpiMatchPersonWrapper.getCompoundHeadLastName());
            }
        }
    }
View Full Code Here

Examples of ke.go.moh.oec.reception.controller.PersonWrapper

        }
    }

    @Action
    public void confirmConsentSigned() {
        PersonWrapper mpiMatchPersonWrapper = mainViewHelper.getSession().getMpiMatchPersonWrapper();
        PersonWrapper lpiMatchPersonWrapper = mainViewHelper.getSession().getLpiMatchPersonWrapper();
        if (mpiMatchPersonWrapper != null) {
            if (sexAcceptRadioButton.isSelected()) {
                hdssDataConsentYesRadioButton.setSelected(mpiMatchPersonWrapper.getConsentSigned() == Person.ConsentSigned.yes);
                hdssDataConsentNoRadioButton.setSelected(mpiMatchPersonWrapper.getConsentSigned() == Person.ConsentSigned.no);
                hdssDataConsentNoAnswerRadioButton.setSelected(mpiMatchPersonWrapper.getConsentSigned() == Person.ConsentSigned.notAnswered);
            } else if (sexRejectRadioButton.isSelected()) {
                hdssDataConsentYesRadioButton.setSelected(lpiMatchPersonWrapper.getConsentSigned() == Person.ConsentSigned.yes);
                hdssDataConsentNoRadioButton.setSelected(lpiMatchPersonWrapper.getConsentSigned() == Person.ConsentSigned.no);
                hdssDataConsentNoAnswerRadioButton.setSelected(lpiMatchPersonWrapper.getConsentSigned() == Person.ConsentSigned.notAnswered);

            }
        }
    }
View Full Code Here

Examples of ke.go.moh.oec.reception.controller.PersonWrapper

            super(app);
        }

        @Override
        protected Object doInBackground() {
            PersonWrapper personWrapper = mainViewHelper.getSearchPersonWrapper();
            personWrapper.setAliveStatus(Person.AliveStatus.yes);
            try {
                if (mainViewHelper.requiresClinicId()) {
                    personWrapper.setClinicId(extendedSearchClinicIdTextField.getText());
                }
                personWrapper.setFirstName(extendedSearchFirstNameTextField.getText());
                personWrapper.setMiddleName(extendedSearchMiddleNameTextField.getText());
                personWrapper.setLastName(extendedSearchLastNameTextField.getText());
                if (extendedSearchMaleRadioButton.isSelected()) {
                    personWrapper.setSex(Person.Sex.M);
                } else if (extendedSearchFemaleRadioButton.isSelected()) {
                    personWrapper.setSex(Person.Sex.F);
                }
                if (!extendedSearchUnknownBirthdateCheckBox.isSelected()) {
                    String dateToday = new SimpleDateFormat("ddMMyyyy").format(new Date());
                    String selectedDate = new SimpleDateFormat("ddMMyyyy").format(extendedSearchBirthdateChooser.getDate());
                    if (dateToday.equals(selectedDate)) {
                        if (showConfirmMessage("Are you sure you want to set this person's birthdate to today's date? "
                                + "Choose 'Yes' to accept today's date and continue or 'No' to change.")) {
                            personWrapper.setBirthdate(extendedSearchBirthdateChooser.getDate());
                        } else {
                            return new SearchProcessResult(SearchProcessResult.Type.ABORT, null);
                        }
                    } else {
                        personWrapper.setBirthdate(extendedSearchBirthdateChooser.getDate());
                    }
                }
                personWrapper.setOtherName(extendedSearchOtherNameTextField.getText());
                personWrapper.setClanName(extendedSearchClanNameTextField.getText());
                personWrapper.setVillageName(extendedSearchVillageTextField.getText());
                personWrapper.addFingerprint(mainViewHelper.getSession().getActiveImagedFingerprint());
                return mainViewHelper.findPerson(Server.MPI_LPI);
            } catch (MalformedCliniIdException ex) {
                showWarningMessage(ex.getMessage(), extendedSearchButton, extendedSearchClinicIdTextField);
                return new SearchProcessResult(SearchProcessResult.Type.ABORT, null);
            }
View Full Code Here

Examples of ke.go.moh.oec.reception.controller.PersonWrapper

            };
            new Thread(searchMessagePlayer).start();
            searchStatus.setOn(true);
            toggleSessionStarterButtons();
            startUnspecifiedClientSession();
            PersonWrapper quickSearchPersonWrapper = mainViewHelper.getSession().getSearchPersonWrapper();
            quickSearchPersonWrapper.setAliveStatus(Person.AliveStatus.yes);

            ImagedFingerprint ifp = null;
            ImagedFingerprint rightIndex = quickSearchManager.getRightIndex();
            ImagedFingerprint leftIndex = quickSearchManager.getLeftIndex();
            byte[] rightIndexTemplate = rightIndex.getFingerprint().getTemplate();
            byte[] leftIndexTemplate = leftIndex.getFingerprint().getTemplate();
            if (rightIndexTemplate == null && leftIndexTemplate == null) {
                ifp = rightIndex;
            } else {
                if (rightIndexTemplate == null && leftIndexTemplate != null) {
                    ifp = rightIndex;
                } else if (rightIndexTemplate != null && leftIndexTemplate == null) {
                    ifp = leftIndex;
                } else {
                    showWarningMessage("No more than two fingerprints are allowed on the quick search"
                            + " page. Please clear or reset to retake.", quickSearchFingerprintImagePanel);
                    return new SearchProcessResult(SearchProcessResult.Type.MAX, null);
                }
            }
            try {
                ifp.getFingerprint().setTemplate(fingerprintManager.getData());
                ifp.setImage(quickSearchFingerprintImagePanel.getImage());
                ifp.setQuality(quickSearchQualityTextField.getText());
            } catch (Exception ex) {
                return new SearchProcessResult(SearchProcessResult.Type.ABORT, null);
            }
            mainViewHelper.getSession().getImagedFingerprintList().add(ifp);
            mainViewHelper.getSession().setActiveImagedFingerprint(ifp);
            quickSearchPersonWrapper.addFingerprint(mainViewHelper.getSession().getActiveImagedFingerprint());
            return mainViewHelper.findPerson(Server.MPI_LPI, quickSearchPersonWrapper);
        }
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.