فهرست منبع

是否修改his数据

hurugang 4 سال پیش
والد
کامیت
39c99f47de
2فایلهای تغییر یافته به همراه13 افزوده شده و 4 حذف شده
  1. 11 4
      src/main/java/cn/hnthyy/thmz/service/impl/his/MzPatientMiServiceImpl.java
  2. 2 0
      src/main/resources/application.yml

+ 11 - 4
src/main/java/cn/hnthyy/thmz/service/impl/his/MzPatientMiServiceImpl.java

@@ -16,6 +16,7 @@ import cn.hnthyy.thmz.service.thmz.HaiCiAdapterService;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Isolation;
 import org.springframework.transaction.annotation.Propagation;
@@ -59,6 +60,10 @@ public class MzPatientMiServiceImpl implements MzPatientMiService {
     @Autowired
     private HaiCiAdapterService haiCiAdapterService;
 
+    //是否修改LIS数据开关
+    @Value("${updateLisData}")
+    private boolean updateLisData;
+
     @Override
     public MzPatientMi queryByIcCardNo(String icCardNo) {
         return mzPatientMiMapper.selectByIcCardNo(icCardNo);
@@ -106,10 +111,12 @@ public class MzPatientMiServiceImpl implements MzPatientMiService {
                 mzyReqrecMapper.updateNameByPatientIdAndTimes(mzPatientMi.getName(), mzPatientMi.getPatientId(), null);
                 //医技检查
                 yjJcPatientMapper.updateYjJcPatient(new YjJcPatient(mzPatientMi.getPatientId(),mzPatientMi.getName()));
-                //lis订单信息
-                mOrderInfoMapper.updateMOrderInfo(new MOrderInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
-                //lis病人信息
-                mPtntInfoMapper.updateMPtntInfo(new MPtntInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
+                if(updateLisData){
+                    //lis订单信息
+                    mOrderInfoMapper.updateMOrderInfo(new MOrderInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
+                    //lis病人信息
+                    mPtntInfoMapper.updateMPtntInfo(new MPtntInfo(mzPatientMi.getPatientId(),mzPatientMi.getName()));
+                }
                 //住院病人姓名
                 aPatientMiMapper.updateMzPatientMiByMzno(new APatientMi(mzPatientMi.getPatientId(),mzPatientMi.getName()));
                 //修改住院病人

+ 2 - 0
src/main/resources/application.yml

@@ -161,6 +161,8 @@ serviceUrl: "http://webhis.thyy.cn:8706/sendWxInfo/send"
 sendNoticeToHaiCi: true
 #就诊状态通知开关
 sendNoticeToPatient: true
+#是否修改LIS数据开关
+updateLisData: true
 #海慈开放服务地址测试环境
 #haiciServiceUrl: "https://sapi.med.gzhc365.com/openapi/health"
 #海慈开放服务地址生产环境