Commit 300eb6752344a68e52782f2dc5e3397dfee3ee9a

Authored by liquanyu
1 parent 5f25489733

update

Showing 1 changed file with 63 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java View file @ 300eb67
... ... @@ -678,9 +678,8 @@
678 678 titles.add("尿常规检查");
679 679  
680 680 titles.add("血常规、血型");
681   - titles.add("血常规、血型(住院)");
682 681 titles.add("血常规5分类");
683   - titles.add("血常规五分类(住院)");
  682 + titles.add("小儿血常规5分类");
684 683 }
685 684  
686 685 query.setTitles(titles);
... ... @@ -758,7 +757,68 @@
758 757 }
759 758 else if ("204".equals(hospitalId))
760 759 {
761   - //TODO
  760 + if ("尿常规30".equals(model.getTitle()) || "尿常规检查".equals(model.getTitle()))
  761 + {
  762 + Map<String,String> map1 = new HashMap<>();
  763 + map1.put("ndb",""); //尿蛋白
  764 + map1.put("nt",""); //尿糖
  765 + map1.put("ntt",""); //尿酮体
  766 + map1.put("nqx",""); //尿潜血
  767 + String itemJson = model.getItemJson();
  768 + List<LisReportItemModel> items = JsonUtil.toList(itemJson,LisReportItemModel.class);
  769 + if (CollectionUtils.isNotEmpty(items))
  770 + {
  771 + for(LisReportItemModel item : items)
  772 + {
  773 + if ("尿蛋白".equals(item.getName()))
  774 + {
  775 + map1.put("ndb",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult());
  776 + }
  777 + else if ("葡萄糖".equals(item.getName()))
  778 + {
  779 + map1.put("nt",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult());
  780 + }
  781 + else if ("酮体".equals(item.getName()))
  782 + {
  783 + map1.put("ntt",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult());
  784 + }
  785 + else if ("潜血".equals(item.getName()))
  786 + {
  787 + map1.put("nqx",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult());
  788 + }
  789 + }
  790 + }
  791 + map.put("ncg",map1);
  792 + }
  793 + else if ("血常规、血型".equals(model.getTitle()) || "血常规5分类".equals(model.getTitle()) || "小儿血常规5分类".equals(model.getTitle()))
  794 + {
  795 +
  796 + Map<String,String> map1 = new HashMap<>();
  797 + map1.put("xhdb",""); //血红蛋白
  798 + map1.put("bxbjs","");//白细胞计数
  799 + map1.put("xxbjs",""); //血小板计数
  800 + String itemJson = model.getItemJson();
  801 + List<LisReportItemModel> items = JsonUtil.toList(itemJson,LisReportItemModel.class);
  802 + if (CollectionUtils.isNotEmpty(items))
  803 + {
  804 + for(LisReportItemModel item : items)
  805 + {
  806 + if ("血红蛋白".equals(item.getName()))
  807 + {
  808 + map1.put("xhdb",item.getNumberResult());
  809 + }
  810 + else if ("白细胞".equals(item.getName()))
  811 + {
  812 + map1.put("bxbjs",item.getNumberResult());
  813 + }
  814 + else if ("血小板计数".equals(item.getName()) || "血小板".equals(item.getName()))
  815 + {
  816 + map1.put("xxbjs",item.getNumberResult());
  817 + }
  818 + }
  819 + }
  820 + map.put("xcg",map1);
  821 + }
762 822 }
763 823  
764 824 }