private boolean isQuestionInvalidForPatient(Question_InformationVo question) { PatientAssessmentInfoVo patInfo = form.getLocalContext().getPatientInfo(); if (patInfo == null) return false; if (question.getGenderSpecificIsNotNull()) { if (GenderSpecific.MALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.MALE.equals(patInfo.getSex()))) return true; else if (GenderSpecific.FEMALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.FEMALE.equals(patInfo.getSex()))) return true; } if (question.getAgeRangeMaxIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge() > question.getAgeRangeMax())) return true; if (question.getAgeRangeMinIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge() < question.getAgeRangeMin())) return true; return false; }
private boolean isQuestionInvalidForPatient(QuestionInformationVo question) { PatientAssessmentInfoVo patInfo = form.getLocalContext().getPatientInfo(); if (patInfo == null) return false; if (question.getGenderSpecificIsNotNull()) { if (GenderSpecific.MALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.MALE.equals(patInfo.getSex()))) return true; else if (GenderSpecific.FEMALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.FEMALE.equals(patInfo.getSex()))) return true; } if (question.getAgeRangeMaxIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge() > question.getAgeRangeMax())) return true; if (question.getAgeRangeMinIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge() < question.getAgeRangeMin())) return true; return false; }
private boolean isQuestionInvalidForPatient(QuestionInformationVo question) { if (patInfo == null) return false; if (question.getGenderSpecificIsNotNull() ) { if (GenderSpecific.MALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.MALE.equals(patInfo.getSex()))) return true; else if (GenderSpecific.FEMALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.FEMALE.equals(patInfo.getSex()) )) return true; } if (question.getAgeRangeMaxIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge()>question.getAgeRangeMax())) return true; if (question.getAgeRangeMinIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge()<question.getAgeRangeMin())) return true; return false; }
private boolean isQuestionInvalidForPatient(Question_InformationVo question) { if (patInfo == null) return false; if (question.getGenderSpecificIsNotNull() ) { if (GenderSpecific.MALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.MALE.equals(patInfo.getSex()))) return true; else if (GenderSpecific.FEMALE.equals(question.getGenderSpecific()) && (!patInfo.getSexIsNotNull() || !Sex.FEMALE.equals(patInfo.getSex()) )) return true; } if (question.getAgeRangeMaxIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge()>question.getAgeRangeMax())) return true; if (question.getAgeRangeMinIsNotNull() && (!patInfo.getAgeIsNotNull() || patInfo.getAge()<question.getAgeRangeMin())) return true; return false; }
private GenderInvestigationVo isInvAppropriate(GenderSpecific instGenderSpecific, boolean isFemale, Investigation doInv) { if (instGenderSpecific != null) { if (!instGenderSpecific.equals(GenderSpecific.NOTAPPLICABLE)) { if (instGenderSpecific.equals(GenderSpecific.FEMALE)) { if (!isFemale) return GenderInvestigationVoAssembler.create(doInv);//WDEV-16762 } else if (instGenderSpecific.equals(GenderSpecific.MALE)) { if (isFemale) return GenderInvestigationVoAssembler.create(doInv);//WDEV-16762 } } } return null; }
private void initialiseNewQuestion() { form.getLocalContext().setVoQuestionInformation(new QuestionInformationVo()); setIsNewQuestion(new Boolean(true)); showTabNewQuestion(); form.lyrTabs().tabNewQuestion().txtShortText().setValue(form.lyrTabs().tabSearchQuestion().txtSearchText().getValue()); form.lyrTabs().tabNewQuestion().txtShortText().setFocus(); form.lyrTabs().tabNewQuestion().lyrDetails().tabGeneral().chkIsQuestion().setValue(true); form.lyrTabs().tabNewQuestion().cmbStatus().setValue(PreActiveActiveInactiveStatus.PREACTIVE); form.lyrTabs().tabNewQuestion().lyrDetails().tabGeneral().cmbGenre().setValue(GenderSpecific.NOTAPPLICABLE); form.lyrTabs().tabNewQuestion().lyrDetails().tabLegend().richTextLegend().setValue(""); form.setMode(FormMode.EDIT); }
private GenderInvestigationVoCollection isInvAppropriate(GenderSpecific instGenderSpecific, boolean isFemale, InvestShortVo investShortVo) { GenderInvestigationVoCollection invColl = new GenderInvestigationVoCollection(); if (instGenderSpecific != null) { if (!instGenderSpecific.equals(GenderSpecific.NOTAPPLICABLE)) { if (instGenderSpecific.equals(GenderSpecific.FEMALE)) { if (!isFemale) { invColl.add(getGenderInvestigationFromInvestShort(investShortVo)); } } else if (instGenderSpecific.equals(GenderSpecific.MALE)) { if (isFemale) { invColl.add(getGenderInvestigationFromInvestShort(investShortVo)); } } } } return invColl.size() > 0 ? invColl : null; }
private GenderInvestigationVoCollection isInvAppropriateFromComponent(GenderSpecific instGenderSpecific, boolean isFemale, SelectedComponentFromSelectOrderVo component) { GenderInvestigationVoCollection invColl = new GenderInvestigationVoCollection(); if (instGenderSpecific != null) { if (!instGenderSpecific.equals(GenderSpecific.NOTAPPLICABLE)) { if (instGenderSpecific.equals(GenderSpecific.FEMALE)) { if (!isFemale) { invColl.add(getGenderInvestigationFromSelectedComponentFromSelectOrder(component)); } } else if (instGenderSpecific.equals(GenderSpecific.MALE)) { if (isFemale) { invColl.add(getGenderInvestigationFromSelectedComponentFromSelectOrder(component)); } } } } return invColl.size() > 0 ? invColl : null; }
private GenderSpecific assembleGenderSpecific(LookupInstance genderSpecificInstance) { if ( null != genderSpecificInstance ) { ims.admin.vo.lookups.GenderSpecific genderSpecific = new ims.admin.vo.lookups.GenderSpecific(genderSpecificInstance.getId(),genderSpecificInstance.getText(), genderSpecificInstance.isActive(), null, null, null); return genderSpecific; } return null; }