Commit 58f914530902b873c8cc9e32e11f7ef90087ffa9
1 parent
00d24c7f80
Exists in
master
and in
1 other branch
修改新电子病历
Showing 1 changed file with 22 additions and 20 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
58f9145
... | ... | @@ -134,27 +134,7 @@ |
134 | 134 | //修改患者风险等级 |
135 | 135 | updatePatientRiskLevel(antExChuModel, patients); |
136 | 136 | |
137 | - if (null != patients.getBuildType() && patients.getBuildType() == 3) { | |
138 | - ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); | |
139 | - referralApplyOrderQuery.setParentId(patients.getId()); | |
140 | - String hospital = autoMatchFacade.getHospitalId(userId); | |
141 | - referralApplyOrderQuery.setHospitalId(hospital); | |
142 | - List<ReferralApplyOrderModel> orderModelList = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery); | |
143 | - if (CollectionUtils.isNotEmpty(orderModelList)) { | |
144 | - String outHospitalId = orderModelList.get(0).getOutHospitalId(); | |
145 | - ReferralApplyOrderQuery referralApplyOrderQuery1 = new ReferralApplyOrderQuery(); | |
146 | - referralApplyOrderQuery1.setOutHospitalId(outHospitalId); | |
147 | - referralApplyOrderQuery1.setTransferredHospital(hospital); | |
148 | - referralApplyOrderQuery1.setPid(patients.getPid()); | |
149 | 137 | |
150 | - ReferralApplyOrderModel model = new ReferralApplyOrderModel(); | |
151 | - //设置接收时间 | |
152 | - model.setReceived(new Date()); | |
153 | - model.setRecDoctor(userId + ""); | |
154 | - model.setModified(new Date()); | |
155 | - applyOrderService.updateByParentId(referralApplyOrderQuery1, model); | |
156 | - } | |
157 | - } | |
158 | 138 | } else { |
159 | 139 | List list1 = autoMatchFacade.matchOrgId(userId); |
160 | 140 | Patients patients = patientsService.findOnePatientById(excAddRequest.getParentId()); |
... | ... | @@ -181,6 +161,28 @@ |
181 | 161 | //修改患者风险等级 |
182 | 162 | patients.setLastCheckEmployeeId(excAddRequest.getProdDoctor()); |
183 | 163 | updatePatientRiskLevel(antExChuModel, patients); |
164 | + | |
165 | + if (null != patients.getBuildType() && patients.getBuildType() == 3) { | |
166 | + ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); | |
167 | + referralApplyOrderQuery.setParentId(patients.getId()); | |
168 | + String hospital = autoMatchFacade.getHospitalId(userId); | |
169 | + referralApplyOrderQuery.setHospitalId(hospital); | |
170 | + List<ReferralApplyOrderModel> orderModelList = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery); | |
171 | + if (CollectionUtils.isNotEmpty(orderModelList)) { | |
172 | + String outHospitalId = orderModelList.get(0).getOutHospitalId(); | |
173 | + ReferralApplyOrderQuery referralApplyOrderQuery1 = new ReferralApplyOrderQuery(); | |
174 | + referralApplyOrderQuery1.setOutHospitalId(outHospitalId); | |
175 | + referralApplyOrderQuery1.setTransferredHospital(hospital); | |
176 | + referralApplyOrderQuery1.setPid(patients.getPid()); | |
177 | + | |
178 | + ReferralApplyOrderModel model = new ReferralApplyOrderModel(); | |
179 | + //设置接收时间 | |
180 | + model.setReceived(new Date()); | |
181 | + model.setRecDoctor(userId + ""); | |
182 | + model.setModified(new Date()); | |
183 | + applyOrderService.updateByParentId(referralApplyOrderQuery1, model); | |
184 | + } | |
185 | + } | |
184 | 186 | } |
185 | 187 | return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); |
186 | 188 | } |