Commit 8323fe26bba702e5b3775e78653b26b2bcb953f9
1 parent
dc87eafc2d
Exists in
master
and in
6 other branches
异常体温修改
Showing 1 changed file with 27 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/RemoteFacade.java
View file @
8323fe2
| ... | ... | @@ -134,10 +134,11 @@ |
| 134 | 134 | Patients patients = null; |
| 135 | 135 | for (Map.Entry<String, Double> entry : tempList.entrySet()) { |
| 136 | 136 | if(DateUtil.parseYMD(entry.getKey()).getTime() >= yesterday.getTime()) { |
| 137 | - if(entry.getValue() < 36D || entry.getValue() > 38.5D ) { | |
| 137 | + if(entry.getValue() <= 36D || entry.getValue() >= 38.5D ) { | |
| 138 | 138 | patients = (patients == null ? mongoTemplate.findById(tempModel.getParentId(), Patients.class) : patients); |
| 139 | 139 | if(patients == null) continue; |
| 140 | - setTempInfo(tempModel.getId() + ID_SEPARATOR + entry.getKey() + ID_SEPARATOR + tempModel.getModified().getTime(), temp, patients, entry.getValue() + "", entry.getValue() < 36D ? "低热" : "高热", | |
| 140 | +// setTempInfo(tempModel.getId() + ID_SEPARATOR + entry.getKey() + ID_SEPARATOR + tempModel.getModified().getTime(), temp, patients, entry.getValue() + "", entry.getValue() < 36D ? "低热" : "高热", | |
| 141 | + setTempInfo(tempModel.getId() + ID_SEPARATOR + entry.getKey() + ID_SEPARATOR + tempModel.getModified().getTime(), temp, patients, entry.getValue() + "", getTempDesc(entry.getValue()), | |
| 141 | 142 | "(36-37.4)", ErrorPatientEnums.TEMP, tempModel.getModified()); |
| 142 | 143 | } |
| 143 | 144 | } |
| ... | ... | @@ -147,6 +148,30 @@ |
| 147 | 148 | } |
| 148 | 149 | } |
| 149 | 150 | return restList; |
| 151 | + } | |
| 152 | + | |
| 153 | + /** | |
| 154 | + * 低热:37.5~37.9℃; | |
| 155 | + 中等度热:38.0~38.9℃; | |
| 156 | + 高热:39.0~40.9℃; | |
| 157 | + 超高热:41.0℃以上; | |
| 158 | + 低于36°C 体温过低" | |
| 159 | + */ | |
| 160 | + private String getTempDesc(Double d) { | |
| 161 | + if(d != null) { | |
| 162 | + if(d >= 41D) { | |
| 163 | + return "超高热"; | |
| 164 | + } else if(d >= 39D && d <= 40.9D) { | |
| 165 | + return "高热"; | |
| 166 | + } else if(d >= 38D && d <= 38.9D) { | |
| 167 | + return "高热"; | |
| 168 | + } else if(d >= 37.5D && d <= 37.9D) { | |
| 169 | + return "低热"; | |
| 170 | + } else if(d <= 36D) { | |
| 171 | + return "体温过低"; | |
| 172 | + } | |
| 173 | + } | |
| 174 | + return ""; | |
| 150 | 175 | } |
| 151 | 176 | |
| 152 | 177 | private void setTempInfo(String id, Map<String, Object> temp, Patients patients, String value, String desc, String ckz, ErrorPatientEnums errorPatientEnums, Date modified) { |