Browse Source

事前事中接口服务调试

837390164@qq.com 1 tuần trước cách đây
mục cha
commit
8837e36cb8

BIN
.vs/ChongQingMI/v16/.suo


+ 4 - 0
Business/PreAndInProcessAnalysis.cs

@@ -160,6 +160,10 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("dscg_dept_name", JsonHelper.getDestValue(jofsi_encounter_dtos, "dscg_dept_name"));  //出院科室名称
                 joInpar.Add("med_mdtrt_type", JsonHelper.getDestValue(jofsi_encounter_dtos, "med_mdtrt_type"));  //就诊类型
                 string med_type = JsonHelper.getDestValue(jofsi_encounter_dtos, "med_type");
+
+                if (string.IsNullOrEmpty(med_type))
+                    med_type = Global.pat.medType;
+
                 joInpar.Add("med_type", med_type);  //医疗类别
                 joInpar.Add("fsi_order_dtos", GetFsi__order_dtos(trig_scen,p));  //处方(医嘱)信息
                 string matn_stas = JsonHelper.getDestValue(jofsi_encounter_dtos, "matn_stas");

+ 7 - 25
InsuBusiness.cs

@@ -601,7 +601,6 @@ namespace PTMedicalInsurance
                                 rtnResult = JsonHelper.setIrisReturnValue(0, "住院费用上传取消成功", null).ToString();
                                 return rtnResult;
                             }
-
                         }
 
                     default:
@@ -801,32 +800,16 @@ namespace PTMedicalInsurance
                             #endregion
 
                             #region【门诊就诊信息上传成功后调用3101事前服务】
-                  
-                            if (hIS.GetInsuPatInfo("1", Global.pat, out outParam) != 0)
-                            {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3101医保明细审核事前分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
+                            //事前分析
+                            if (Global.curEvt.ext.isOpenAnalysis)
                             {
-                                //2.调用医保3101明细审核事前分析服务
-                                JObject joInput = new JObject();
-                                //joInput.Add("data", JObject.Parse(outParam));
-                                joInput = JObject.Parse(outParam);
-
-                                JObject jo3101Rtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", joInput.ToString().Replace("\r\n", ""))); //.Replace(" ", "")
-                                if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
+                                if (hBus.PreAnalysis("1", "", out errMsg) != 0)
                                 {
-
-                                    DialogResult dr = MessageBox.Show("【3101】医保明细审核事前分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
-                                    {
-                                        rtnResult = JsonHelper.setExceptionJson(-1, "【3101】医保明细审核事前分析服务调用失败:", errMsg).ToString();
-                                        return rtnResult;
-                                    }
+                                    rtnResult = JsonHelper.setExceptionJson(-1, "门诊就诊信息上传成功后调用3101事前服务失败:", errMsg).ToString();
+                                    return rtnResult;
                                 }
                             }
-                    
+
                             #endregion
 
                             #region 费用上传[2204]
@@ -841,10 +824,9 @@ namespace PTMedicalInsurance
                             #region【门诊预结算2206前调用3102医保明细审核事中服务】                            
                             //1.获取3102入参报文
 
-                            ////事前分析
+                            //事前分析
                             if ((Global.curEvt.ext.isOpenAnalysis) && (Global.operationType == OperationType.SettlementOP))
                             {
-
                                 if (hBus.PreAnalysis("2", "", out errMsg) != 0)
                                 {
                                     rtnResult = JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事中分析服务调用失败:", errMsg).ToString();

BIN
bin/Debug/ChongQingMI.dll


BIN
bin/Debug/ChongQingMI.pdb