|
|
@@ -34,6 +34,7 @@ import thyyxxk.webserver.service.PublicServer;
|
|
|
import thyyxxk.webserver.service.hutoolcache.UserCache;
|
|
|
import thyyxxk.webserver.service.hutoolcache.ZyBillItemCache;
|
|
|
import thyyxxk.webserver.service.medicalinsurance.SiZyService;
|
|
|
+import thyyxxk.webserver.service.zhuyuanyisheng.emr.EmrServer;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
@@ -61,7 +62,7 @@ public class XiangMuLuRuService {
|
|
|
private final SiSettleApplyDao siSettleApplyDao;
|
|
|
private final UserCache userCache;
|
|
|
private final ZyBillItemCache zyBillItemCache;
|
|
|
-
|
|
|
+ private final EmrServer emrServer;
|
|
|
|
|
|
private XiangMuLuRuService getThis() {
|
|
|
return SpringUtil.getBean(this.getClass());
|
|
|
@@ -94,6 +95,9 @@ public class XiangMuLuRuService {
|
|
|
if (patientInfo == null) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST);
|
|
|
}
|
|
|
+ String emrByCode = emrServer.findEmrByCode(patientInfo.getInpatientNo(), patientInfo.getAdmissTimes(), "ruyuanjiluzhuanyong");
|
|
|
+ patientInfo.setAge(DateUtil.calculateAge(patientInfo.getBirthDate(), patientInfo.getAdmissDate()));
|
|
|
+ patientInfo.setEmrDiagStr(EmrJsonUtils.businessCodeValueStr(emrByCode, "入院诊断"));
|
|
|
return ResultVoUtil.success(patientInfo);
|
|
|
}
|
|
|
|