Browse Source

其他业务AgentFun-事前事中代码更新

837390164@qq.com 7 months ago
parent
commit
63e1141b90
1 changed files with 34 additions and 0 deletions
  1. 34 0
      InsuBusiness.cs

+ 34 - 0
InsuBusiness.cs

@@ -1536,6 +1536,40 @@ namespace PTMedicalInsurance
                             }
                             break;
                         }
+
+                    case "PreAndInProcessAnalysis"://事前分析  诊间只有住院的事前分析
+                        {
+                            Global.pat.adm_Dr = int.Parse(JsonHelper.getDestValue(joInParam, "params[0].admID"));
+                            Global.pat.psn_no = JsonHelper.getDestValue(joInParam, "params[0].insuData.patient_dtos[0].patn_id");
+                            Global.pat.insuplc_admdvs = JsonHelper.getDestValue(joInParam, "params[0].insuData.patient_dtos[0].poolarea");
+                            Global.pat.insuType = JsonHelper.getDestValue(joInParam, "params[0].insuData.patient_dtos[0].fsi_encounter_dtos[0].insutype");
+                            Global.pat.medType = JsonHelper.getDestValue(joInParam, "params[0].insuData.patient_dtos[0].fsi_encounter_dtos[0].med_type");
+
+                            if (string.IsNullOrEmpty(Global.pat.insuplc_admdvs))
+                            {
+                                //通过查询医保平台登记信息表获取参保地
+                                if (mIS.queryRegisterInfo(3, out outParam) == 0)
+                                {
+                                    JObject joReg = JObject.Parse(outParam);
+                                    Global.pat.insuplc_admdvs = JsonHelper.getDestValue(joReg, "data.InsuranceAreaCode");
+                                }
+                            }
+                            
+                            JObject joResult = new JObject();
+                            joResult.Add("result", JObject.Parse(JsonHelper.getDestValue(joParam, "insuData")));
+                            //事前分析
+                            if (Global.curEvt.ext.isOpenAnalysis)
+                            {
+                                if (hBus.PreAnalysis("5", joResult.ToString(), out errMsg) != 0)
+                                {
+                                    MessageBox.Show(errMsg);
+                                    break;
+                                }
+                            }
+
+                            break;
+                        }
+
                     default:
                         {
                             rtnResult = JsonHelper.setExceptionJson(-1, "AgentFun 交易", "传入的业务编码不对【"+businessType+"】").ToString();