Commit 8afaa0dac0148b6a9765a71e36e976abfe29f7ab

Authored by shiyang
1 parent a87392767b

隆化:儿童眼保健异常结果列

Showing 1 changed file with 25 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LhBabyEyeCheckFacade.java View file @ 8afaa0d
... ... @@ -278,6 +278,7 @@
278 278 map.put("eyeCheckDoctor",couponMapper.getUserName(babyCheck.getEyeCheckDoctor()));
279 279 //异常项
280 280 map.put("abnormal",getAbnormal(babyCheck));
  281 + map.put("abnormalInfo", getAbnormalInfo(babyCheck));
281 282 result.add(map);
282 283 }
283 284 BaseObjectResponse br = new BaseObjectResponse();
284 285  
... ... @@ -327,10 +328,11 @@
327 328 map.put("lhEyeCheckTime", DateUtil.getYyyyMmDd(babyModel.getLhEyeCheckTime()));//检查日期
328 329 map.put("lhNextEyeCheckTime", DateUtil.getYyyyMmDd(babyModel.getLhNextEyeCheckTime()));//预约日期
329 330 map.put("lhEyeCheckMonthAge", babyModel.getLhEyeCheckMonthAge());//检查月龄
330   - //异常项
  331 + //异常项、异常结果
331 332 LhBabyEyeCheck lhBabyEyeCheck = lhBabyEyeCheckService.queryById(babyModel.getLhEyeCheckId());
332 333 if(null!=lhBabyEyeCheck){
333 334 map.put("abnormal", getAbnormal(lhBabyEyeCheck));
  335 + map.put("abnormalInfo", getAbnormalInfo(lhBabyEyeCheck));
334 336 }
335 337 result.add(map);
336 338 }
... ... @@ -404,6 +406,28 @@
404 406 }
405 407  
406 408 return abnormal;
  409 + }
  410 +
  411 + /**
  412 + * 异常结果
  413 + * @param babyCheck
  414 + * @return
  415 + */
  416 + public String getAbnormalInfo(LhBabyEyeCheck babyCheck){
  417 + String abnormalInfo="";
  418 + if(("48".equals(babyCheck.getCheckMonthId()) && null!=babyCheck.getLhsljcstRight() && 0.6 > babyCheck.getLhsljcstRight()) ||
  419 + (Arrays.asList("60","72").contains(babyCheck.getCheckMonthId()) && null!=babyCheck.getLhsljcstRight() && 0.8 > babyCheck.getLhsljcstRight())){
  420 + abnormalInfo+="视力检查(右):"+babyCheck.getLhsljcstRight()+";";
  421 + }
  422 + if(("48".equals(babyCheck.getCheckMonthId()) && null!=babyCheck.getLhsljcstLeft() && 0.6 > babyCheck.getLhsljcstLeft()) ||
  423 + (Arrays.asList("60","72").contains(babyCheck.getCheckMonthId()) && null!=babyCheck.getLhsljcstLeft() && 0.8 > babyCheck.getLhsljcstLeft())){
  424 + abnormalInfo+="视力检查(左):"+babyCheck.getLhsljcstLeft()+";";
  425 + }
  426 + if(dioptricAnomaly(babyCheck)){
  427 + abnormalInfo+="屈光筛查值异常;";
  428 + }
  429 +
  430 + return abnormalInfo;
407 431 }
408 432  
409 433 /**