private LookupTypeVo getLookupType(OBSType type) { if(type == null) throw new CodingRuntimeException("type is null in method getLookupType"); if(type.equals(OBSType.PATIENT_CONCERN)) return new LookupTypeVo(PatientCausingConcern.TYPE_ID); if(type.equals(OBSType.URINE_OUTPUT)) return new LookupTypeVo(UrineOutput.TYPE_ID); if(type.equals(OBSType.CONSCIOUS_LEVEL)) return new LookupTypeVo(ConsciousLevel.TYPE_ID); if(type.equals(OBSType.ONSUPPLEMENTALOXYGEN)) return new LookupTypeVo(YesNo.TYPE_ID); return null; }
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; }