private PainAssessmentReview getReviewVOfromFindingVO(PainAssessmentFindings pafVO) { PainAssessmentReview painAssVo = getReviewRecord(pafVO); if(painAssVo.getID_PainAssessmentReview() == null) painAssVo.setID_PainAssessmentReview(pafVO.getID_PainAssessmentFindings()); painAssVo.setDepth(pafVO.getDepth()); painAssVo.setOnset(pafVO.getOnset()); painAssVo.setProgression(pafVO.getProgression()); painAssVo.setRecordingDateTime(new DateTime(form.dteRecording().getValue(), form.timRecording().getValue())); painAssVo.setAssessmentDateTime(new DateTime(form.dteAssessment().getValue(), form.timAssessment().getValue())); MemberOfStaffShortVo memStaffShortVo = (MemberOfStaffShortVo)domain.getMosUser(); if(memStaffShortVo != null && memStaffShortVo.getHcp() != null) painAssVo.setRecordingHCP(memStaffShortVo.getHcp()); painAssVo.setSeverity(pafVO.getSeverity()); painAssVo.setSiteDetails(pafVO.getSiteDetails()); painAssVo.setType(pafVO.getType()); return painAssVo; }
protected void onBNewClick() throws ims.framework.exceptions.PresentationLogicException { //------- Add a new review VO and set it in the Context to be used in the dialog PainAssessmentReview reviewVO = new PainAssessmentReview(); MemberOfStaffShortVo memStaffShortVo = (MemberOfStaffShortVo)domain.getMosUser(); if(memStaffShortVo != null && memStaffShortVo.getHcp() != null) reviewVO.setRecordingHCP(memStaffShortVo.getHcp()); form.getGlobalContext().COE.PainBodyChart.setPainAssReviewVO(reviewVO); //------------------------------------------------------------------------------ //set the to be used in the Review dialog form.getGlobalContext().COE.PainBodyChart.setReviewPage(new Boolean(true)); //Open the dialog engine.open(form.getForms().Nursing.PainReviewDialog); }
private void populateReviewData() { PainAssessmentFindings painAssFindingVO = form.getGlobalContext().COE.PainBodyChart.getAssessmentFinding(); PainAssessmentReview painAssReviewVO = form.getGlobalContext().COE.PainBodyChart.getPainAssReviewVO(); if(painAssFindingVO != null && painAssReviewVO != null) { populateControlsFromVO(painAssFindingVO, painAssReviewVO); } }
private PainAssessmentReview getReviewRecord(PainAssessmentFindings findingVo) { if(findingVo.getPainAssessmentReviewIsNotNull()) { for(int i=0; i<findingVo.getPainAssessmentReview().size(); i++) { if(findingVo.getPainAssessmentReview().get(i).getID_PainAssessmentReviewIsNotNull() && findingVo.getPainAssessmentReview().get(i).getID_PainAssessmentReview().intValue() == findingVo.getID_PainAssessmentFindings().intValue()) return findingVo.getPainAssessmentReview().get(i); } } return new PainAssessmentReview(); }
private boolean getPainDetails(PainAssessmentFindings painDetailsVO, PainAssessmentReview painReviewDetailsVO) { if(painDetailsVO == null) return false; if(painReviewDetailsVO == null) { if(!checkAssessmentDate()) return false; PainAssessment painAssVO = form.getGlobalContext().COE.PainBodyChart.getPainAssessmentVO(); if(painAssVO != null) painAssVO.setAssessmentDateTime(new DateTime(form.dteAssessmentDate().getValue(), form.timAssessmentTime().getValue())); form.getGlobalContext().COE.PainBodyChart.setPainAssessmentVO(painAssVO); painDetailsVO.setSiteDetails(form.txtBoxSiteDetails().getValue()); painDetailsVO.setType(form.cmbType().getValue()); painDetailsVO.setSeverity(form.getLocalContext().getSeverity()); painDetailsVO.setOnset(form.cmbOnset().getValue()); painDetailsVO.setProgression(form.cmbProgression().getValue()); painDetailsVO.setDepth(form.cmbDepth().getValue()); painDetailsVO.setIsDiscontinuedAssess(new Boolean(form.chkDiscontinueAssessment().getValue())); //Set the Findings value back to the context form.getGlobalContext().COE.PainBodyChart.setAssessmentFinding(painDetailsVO); } else { if(!checkAssessmentDate()) return false; painReviewDetailsVO.setRecordingDateTime(new DateTime(form.dteRecordingDate().getValue(), form.timRecordingTime().getValue())); painReviewDetailsVO.setAssessmentDateTime(new DateTime(form.dteAssessmentDate().getValue(), form.timAssessmentTime().getValue())); painReviewDetailsVO.setSiteDetails(form.txtBoxSiteDetails().getValue()); painReviewDetailsVO.setType(form.cmbType().getValue()); painReviewDetailsVO.setSeverity(form.getLocalContext().getSeverity()); painReviewDetailsVO.setOnset(form.cmbOnset().getValue()); painReviewDetailsVO.setProgression(form.cmbProgression().getValue()); painReviewDetailsVO.setDepth(form.cmbDepth().getValue()); MemberOfStaffShortVo memStaffShortVo = (MemberOfStaffShortVo)domain.getMosUser(); if(memStaffShortVo != null && memStaffShortVo.getHcp() != null) painReviewDetailsVO.setRecordingHCP(memStaffShortVo.getHcp()); painDetailsVO.setIsDiscontinuedAssess(new Boolean(form.chkDiscontinueAssessment().getValue())); //Set the Findings value back to the context form.getGlobalContext().COE.PainBodyChart.setAssessmentFinding(painDetailsVO); //Set the Review value back to the context form.getGlobalContext().COE.PainBodyChart.setPainAssReviewVO(painReviewDetailsVO); } return true; }