private void displayBlankStructuralAssessment() { User_AssessmentVo userAssessment = form.getLocalContext().getStructuralAssessment(); Patient_AssessmentVo newAssessment = new Patient_AssessmentVo(); Patient_AssessmentDataVo assessmentData = new Patient_AssessmentDataVo(); engine.setCaption(userAssessment.getName()); form.lyrAssessments().tabStructuralAssessment().setCaption(userAssessment.getName()); assessmentData.setUserAssessment(userAssessment); //WDEV-2442 assessmentData.setGroupQuestionWidth(userAssessment.getGroupQuestionWidth()); newAssessment.setAssessmentData(assessmentData); form.chkComplete().setValue(false); form.lyrAssessments().tabStructuralAssessment().lyrDualView().tabPageAssessment().customStructuredAssessment().setPatientAssessment(newAssessment,false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.lyrAssessments().tabStructuralAssessment().authStructuredAssessment().setValue(null); //form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentEnabled(true); form.lyrAssessments().tabStructuralAssessment().imbStructuralContextInfo().setTooltip(""); form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentCompletedVisible(false); //WDEV-12501 form.lyrAssessments().tabStructuralAssessment().lyrDualView().tabPageReport().ccReportBuilder().clear(); }
private void displayBlankGraphicalAssessment() { Graphic_AssessmentVo graphicalAssessment = form.getLocalContext().getGraphicalAssessment(); Patient_AssessmentVo newAssessment = new Patient_AssessmentVo(); Patient_AssessmentDataVo assessmentData = new Patient_AssessmentDataVo(); engine.setCaption(graphicalAssessment.getName()); form.lyrAssessments().tabGraphicalAssessment().setCaption(graphicalAssessment.getName()); assessmentData.setGraphic(graphicalAssessment); newAssessment.setAssessmentData(assessmentData); form.chkComplete().setValue(false); form.lyrAssessments().tabGraphicalAssessment().customGraphicalAssessment().setPatientAssessment(newAssessment,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.lyrAssessments().tabGraphicalAssessment().authGraphicalAssessment().setValue(null); //form.lyrAssessments().tabGraphicalAssessment().setauthGraphicalAssessmentEnabled(true); form.lyrAssessments().tabGraphicalAssessment().imbGraphicalContextInfo().setTooltip(""); form.lyrAssessments().tabGraphicalAssessment().setauthGraphicalAssessmentCompletedVisible(false); }
private void displayBlankStructuralAssessmentWithAnswersCopied() { User_AssessmentVo userAssessment = form.getLocalContext().getStructuralAssessment(); engine.setCaption(userAssessment.getName()); form.lyrAssessments().tabStructuralAssessment().setCaption(userAssessment.getName()); Patient_AssessmentVo newPatientAssessment = clonePatientAssessment(domain.getPatientAssessment(form.getLocalContext().getCopyAnswersFromPreviousAssessment())); form.chkComplete().setValue(false); form.lyrAssessments().tabStructuralAssessment().lyrDualView().tabPageAssessment().customStructuredAssessment().setPatientAssessment(newPatientAssessment, false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); //WDEV-12139 // WDEV-12644 form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentEnabled(Boolean.FALSE.equals(ConfigFlag.UI.ASSESSMENTS_SET_AUTHORING_AND_COMPLETING_DETAILS_AS_READ_ONLY.getValue())); //wdev-9134 form.lyrAssessments().tabStructuralAssessment().authStructuredAssessment().initializeComponent(); form.lyrAssessments().tabStructuralAssessment().imbStructuralContextInfo().setTooltip(""); form.lyrAssessments().tabStructuralAssessment().setauthStructuredAssessmentCompletedVisible(false); //WDEV-12501 form.lyrAssessments().tabStructuralAssessment().lyrDualView().tabPageReport().ccReportBuilder().clear(); }
public void open() { PatientAssessmentVo patientAssessment = form.getLocalContext().getCurrentAssessment(); populateCombos(patientAssessment); populateAuthoring(patientAssessment); populateCompletedHCPCustomControl(patientAssessment); form.customControlUAI().clearComponent(); form.customControlUAI().setPatientAssessment(patientAssessment,false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); if(form.btnNew().isVisible() && form.getMode().equals(FormMode.EDIT)) { form.cmbStatus().setValue(null); form.customControlAuthoring().setValue(null); } }
public void setPatientAssessment(PatientAssessmentVo patientAssessment, PatientAssessmentInfoVo patInfo) { clear(); if (patientAssessment == null) throw new RuntimeException("Invalid patient assessment"); if (patientAssessment.getAssessmentData() == null) throw new RuntimeException("Invalid patient assessment data"); if (patientAssessment.getAssessmentData().getGraphic() == null) throw new RuntimeException("Invalid patient assessment data graphic"); if (patientAssessment.getAssessmentData().getGraphic().getImages() == null) throw new RuntimeException("Invalid patient assessment data graphic image(s)"); if (patientAssessment.getAssessmentData().getGraphic().getImages() == null || patientAssessment.getAssessmentData().getGraphic().getImages().size() == 0) throw new RuntimeException("Invalid patient assessment data graphic image(s)"); form.getLocalContext().setPatientAssessment(patientAssessment); // form.getGlobalContext().Core.setPatientAssessmentFull(patientAssessment); form.getLocalContext().setPatientInfo(patInfo); configureDrawing(patientAssessment.getAssessmentData(), false); }
public void setPatientAssessment(Patient_AssessmentVo patientAssessment, Boolean displayAnsweredOnly, PatientAssessmentInfoVo patInfo) { clear(); if (patientAssessment == null) throw new RuntimeException("Invalid patient assessment"); if (patientAssessment.getAssessmentData() == null) throw new RuntimeException("Invalid patient assessment data"); if (patientAssessment.getAssessmentData().getGraphic() == null) throw new RuntimeException("Invalid patient assessment data graphic"); if (patientAssessment.getAssessmentData().getGraphic().getImages() == null) throw new RuntimeException("Invalid patient assessment data graphic image(s)"); if (patientAssessment.getAssessmentData().getGraphic().getImages() == null || patientAssessment.getAssessmentData().getGraphic().getImages().size() == 0) throw new RuntimeException("Invalid patient assessment data graphic image(s)"); // //form.getGlobalContext().Core.setPatientAssessmentFull(patientAssessment); form.getLocalContext().setPatient_Assessment(patientAssessment); // form.getGlobalContext().Core.setPatient_AssessmentFull(patientAssessment); form.getLocalContext().setPatientInfo(patInfo); configureDrawing(patientAssessment.getAssessmentData(), displayAnsweredOnly); }
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; }
/** * @param grid * @param yesImage * @param noImage * @param questionImage * @param additionalAnswerImage * @param buttonAddImage * @param buttonRemoveImage * @param mandatoryQuestionImage * @param isDPP * @param showSelect */ private void initialize(DynamicGrid grid, Image questionImage, Image additionalAnswerImage, Image buttonAddImage, Image buttonRemoveImage, Image mandatoryQuestionImage, boolean isDPP, boolean displayAnsweredOnly, boolean showConfirmation, boolean showSelect,PatientAssessmentInfoVo patInfo) { checkDataIntegrity(grid); this.grid = grid; this.questionImage = questionImage; this.additionalAnswerImage = additionalAnswerImage; this.buttonAddImage = buttonAddImage; this.buttonRemoveImage = buttonRemoveImage; this.mandatoryQuestionImage = mandatoryQuestionImage; this.isDPP = isDPP; this.displayAnsweredOnly = displayAnsweredOnly; this.showConfirmation = showConfirmation; this.showSelect = showSelect; this.patInfo = patInfo; }
private void displayBlankGraphicalAssessment() { GraphicAssessmentVo graphicalAssessment = form.getLocalContext().getGraphicalAssessment(); PatientAssessmentVo newAssessment = new PatientAssessmentVo(); PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo(); // engine.setCaption(graphicalAssessment.getName()); form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().setCaption(graphicalAssessment.getName()); assessmentData.setGraphic(graphicalAssessment); newAssessment.setAssessmentData(assessmentData); form.lyrMain().tabPageDetails().chkComplete().setValue(false); //WDEV-11366 form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().customGraphicalAssessment().setPatientAssessment(newAssessment,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().authGraphicalAssessment().setValue(null); form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().imbGraphicalContextInfo().setTooltip(""); form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().setauthGraphicalAssessmentCompletedVisible(false); }
private void displayBlankStructuralAssessment(UserAssessmentVo assessment) { UserAssessmentVo userAssessment = form.getLocalContext().getStructuralAssessment(); PatientAssessmentVo newAssessment = new PatientAssessmentVo(); PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo(); // engine.setCaption(userAssessment.getName()); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setCaption(userAssessment.getName()); assessmentData.setUserAssessment(userAssessment); assessmentData.setGroupQuestionWidth(userAssessment.getGroupQuestionWidth()); newAssessment.setAssessmentData(assessmentData); form.lyrMain().tabPageDetails().chkComplete().setValue(false); //WDEV-11366 form.lyrMain().tabPageDetails().lyrICP().tabAssessment().customStructuredAssessment().setPatientAssessment(newAssessment,false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessment().setValue(null); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().imbStructuralContextInfo().setTooltip(""); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setauthStructuredAssessmentCompletedVisible(false); }
private void displayBlankStructuralAssessment() { UserAssessmentVo userAssessment = form.getLocalContext().getStructuralAssessment(); PatientAssessmentVo newAssessment = new PatientAssessmentVo(); PatientAssessmentDataVo assessmentData = new PatientAssessmentDataVo(); // engine.setCaption(userAssessment.getName()); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setCaption(userAssessment.getName()); assessmentData.setUserAssessment(userAssessment); assessmentData.setGroupQuestionWidth(userAssessment.getGroupQuestionWidth()); newAssessment.setAssessmentData(assessmentData); form.lyrMain().tabPageDetails().chkComplete().setValue(false); //WDEV-11366 form.lyrMain().tabPageDetails().lyrICP().tabAssessment().customStructuredAssessment().setPatientAssessment(newAssessment,false,PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().authStructuredAssessment().setValue(null); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().imbStructuralContextInfo().setTooltip(""); form.lyrMain().tabPageDetails().lyrICP().tabAssessment().setauthStructuredAssessmentCompletedVisible(false); }
/** * Function used to populate Patient Assessment to screen */ protected void populateInstanceControlsFromData(PatientAssessmentVo patientAssessment) { // Clear instance controls clearInstanceControls(); // Test parameter if (patientAssessment == null || patientAssessment.getAssessmentData() == null) return; // Populate instance controls with data if (patientAssessment.getAssessmentData().getGraphic() != null) { form.ctnGraphical().ccGraphical().setPatientAssessment(patientAssessment, PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.getLocalContext().setEditingGraphicalAssessment(Boolean.TRUE); } else { form.ctnStructural().ccStructuralAssessment().setPatientAssessment(patientAssessment, true, PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); form.getLocalContext().setEditingGraphicalAssessment(Boolean.FALSE); } form.chkCompleted().setValue(PatientAssessmentStatusReason.COMPLETED.equals(patientAssessment.getStatus())); }
private void newPatientAssessmentInstance(UserAssessmentVo referralAssessment) throws PresentationLogicException { if(referralAssessment == null) return; // Create a new PatientAssessment PatientAssessmentVo patientAssessment = new PatientAssessmentVo(); patientAssessment.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); patientAssessment.setEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort()); patientAssessment.setPatient(form.getGlobalContext().Core.getPatientShort()); patientAssessment.setAssessmentData(new PatientAssessmentDataVo()); patientAssessment.getAssessmentData().setUserAssessment(referralAssessment); patientAssessment.getAssessmentData().setGroupQuestionWidth(referralAssessment.getGroupQuestionWidth()); patientAssessment.setStatus(PatientAssessmentStatusReason.NOTCOMMENCED); patientAssessment.setStatusReason(PatientAssessmentStatusReason.NOTCOMMENCED); form.lyrMain().tabPageReferralDetails().ccReferralAssessment().setPatientAssessment(patientAssessment, false, PatientAssessmentInfoVo.getInstance(form.getGlobalContext().Core.getPatientShort())); }