private LookupTypeVo getLookupType(SECSTypes type) { if(type == null) throw new CodingRuntimeException("type is null in method getLookupType"); if(type.equals(SECSTypes.PATIENT_CONCERN)) return new LookupTypeVo(PatientCausingConcern.TYPE_ID); if(type.equals(SECSTypes.URINE_OUTPUT)) return new LookupTypeVo(UrineOutput.TYPE_ID); if(type.equals(SECSTypes.CONSCIOUS_LEVEL)) return new LookupTypeVo(ConsciousLevel.TYPE_ID); return null; }
/** * if a record exists then retrieve it for type else create new * @param voCollSecsConfig * @param type * @return */ private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, SECSTypes type) { for(int i=0; i<voCollSecsConfig.size(); i++) { if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type)) return voCollSecsConfig.get(i); } return new SECSConfigurationVo(); }
private void addRangeRow() { DynamicGridRow row = form.lyrDetail().tabRange().dyngrdRangeScore().getRows().newRow(); DynamicCellType cellRangeType = DynamicCellType.INT; if(form.cmbParameter().getValue().equals(SECSTypes.TEMPERATURE)) cellRangeType = DynamicCellType.DECIMAL; row.getCells().newCell(getRangeColumn(DYN_COLGREATERTHAN), cellRangeType); row.getCells().newCell(getRangeColumn(DYN_COLLESSTHAN), cellRangeType); row.getCells().newCell(getRangeColumn(DYN_COLSCORE), DynamicCellType.INT); row.getCells().newCell(getRangeColumn(DYN_COLWARNING), DynamicCellType.WRAPTEXT).setStringMaxLength(255); }
private boolean isRange(SECSTypes value) { return value != null && (value.equals(SECSTypes.PULSE) || value.equals(SECSTypes.RESPIRATORYRATE) || value.equals(SECSTypes.SYSTOLICBP) || value.equals(SECSTypes.TEMPERATURE) || value.equals(SECSTypes.OXYGENSATS));// WDEV-12769 }
private boolean isScore(SECSTypes value) { return value != null && (value.equals(SECSTypes.PATIENT_CONCERN) || value.equals(SECSTypes.URINE_OUTPUT) || value.equals(SECSTypes.CONSCIOUS_LEVEL)); }
private boolean isRange(SECSTypes value) { return value != null && (value.equals(SECSTypes.PULSE) || value.equals(SECSTypes.RESPIRATORYRATE) || value.equals(SECSTypes.SYSTOLICBP) || value.equals(SECSTypes.TEMPERATURE)); }