private HandTestVo populateDataFromScreem(HandTestVo voHandTest) { if(voHandTest.getClinicalContact()==null) voHandTest.setClinicalContact(form.getGlobalContext().Core.getCurrentClinicalContact()); if(voHandTest.getCareContext()==null) voHandTest.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); voHandTest.setAuthoringCP(form.qmbAuthoringHCP().getValue()); if(form.dtimAuthoring().getValue()==null || form.dtimAuthoring().getValue().getDate()==null){ engine.showErrors(new String[]{"Authoring Date/Time is mandatory."}); //wdev-13070 return null; } if(form.dtimAuthoring().getValue()==null || form.dtimAuthoring().getValue().getTime()==null){ engine.showErrors(new String[]{"Authoring Date/Time is mandatory."}); //wdev-13070 return null; } voHandTest.setAuthoringDateTime(form.dtimAuthoring().getValue()); voHandTest.setDominantHand(form.cmbDominantHand().getValue()); voHandTest.setLeftPinchStrength(form.intLeftPinch().getValue()); voHandTest.setLeftThumbIndexSpanExtension(form.decLeftThumb().getValue()); voHandTest.setRightPinchStrength(form.intRightPinch().getValue()); voHandTest.setRightThumbIndexSpanExtension(form.decRightThumb().getValue()); voHandTest.setLeftBulbDynamometer(form.intLeftBulb().getValue()); voHandTest.setRightBulbDynamometer(form.intRightBulb().getValue()); GenForm.grdGripRow rowGrip; HandJaymarVoCollection collHandJaymar = new HandJaymarVoCollection(); for(int i=0; i<form.grdGrip().getRows().size(); i++){ rowGrip = form.grdGrip().getRows().get(i); HandJaymarFindingsVoCollection collHandJaymarFindings = new HandJaymarFindingsVoCollection(); HandJaymarFindingsVo voHandJaymarRight = new HandJaymarFindingsVo(); HandJaymarVo voHandJaymar = new HandJaymarVo(); voHandJaymar.setJaymarLevel(rowGrip.getcolTree()); voHandJaymarRight.setLaterality(LateralityLRonly.RIGHT); voHandJaymarRight.setTest1(rowGrip.getColTest1Right()); voHandJaymarRight.setTest2(rowGrip.getColTest2Right()); voHandJaymarRight.setTest3(rowGrip.getColTest3Right()); voHandJaymarRight.setLevelAverage(getAverage(rowGrip.getColTest1Right(), rowGrip.getColTest2Right(), rowGrip.getColTest3Right())); collHandJaymarFindings.add(voHandJaymarRight); HandJaymarFindingsVo voHandJaymarLeft = new HandJaymarFindingsVo(); voHandJaymarLeft.setLaterality(LateralityLRonly.LEFT); voHandJaymarLeft.setTest1(rowGrip.getColTest1Left()); voHandJaymarLeft.setTest2(rowGrip.getColTest2Left()); voHandJaymarLeft.setTest3(rowGrip.getColTest3Left()); voHandJaymarLeft.setLevelAverage(getAverage(rowGrip.getColTest1Left(), rowGrip.getColTest2Left(), rowGrip.getColTest3Left())); collHandJaymarFindings.add(voHandJaymarLeft); voHandJaymar.setJaymarFinding(collHandJaymarFindings); collHandJaymar.add(voHandJaymar); } voHandTest.setGripStrength(collHandJaymar); return voHandTest; }