Przeglądaj źródła

perf: 单病种使用特慢病字典

zhengjie 1 rok temu
rodzic
commit
b9356b1841

+ 10 - 6
Business/HisMainBusiness.cs

@@ -454,7 +454,7 @@ namespace PTMedicalInsurance.Business
             joOutput["baseinfo"] = jaBaseInfo;
             PatientInsuInfo frmPatientInfo = new PatientInsuInfo(joConvertCodeRtn);
             //相关信息转换到登记面板
-            if (frmPatientInfo.ShowDialog() == DialogResult.OK)
+            if (tools.ShowAppDiaglog(frmPatientInfo) == DialogResult.OK)
             {
                 JObject joSelectedInsuInfo = (JObject)jaInsuInfo[frmPatientInfo.insuInfoIndex];
                 if (joSelectedInsuInfo != null)
@@ -641,6 +641,10 @@ namespace PTMedicalInsurance.Business
                     {
                         jaOutPatDiagnoses.Add(jaDiagnoses[i]);
                     }
+                    if (jaDiagnoses[i]["diaTypeCode"].ToString() == "PRE") //初步诊断(南昌特有)
+                    {
+                        jaOutPatDiagnoses.Add(jaDiagnoses[i]);
+                    }
                 }
 
                 if (jaInPatDiagnoses.Count > 0)
@@ -798,11 +802,11 @@ namespace PTMedicalInsurance.Business
                     joMdtrtinfo.Add("matn_type", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.matn_type"));          //生育类别
                     joMdtrtinfo.Add("birctrl_type", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.birctrl_type"));          //计划生育手术类别
                     joMdtrtinfo.Add("latechb_flag", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.latechb_flag"));          //晚育标志
-                    //joMdtrtinfo.Add("geso_val", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.geso_val"));          //孕周数
-                    //joMdtrtinfo.Add("fetts", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.fetts"));          //胎次
-                    //joMdtrtinfo.Add("fetus_cnt", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.fetus_cnt"));          //胎儿数
-                    //joMdtrtinfo.Add("pret_flag", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.pret_flag"));          //早产标志
-                    //joMdtrtinfo.Add("birctrl_matn_date", "");          //计划生育手术或生育日期 JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.birctrl_matn_date") 20230228医保中心校验传正确时间或空
+                    joMdtrtinfo.Add("geso_val", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.geso_val"));          //孕周数
+                    joMdtrtinfo.Add("fetts", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.fetts"));          //胎次
+                    joMdtrtinfo.Add("fetus_cnt", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.fetus_cnt"));          //胎儿数
+                    joMdtrtinfo.Add("pret_flag", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.pret_flag"));          //早产标志
+                    joMdtrtinfo.Add("birctrl_matn_date", "");          //计划生育手术或生育日期 JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.birctrl_matn_date") 20230228医保中心校验传正确时间或空
                     joMdtrtinfo.Add("dise_type_code", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dise_type_code"));          //病种类型
                     joMdtrtinfo.Add("exp_content", ExportObj);          //字段扩展
                     joMdtrtinfo.Add("insuplc_admdvs", Global.pat.insuplc_admdvs);          //参保地医保区划

+ 1 - 1
Forms/InpatientRegistration.cs

@@ -30,7 +30,7 @@ namespace PTMedicalInsurance.Forms
             string sqlStr = "SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  WHERE A.InsuCode = 'insutype'" + sqlCondition;
             SetDBLKCombox(ref dblkcbxInsuranceType, sqlStr);
 
-            sqlStr = "SELECT A.Code, A.Name FROM HB_MedInsuDirectory A where A.ValidFlag='1' And A.HisType=7" + sqlCondition;
+            sqlStr = "SELECT A.Code, A.Name FROM HB_MedInsuDirectory A where A.ValidFlag='1' And A.HisType=6" + sqlCondition;
             SetDBLKCombox(ref dblkcbxDisease, sqlStr);
 
             sqlStr = "SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  WHERE A.InsuCode = 'psn_setlway'" + sqlCondition;

+ 2 - 27
Forms/OutpatientRegistration.cs

@@ -46,35 +46,11 @@ namespace PTMedicalInsurance.Forms
         {
             string sqlCondition = " and A.Interface_Dr = '" + Global.inf.interfaceDr.ToString() + "'";
             string sqlStr = "";
-
-            if (Global.pat.RYorCY == "2")
-            {
-                sqlStr = " SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  "
-                              + " WHERE B.Code='" + Global.pat.insuType + "' and A.InsuCode = 'insutype'" + sqlCondition;
-                SetDBLKCombox(ref dblkcbxInsuranceType, sqlStr);
-
-                sqlStr = "select A.Code, A.Name FROM HB_MedInsuDirectory A where A.ValidFlag='1' And A.HisType=7" + sqlCondition;
-                // 如果登记选择了,则直接用登记的病种
-                if (!string.IsNullOrEmpty(Global.pat.DiseasecCode))
-                {
-                    sqlStr += " and A.Code='" + Global.pat.DiseasecCode + "' ";
-                }
-                SetDBLKCombox(ref dblkcbxDisease, sqlStr);
-
-                sqlStr = " SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr"
-                       + " WHERE B.Code='" + Global.pat.medType + "' and A.InsuCode = 'med_type'" + sqlCondition;
-                SetDBLKCombox(ref dblkcbxMedicalType, sqlStr);
-
-                sqlStr = "SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  WHERE A.InsuCode = 'psn_setlway'" + sqlCondition;
-                SetDBLKCombox(ref dblkcbxSettelmentWay, sqlStr);
-
-            }
-            else
-            {
+            
                 sqlStr = "SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  WHERE A.InsuCode = 'insutype'" + sqlCondition;
                 SetDBLKCombox(ref dblkcbxInsuranceType, sqlStr);
 
-                sqlStr = "select A.Code, A.Name FROM HB_MedInsuDirectory A where A.ValidFlag='1' And A.HisType=7" + sqlCondition;
+                sqlStr = "select A.Code, A.Name FROM HB_MedInsuDirectory A where A.ValidFlag='1' And A.HisType=6" + sqlCondition;
                 SetDBLKCombox(ref dblkcbxDisease, sqlStr);
 
                 sqlStr = "SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  WHERE A.InsuCode = 'psn_setlway'" + sqlCondition;
@@ -82,7 +58,6 @@ namespace PTMedicalInsurance.Forms
 
                 sqlStr = "SELECT B.Code,B.Descripts AS Name FROM HB_Dictionary A JOIN HB_DictionaryDataDetail B ON A.ID = B.HBDictionary_Dr  WHERE A.InsuCode = 'med_type'" + sqlCondition;
                 SetDBLKCombox(ref dblkcbxMedicalType, sqlStr);
-            }
             
         }
         public OutpatientRegistration()