|
@@ -661,6 +661,7 @@ public class EmrServer {
|
|
|
if (publicServer.needRule()) {
|
|
|
userCode = "";
|
|
|
}
|
|
|
+
|
|
|
return ResultVoUtil.success(dao.selectEmrDeteles(patNo, times, userCode));
|
|
|
}
|
|
|
|
|
@@ -684,6 +685,14 @@ public class EmrServer {
|
|
|
if (times == null) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER, "出院患者无法恢复病历,如果要恢复请先召回在院。");
|
|
|
}
|
|
|
+ dao.updateDeleteFlag(data.getId());
|
|
|
+
|
|
|
+ TryUtil.ignoreErr(() -> {
|
|
|
+ JSONObject param = new JSONObject();
|
|
|
+ param.put("_id", documentId);
|
|
|
+ param.put("valid", 1);
|
|
|
+ emr.resumeMedicalRecords(documentId, param);
|
|
|
+ });
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_EL_MESSAGE, "病历恢复成功。");
|
|
|
}
|
|
|
|