Commit 5f254897332c83026d10a4df5752e150d73b9182
1 parent
7e094e1290
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 79 additions and 56 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java
View file @
5f25489
| ... | ... | @@ -663,9 +663,26 @@ |
| 663 | 663 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
| 664 | 664 | LisReportQuery query = new LisReportQuery(); |
| 665 | 665 | List<String> titles = new ArrayList<>(); |
| 666 | - titles.add("尿常规"); | |
| 667 | - titles.add("[丙]血常规(24项)"); | |
| 668 | - titles.add("血常规(24项)"); | |
| 666 | + | |
| 667 | + //秦皇岛 | |
| 668 | + if ("216".equals(hospitalId)) | |
| 669 | + { | |
| 670 | + titles.add("尿常规"); | |
| 671 | + titles.add("[丙]血常规(24项)"); | |
| 672 | + titles.add("血常规(24项)"); | |
| 673 | + } | |
| 674 | + //青龙满族自治县医院 | |
| 675 | + else if ("204".equals(hospitalId)) | |
| 676 | + { | |
| 677 | + titles.add("尿常规30"); | |
| 678 | + titles.add("尿常规检查"); | |
| 679 | + | |
| 680 | + titles.add("血常规、血型"); | |
| 681 | + titles.add("血常规、血型(住院)"); | |
| 682 | + titles.add("血常规5分类"); | |
| 683 | + titles.add("血常规五分类(住院)"); | |
| 684 | + } | |
| 685 | + | |
| 669 | 686 | query.setTitles(titles); |
| 670 | 687 | query.setHospitalId(hospitalId); |
| 671 | 688 | query.setCheckTime(DateUtil.parseYMD(checkTime)); |
| 672 | 689 | |
| 673 | 690 | |
| 674 | 691 | |
| 675 | 692 | |
| 676 | 693 | |
| 677 | 694 | |
| 678 | 695 | |
| 679 | 696 | |
| 680 | 697 | |
| 681 | 698 | |
| ... | ... | @@ -675,69 +692,75 @@ |
| 675 | 692 | { |
| 676 | 693 | for(LisReportModel model : lises) |
| 677 | 694 | { |
| 678 | - if ("尿常规".equals(model.getTitle())) | |
| 695 | + if ("216".equals(hospitalId)) | |
| 679 | 696 | { |
| 680 | - Map<String,String> map1 = new HashMap<>(); | |
| 681 | - map1.put("ndb",""); //尿蛋白 | |
| 682 | - map1.put("nt",""); //尿糖 | |
| 683 | - map1.put("ntt",""); //尿酮体 | |
| 684 | - map1.put("nqx",""); //尿潜血 | |
| 685 | - String itemJson = model.getItemJson(); | |
| 686 | - List<LisReportItemModel> items = JsonUtil.toList(itemJson,LisReportItemModel.class); | |
| 687 | - if (CollectionUtils.isNotEmpty(items)) | |
| 688 | - { | |
| 689 | - for(LisReportItemModel item : items) | |
| 690 | - { | |
| 691 | - if ("尿蛋白".equals(item.getName())) | |
| 692 | - { | |
| 693 | - map1.put("ndb",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 694 | - } | |
| 695 | - else if ("尿糖".equals(item.getName()) || "尿葡萄糖".equals(item.getName())) | |
| 696 | - { | |
| 697 | - map1.put("nt",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 698 | - } | |
| 699 | - else if ("尿酮体".equals(item.getName())) | |
| 700 | - { | |
| 701 | - map1.put("ntt",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 702 | - } | |
| 703 | - else if ("尿潜血".equals(item.getName()) || "尿隐血".equals(item.getName())) | |
| 704 | - { | |
| 705 | - map1.put("nqx",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 706 | - } | |
| 707 | - } | |
| 708 | - } | |
| 709 | - | |
| 710 | - map.put("ncg",map1); | |
| 711 | - } | |
| 712 | - else if ("[丙]血常规(24项)".equals(model.getTitle()) || "血常规(24项)".equals(model.getTitle())) | |
| 713 | - { | |
| 714 | - Map<String,String> map1 = new HashMap<>(); | |
| 715 | - map1.put("xhdb",""); //血红蛋白 | |
| 716 | - map1.put("bxbjs","");//白细胞计数 | |
| 717 | - map1.put("xxbjs",""); //血小板计数 | |
| 718 | - String itemJson = model.getItemJson(); | |
| 719 | - List<LisReportItemModel> items = JsonUtil.toList(itemJson,LisReportItemModel.class); | |
| 720 | - if (CollectionUtils.isNotEmpty(items)) | |
| 697 | + if ("尿常规".equals(model.getTitle())) | |
| 721 | 698 | { |
| 722 | - for(LisReportItemModel item : items) | |
| 699 | + Map<String,String> map1 = new HashMap<>(); | |
| 700 | + map1.put("ndb",""); //尿蛋白 | |
| 701 | + map1.put("nt",""); //尿糖 | |
| 702 | + map1.put("ntt",""); //尿酮体 | |
| 703 | + map1.put("nqx",""); //尿潜血 | |
| 704 | + String itemJson = model.getItemJson(); | |
| 705 | + List<LisReportItemModel> items = JsonUtil.toList(itemJson,LisReportItemModel.class); | |
| 706 | + if (CollectionUtils.isNotEmpty(items)) | |
| 723 | 707 | { |
| 724 | - if ("血红蛋白".equals(item.getName())) | |
| 708 | + for(LisReportItemModel item : items) | |
| 725 | 709 | { |
| 726 | - map1.put("xhdb",item.getNumberResult()); | |
| 710 | + if ("尿蛋白".equals(item.getName())) | |
| 711 | + { | |
| 712 | + map1.put("ndb",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 713 | + } | |
| 714 | + else if ("尿糖".equals(item.getName()) || "尿葡萄糖".equals(item.getName())) | |
| 715 | + { | |
| 716 | + map1.put("nt",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 717 | + } | |
| 718 | + else if ("尿酮体".equals(item.getName())) | |
| 719 | + { | |
| 720 | + map1.put("ntt",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 721 | + } | |
| 722 | + else if ("尿潜血".equals(item.getName()) || "尿隐血".equals(item.getName())) | |
| 723 | + { | |
| 724 | + map1.put("nqx",item.getCharResult() == null ? item.getNumberResult() : item.getCharResult()); | |
| 725 | + } | |
| 727 | 726 | } |
| 728 | - else if ("白细胞计数".equals(item.getName())) | |
| 727 | + } | |
| 728 | + map.put("ncg",map1); | |
| 729 | + } | |
| 730 | + else if ("[丙]血常规(24项)".equals(model.getTitle()) || "血常规(24项)".equals(model.getTitle())) | |
| 731 | + { | |
| 732 | + Map<String,String> map1 = new HashMap<>(); | |
| 733 | + map1.put("xhdb",""); //血红蛋白 | |
| 734 | + map1.put("bxbjs","");//白细胞计数 | |
| 735 | + map1.put("xxbjs",""); //血小板计数 | |
| 736 | + String itemJson = model.getItemJson(); | |
| 737 | + List<LisReportItemModel> items = JsonUtil.toList(itemJson,LisReportItemModel.class); | |
| 738 | + if (CollectionUtils.isNotEmpty(items)) | |
| 739 | + { | |
| 740 | + for(LisReportItemModel item : items) | |
| 729 | 741 | { |
| 730 | - map1.put("bxbjs",item.getNumberResult()); | |
| 742 | + if ("血红蛋白".equals(item.getName())) | |
| 743 | + { | |
| 744 | + map1.put("xhdb",item.getNumberResult()); | |
| 745 | + } | |
| 746 | + else if ("白细胞计数".equals(item.getName())) | |
| 747 | + { | |
| 748 | + map1.put("bxbjs",item.getNumberResult()); | |
| 749 | + } | |
| 750 | + else if ("血小板计数".equals(item.getName()) || "血小板".equals(item.getName())) | |
| 751 | + { | |
| 752 | + map1.put("xxbjs",item.getNumberResult()); | |
| 753 | + } | |
| 731 | 754 | } |
| 732 | - else if ("血小板计数".equals(item.getName()) || "血小板".equals(item.getName())) | |
| 733 | - { | |
| 734 | - map1.put("xxbjs",item.getNumberResult()); | |
| 735 | - } | |
| 736 | 755 | } |
| 756 | + map.put("xcg",map1); | |
| 737 | 757 | } |
| 738 | - | |
| 739 | - map.put("xcg",map1); | |
| 740 | 758 | } |
| 759 | + else if ("204".equals(hospitalId)) | |
| 760 | + { | |
| 761 | + //TODO | |
| 762 | + } | |
| 763 | + | |
| 741 | 764 | } |
| 742 | 765 | } |
| 743 | 766 |