private SkinAssessmentReview getReviewRecord(SkinAssessmentFindings findingVo) { if(findingVo.getSkinAssessmentReviewIsNotNull()) { for(int i=0; i<findingVo.getSkinAssessmentReview().size(); i++) { if(findingVo.getSkinAssessmentReview().get(i).getID_SkinAssessmentReviewIsNotNull() && findingVo.getSkinAssessmentReview().get(i).getID_SkinAssessmentReview().intValue() == findingVo.getID_SkinAssessmentFindings().intValue()) return findingVo.getSkinAssessmentReview().get(i); } } return new SkinAssessmentReview(); }
protected void onBNewClick() throws ims.framework.exceptions.PresentationLogicException { form.getGlobalContext().COE.SkinBodyChart.setReviewDialog(new Boolean(true)); SkinAssessmentReview skinAssReviewVO = new SkinAssessmentReview(); MemberOfStaffShortVo memStaffShortVo = (MemberOfStaffShortVo)domain.getMosUser(); if(memStaffShortVo != null && memStaffShortVo.getHcp() != null) skinAssReviewVO.setHCPReview(memStaffShortVo.getHcp()); skinAssReviewVO.setDateTimeReview(new DateTime(new Date(), new Time())); form.getGlobalContext().COE.SkinBodyChart.setReviewVO(skinAssReviewVO); engine.open(form.getForms().Nursing.SkinReviewDialog); }
private ims.nursing.vo.SkinAssessmentReview getReviewVOfromFindingVO(SkinAssessmentFindings findingVO) { SkinAssessmentReview skinReviewVO = getReviewRecord(findingVO); if(skinReviewVO.getID_SkinAssessmentReview() == null) skinReviewVO.setID_SkinAssessmentReview(findingVO.getID_SkinAssessmentFindings()); //SkinAssessment assessment = form.comboBoxAssessment().getValue(); //DateTime - from skinAssessment //skinReviewVO.setDateTimeReview(assessment.getDateTimeInitiated()); //DateTime from a dummy SkinAssessmentReview if(findingVO.getSkinAssessmentReviewIsNotNull()) { if(findingVO.getSkinAssessmentReview().size() > 0) { skinReviewVO.setDateTimeReview(findingVO.getSkinAssessmentReview().get(0).getDateTimeReview()); } } //HCP - from skinAssessment //skinReviewVO.setHCPReview(assessment.getHcpInitiated()); skinReviewVO.setComment(findingVO.getComment()); skinReviewVO.setDepth(findingVO.getDepth()); skinReviewVO.setExudateAmount(findingVO.getExudateAmount()); skinReviewVO.setExudateType(findingVO.getExudateType()); skinReviewVO.setFrequencyOfChange(findingVO.getFrequencyOfChange()); skinReviewVO.setHowLongIsItPresent(findingVO.getHowLongIsItPresent()); skinReviewVO.setCleansedWith(findingVO.getCleansedWith()); skinReviewVO.setInfectionSuspected(findingVO.getInfectionSuspected()); skinReviewVO.setLength(findingVO.getLength()); skinReviewVO.setOdour(findingVO.getOdour()); skinReviewVO.setPain(findingVO.getPain()); skinReviewVO.setPressureSoreGrade(findingVO.getPressureSoreGrade()); skinReviewVO.setPrimaryDressing(findingVO.getPrimaryDressing()); skinReviewVO.setSecondaryDressing(findingVO.getSecondaryDressing()); skinReviewVO.setSiteDetails(findingVO.getSiteDetails()); skinReviewVO.setSurroundingSkin(findingVO.getSurroundingSkin()); skinReviewVO.setSwabTaken(findingVO.getSwabTaken()); skinReviewVO.setWidth(findingVO.getWidth()); skinReviewVO.setWoundBed(findingVO.getWoundBed()); skinReviewVO.setWoundTraced(findingVO.getWoundTraced()); return skinReviewVO; }