Commit d55924591cba3808252c8e2610700c795420e3bd
1 parent
b304fc1e1f
Exists in
master
and in
6 other branches
高危等级查询
Showing 1 changed file with 78 additions and 41 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ViewFacade.java
View file @
d559245
| ... | ... | @@ -4950,9 +4950,10 @@ |
| 4950 | 4950 | //处理高危因素 |
| 4951 | 4951 | getRisk(an.getHighrisk(), an.getOtherHighRisk(), map); |
| 4952 | 4952 | |
| 4953 | - Element scoreElement = checkElement.addElement("score"); | |
| 4954 | - scoreElement.addText(String.valueOf(map.get("score"))); | |
| 4953 | + //完善筛查结果 | |
| 4954 | + getscreenResult(an.getScreenResult(), map); | |
| 4955 | 4955 | |
| 4956 | + handleEle(map, checkElement, patients, an.getResultSupple(), an.getHighriskDesc()); | |
| 4956 | 4957 | |
| 4957 | 4958 | List riskList = (List)map.get("highRisk"); |
| 4958 | 4959 | if (CollectionUtils.isNotEmpty(riskList)) |
| 4959 | 4960 | |
| ... | ... | @@ -5046,46 +5047,10 @@ |
| 5046 | 5047 | //处理高危因素 |
| 5047 | 5048 | getRisk(ae.getRiskFactor(), ae.getOtherRisk(), map); |
| 5048 | 5049 | |
| 5049 | - Element scoreElement = checkElement.addElement("score"); | |
| 5050 | - scoreElement.addText(String.valueOf(map.get("score"))); | |
| 5050 | + //完善筛查结果 | |
| 5051 | + getscreenResult(ae.getScreenResult(), map); | |
| 5052 | + handleEle( map, checkElement, patients, ae.getResultSupple(), ae.getHighriskDesc()); | |
| 5051 | 5053 | |
| 5052 | - List riskList = (List)map.get("highRisk"); | |
| 5053 | - if (CollectionUtils.isNotEmpty(riskList)) | |
| 5054 | - { | |
| 5055 | - for (int i = 0 ;i < riskList.size() ; i++) | |
| 5056 | - { | |
| 5057 | - Map<String, String> rmap = (Map<String, String>) riskList.get(i); | |
| 5058 | - String color = rmap.get("color"); | |
| 5059 | - if ("risk_green".equals(color)) | |
| 5060 | - { | |
| 5061 | - color = "绿色"; | |
| 5062 | - } | |
| 5063 | - else if ("risk_orange".equals(color)) | |
| 5064 | - { | |
| 5065 | - color = "橙色"; | |
| 5066 | - } | |
| 5067 | - else if ("risk_yellow".equals(color)) | |
| 5068 | - { | |
| 5069 | - color = "黄色"; | |
| 5070 | - } | |
| 5071 | - else if ("risk_red".equals(color)) | |
| 5072 | - { | |
| 5073 | - color = "红色"; | |
| 5074 | - } | |
| 5075 | - else if ("risk_purple".equals(color)) | |
| 5076 | - { | |
| 5077 | - color = "紫色"; | |
| 5078 | - } | |
| 5079 | - Element riskFactorElement = checkElement.addElement("riskFactor"); | |
| 5080 | - | |
| 5081 | - String name = rmap.get("name"); | |
| 5082 | - Element nElement = riskFactorElement.addElement("riskName"); | |
| 5083 | - nElement.addText(name); | |
| 5084 | - | |
| 5085 | - Element colorElement = riskFactorElement.addElement("color"); | |
| 5086 | - colorElement.addText(color); | |
| 5087 | - } | |
| 5088 | - } | |
| 5089 | 5054 | } |
| 5090 | 5055 | } |
| 5091 | 5056 | } |
| ... | ... | @@ -5094,6 +5059,78 @@ |
| 5094 | 5059 | return document.asXML(); |
| 5095 | 5060 | } |
| 5096 | 5061 | |
| 5062 | + } | |
| 5063 | + | |
| 5064 | + | |
| 5065 | + private void handleEle(Map map,Element checkElement,Patients patients,String resultSupple,String highriskDesc) | |
| 5066 | + { | |
| 5067 | + | |
| 5068 | + Element scoreElement = checkElement.addElement("score"); | |
| 5069 | + scoreElement.addText(String.valueOf(map.get("score"))); | |
| 5070 | + | |
| 5071 | + List screens = (List)map.get("screenResult"); | |
| 5072 | + Element screenlement = checkElement.addElement("screen"); | |
| 5073 | + if (CollectionUtils.isNotEmpty(screens)) | |
| 5074 | + { | |
| 5075 | + | |
| 5076 | + for (int i = 0 ;i < screens.size() ; i++) { | |
| 5077 | + Map<String, String> rmap = (Map<String, String>) screens.get(i); | |
| 5078 | + String screenName = rmap.get("name"); | |
| 5079 | + Element nElement = screenlement.addElement("screenName"); | |
| 5080 | + nElement.addText(screenName); | |
| 5081 | + } | |
| 5082 | + } | |
| 5083 | + | |
| 5084 | + Element resultSuppleElement = checkElement.addElement("resultSupple"); | |
| 5085 | + resultSuppleElement.addText(resultSupple == null ? "" : resultSupple); | |
| 5086 | + | |
| 5087 | + | |
| 5088 | + Element highriskDescElement = checkElement.addElement("highriskDesc"); | |
| 5089 | + highriskDescElement.addText(highriskDesc); | |
| 5090 | + | |
| 5091 | + | |
| 5092 | + Element sieveStatuslement = checkElement.addElement("sieveStatus"); | |
| 5093 | + String siveStatus = sieveFacade.getSieveStatus(patients.getId(), patients.getHospitalId()); | |
| 5094 | + sieveStatuslement.addText(siveStatus == null ? "" : siveStatus); | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + List riskList = (List)map.get("highRisk"); | |
| 5098 | + if (CollectionUtils.isNotEmpty(riskList)) | |
| 5099 | + { | |
| 5100 | + for (int i = 0 ;i < riskList.size() ; i++) | |
| 5101 | + { | |
| 5102 | + Map<String, String> rmap = (Map<String, String>) riskList.get(i); | |
| 5103 | + String color = rmap.get("color"); | |
| 5104 | + if ("risk_green".equals(color)) | |
| 5105 | + { | |
| 5106 | + color = "绿色"; | |
| 5107 | + } | |
| 5108 | + else if ("risk_orange".equals(color)) | |
| 5109 | + { | |
| 5110 | + color = "橙色"; | |
| 5111 | + } | |
| 5112 | + else if ("risk_yellow".equals(color)) | |
| 5113 | + { | |
| 5114 | + color = "黄色"; | |
| 5115 | + } | |
| 5116 | + else if ("risk_red".equals(color)) | |
| 5117 | + { | |
| 5118 | + color = "红色"; | |
| 5119 | + } | |
| 5120 | + else if ("risk_purple".equals(color)) | |
| 5121 | + { | |
| 5122 | + color = "紫色"; | |
| 5123 | + } | |
| 5124 | + Element riskFactorElement = checkElement.addElement("riskFactor"); | |
| 5125 | + | |
| 5126 | + String name = rmap.get("name"); | |
| 5127 | + Element nElement = riskFactorElement.addElement("riskName"); | |
| 5128 | + nElement.addText(name); | |
| 5129 | + | |
| 5130 | + Element colorElement = riskFactorElement.addElement("color"); | |
| 5131 | + colorElement.addText(color); | |
| 5132 | + } | |
| 5133 | + } | |
| 5097 | 5134 | } |
| 5098 | 5135 | } |