Commit 6ccb918455cba66e8e4222790d13a0e02d2350c1
1 parent
100297c76d
Exists in
master
and in
1 other branch
听力筛查建档
Showing 1 changed file with 22 additions and 19 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java
View file @
6ccb918
| ... | ... | @@ -138,25 +138,6 @@ |
| 138 | 138 | continue; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - Set<String> sets = antenatalExaminationFacade.getCrisisUnionDoc(patients); | |
| 142 | - | |
| 143 | - if (CollectionUtils.isNotEmpty(sets)) | |
| 144 | - { | |
| 145 | - for (String doctorId : sets) | |
| 146 | - { | |
| 147 | - LisCrisisNotify notify = new LisCrisisNotify(); | |
| 148 | - notify.setHospitalId(patients.getHospitalId()); | |
| 149 | - notify.setPatientId(patients.getId()); | |
| 150 | - notify.setStatus(0); | |
| 151 | - notify.setYn(1); | |
| 152 | - notify.setModified(new Date()); | |
| 153 | - notify.setCreated(new Date()); | |
| 154 | - notify.setDoctorId(doctorId); | |
| 155 | - | |
| 156 | - lisCrisisNotifyService.addLisCrisisNotify(notify); | |
| 157 | - } | |
| 158 | - } | |
| 159 | - | |
| 160 | 141 | LisCrisisItem crisisItem = new LisCrisisItem(); |
| 161 | 142 | crisisItem.setPid(patients.getPid()); |
| 162 | 143 | crisisItem.setPatientId(patients.getId()); |
| ... | ... | @@ -224,6 +205,28 @@ |
| 224 | 205 | crisisItem.setRef(buildRef(referValue)); |
| 225 | 206 | crisisItem.setUnit(item.getUnit()); |
| 226 | 207 | lisCrisisItemService.addLisCrisisItem(crisisItem); |
| 208 | + | |
| 209 | + //当前孕妇关联的初诊复诊医生危急通知 | |
| 210 | + Set<String> sets = antenatalExaminationFacade.getCrisisUnionDoc(patients); | |
| 211 | + | |
| 212 | + if (CollectionUtils.isNotEmpty(sets)) | |
| 213 | + { | |
| 214 | + for (String doctorId : sets) | |
| 215 | + { | |
| 216 | + LisCrisisNotify notify = new LisCrisisNotify(); | |
| 217 | + notify.setHospitalId(patients.getHospitalId()); | |
| 218 | + notify.setPatientId(patients.getId()); | |
| 219 | + notify.setStatus(0); | |
| 220 | + notify.setYn(1); | |
| 221 | + notify.setModified(new Date()); | |
| 222 | + notify.setCreated(new Date()); | |
| 223 | + notify.setDoctorId(doctorId); | |
| 224 | + | |
| 225 | + lisCrisisNotifyService.addLisCrisisNotify(notify); | |
| 226 | + } | |
| 227 | + } | |
| 228 | + | |
| 229 | + | |
| 227 | 230 | } |
| 228 | 231 | } |
| 229 | 232 | } |