|
@@ -220,6 +220,64 @@ type ResultFive struct {
|
220
|
220
|
PsnInsuStas string `json:"psn_insu_stas"`
|
221
|
221
|
PsnType string `json:"psn_type"`
|
222
|
222
|
}
|
|
223
|
+type ResultSevenTwo struct {
|
|
224
|
+ Cainfo string `json:"cainfo"`
|
|
225
|
+ ErrMsg string `json:"err_msg"`
|
|
226
|
+ InfRefmsgid string `json:"inf_refmsgid"`
|
|
227
|
+ Infcode int64 `json:"infcode"`
|
|
228
|
+ Output struct {
|
|
229
|
+ Setldetail []interface{} `json:"setldetail"`
|
|
230
|
+ Setlinfo struct {
|
|
231
|
+ AcctMulaidPay float64 `json:"acct_mulaid_pay"`
|
|
232
|
+ AcctPay float64 `json:"acct_pay"`
|
|
233
|
+ ActPayDedc float64 `json:"act_pay_dedc"`
|
|
234
|
+ Age string `json:"age"`
|
|
235
|
+ Balc float64 `json:"balc"`
|
|
236
|
+ Brdy string `json:"brdy"`
|
|
237
|
+ Certno string `json:"certno"`
|
|
238
|
+ ClrOptins string `json:"clr_optins"`
|
|
239
|
+ ClrType string `json:"clr_type"`
|
|
240
|
+ ClrWay string `json:"clr_way"`
|
|
241
|
+ CvlservFlag string `json:"cvlserv_flag"`
|
|
242
|
+ CvlservPay float64 `json:"cvlserv_pay"`
|
|
243
|
+ FulamtOwnpayAmt float64 `json:"fulamt_ownpay_amt"`
|
|
244
|
+ FundPaySumamt float64 `json:"fund_pay_sumamt"`
|
|
245
|
+ Gend string `json:"gend"`
|
|
246
|
+ HifesPay float64 `json:"hifes_pay"`
|
|
247
|
+ HifmiPay float64 `json:"hifmi_pay"`
|
|
248
|
+ HifpPay float64 `json:"hifp_pay"`
|
|
249
|
+ HospPartAmt float64 `json:"hosp_part_amt"`
|
|
250
|
+ InscpScpAmt float64 `json:"inscp_scp_amt"`
|
|
251
|
+ Insutype string `json:"insutype"`
|
|
252
|
+ MafPay float64 `json:"maf_pay"`
|
|
253
|
+ MdtrtCertType string `json:"mdtrt_cert_type"`
|
|
254
|
+ HifobPay float64 `json:"hifob_pay"`
|
|
255
|
+
|
|
256
|
+ MdtrtID string `json:"mdtrt_id"`
|
|
257
|
+ MedType string `json:"med_type"`
|
|
258
|
+ MedfeeSumamt float64 `json:"medfee_sumamt"`
|
|
259
|
+ MedinsSetlID string `json:"medins_setl_id"`
|
|
260
|
+ Naty string `json:"naty"`
|
|
261
|
+ OthPay float64 `json:"oth_pay"`
|
|
262
|
+ OverlmtSelfpay float64 `json:"overlmt_selfpay"`
|
|
263
|
+ PoolPropSelfpay float64 `json:"pool_prop_selfpay"`
|
|
264
|
+ PreselfpayAmt float64 `json:"preselfpay_amt"`
|
|
265
|
+ PsnCashPay float64 `json:"psn_cash_pay"`
|
|
266
|
+ PsnCertType string `json:"psn_cert_type"`
|
|
267
|
+ PsnName string `json:"psn_name"`
|
|
268
|
+ PsnNo string `json:"psn_no"`
|
|
269
|
+ PsnPartAmt float64 `json:"psn_part_amt"`
|
|
270
|
+ PsnType string `json:"psn_type"`
|
|
271
|
+ SetlID string `json:"setl_id"`
|
|
272
|
+ SetlTime string `json:"setl_time"`
|
|
273
|
+ } `json:"setlinfo"`
|
|
274
|
+ } `json:"output"`
|
|
275
|
+ RefmsgTime string `json:"refmsg_time"`
|
|
276
|
+ RespondTime string `json:"respond_time"`
|
|
277
|
+ Signtype interface{} `json:"signtype"`
|
|
278
|
+ WarnMsg interface{} `json:"warn_msg"`
|
|
279
|
+}
|
|
280
|
+
|
223
|
281
|
type ResultSeven struct {
|
224
|
282
|
Cainfo string `json:"cainfo"`
|
225
|
283
|
ErrMsg string `json:"err_msg"`
|
|
@@ -1283,6 +1341,9 @@ func (c *ZHHisApiController) GetZHPatientInfo() {
|
1283
|
1341
|
result = string(result_byte)
|
1284
|
1342
|
saveLog(result_log, request_log, "1101", "人员基本信息获取")
|
1285
|
1343
|
|
|
1344
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
1345
|
+ result, request_log = service.JxybZY1101(patient.IdCardNo, miConfig.OrgName, role.UserName, miConfig.Code, "", miConfig.MdtrtareaAdmvs, miConfig.SecretKey, 2, "", 0, miConfig.Url, miConfig.AccessKey, "", patient.IdCardNo, "")
|
|
1346
|
+ saveLog(result_log, request_log, "1101", "人员基本信息获取")
|
1286
|
1347
|
} else {
|
1287
|
1348
|
result, request_log, result_log = service.ZHGdyb1101(patient.IdCardNo, miConfig.OrgName, role.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, 2, "", 1, patient.Name)
|
1288
|
1349
|
saveLog(result_log, request_log, "1101", "人员基本信息获取")
|
|
@@ -1497,9 +1558,13 @@ func (c *ZHHisApiController) GetZHInHospitalCheck() {
|
1497
|
1558
|
res2.Output.Baseinfo.PsnNo = psn_info.PsnNo
|
1498
|
1559
|
res2.Output.Baseinfo.Certno = patient.IdCardNo
|
1499
|
1560
|
}
|
|
1561
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
1562
|
+ result, request_log = service.JxybZY1101(patient.IdCardNo, miConfig.OrgName, role.UserName, miConfig.Code, "", miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, "", certificates, miConfig.Url, miConfig.AccessKey, "", patient.IdCardNo, "")
|
|
1563
|
+ saveLog(result_log, request_log, "1101", "人员基本信息获取")
|
1500
|
1564
|
} else {
|
1501
|
1565
|
result, request_log, result_log = service.ZHGdyb1101(patient.IdCardNo, miConfig.OrgName, role.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, "", certificates, name)
|
1502
|
1566
|
saveLog(result_log, request_log, "1101", "人员基本信息获取")
|
|
1567
|
+
|
1503
|
1568
|
}
|
1504
|
1569
|
|
1505
|
1570
|
doctorInfo, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, doctor)
|
|
@@ -1659,10 +1724,10 @@ func (c *ZHHisApiController) GetZHInHospitalCheck() {
|
1659
|
1724
|
}
|
1660
|
1725
|
} else {
|
1661
|
1726
|
if med_type == 11 {
|
1662
|
|
- struct2401.MedType = "21"
|
|
1727
|
+ struct2401.MedType = "24"
|
|
1728
|
+ med_type = 24
|
1663
|
1729
|
} else {
|
1664
|
1730
|
struct2401.MedType = strconv.FormatInt(int64(med_type), 10)
|
1665
|
|
-
|
1666
|
1731
|
}
|
1667
|
1732
|
}
|
1668
|
1733
|
struct2401.IptNo = ipt_otp_no
|
|
@@ -1738,6 +1803,11 @@ func (c *ZHHisApiController) GetZHInHospitalCheck() {
|
1738
|
1803
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1739
|
1804
|
result_byte, _ := json.Marshal(respJSON)
|
1740
|
1805
|
result = string(result_byte)
|
|
1806
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
1807
|
+
|
|
1808
|
+ result, request_log = service.Jxyb2401(struct2401, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, insuplc_admdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
1809
|
+ saveLog(result, request_log, "2401", "入院登记")
|
|
1810
|
+
|
1741
|
1811
|
} else {
|
1742
|
1812
|
result, request_log = service.ZHGdyb2401(struct2401, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, insuplc_admdvs, miConfig.MdtrtareaAdmvs)
|
1743
|
1813
|
saveLog(result, request_log, "2401", "入院登记")
|
|
@@ -1915,7 +1985,7 @@ func (this *ZHHisApiController) GetZHOutHospitalCheck() {
|
1915
|
1985
|
}
|
1916
|
1986
|
|
1917
|
1987
|
dise.MdtrtId = record.Number
|
1918
|
|
- dise.DiagSrtNo = strconv.FormatInt(int64(item.ID), 10)
|
|
1988
|
+ dise.DiagSrtNo = strconv.FormatInt(int64(index), 10)
|
1919
|
1989
|
dise.DiseDorName = doctorInfo.UserName
|
1920
|
1990
|
dise.DiagCode = item.CountryCode
|
1921
|
1991
|
dise.DiagName = item.ClassName
|
|
@@ -1961,6 +2031,10 @@ func (this *ZHHisApiController) GetZHOutHospitalCheck() {
|
1961
|
2031
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1962
|
2032
|
result_byte, _ := json.Marshal(respJSON)
|
1963
|
2033
|
result = string(result_byte)
|
|
2034
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
2035
|
+ result, request_log = service.Jxyb2402(struct2402, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
2036
|
+ saveLog(result, request_log, "2402", "出院")
|
|
2037
|
+
|
1964
|
2038
|
} else {
|
1965
|
2039
|
result, request_log = service.ZHGdyb2402(struct2402, miConfig.OrgName, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, miConfig.Code)
|
1966
|
2040
|
saveLog(result, request_log, "2402", "出院")
|
|
@@ -2394,6 +2468,10 @@ func (c *ZHHisApiController) GetSettleInfo() {
|
2394
|
2468
|
result_byte, _ := json.Marshal(respJSON)
|
2395
|
2469
|
result = string(result_byte)
|
2396
|
2470
|
|
|
2471
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
2472
|
+ result, src_resquest = service.Jxyb2304(record.PsnNo, record.Number, cert_no, record.InsutypeType, allTotal, record.Certificates, record.IdCardType, "", miConfig.SecretKey, miConfig.OrgName, miConfig.Code, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey, "", "1")
|
|
2473
|
+ saveLog(result, src_resquest, "2304", "住院结算")
|
|
2474
|
+
|
2397
|
2475
|
} else {
|
2398
|
2476
|
|
2399
|
2477
|
result, src_resquest = service.ZHGdyb2304(record.PsnNo, record.Number, chrg_bchno, cert_no, record.InsutypeType, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "0", record.IdCardType, 0, 0, 0, 0, record.Certificates, "", "1")
|
|
@@ -2563,11 +2641,11 @@ func (c *ZHHisApiController) GetPreSettleInfo() {
|
2563
|
2641
|
for _, item := range orders {
|
2564
|
2642
|
total = total + item.DetItemFeeSumamt
|
2565
|
2643
|
}
|
2566
|
|
- allTotal = fmt.Sprintf("%.4f", total)
|
|
2644
|
+ allTotal = fmt.Sprintf("%.2f", total)
|
2567
|
2645
|
|
2568
|
2646
|
} else {
|
2569
|
2647
|
|
2570
|
|
- allTotal = fmt.Sprintf("%.4f", order.MedfeeSumamt)
|
|
2648
|
+ allTotal = fmt.Sprintf("%.2f", order.MedfeeSumamt)
|
2571
|
2649
|
|
2572
|
2650
|
}
|
2573
|
2651
|
|
|
@@ -2626,12 +2704,13 @@ func (c *ZHHisApiController) GetPreSettleInfo() {
|
2626
|
2704
|
result_byte, _ := json.Marshal(respJSON)
|
2627
|
2705
|
result = string(result_byte)
|
2628
|
2706
|
|
|
2707
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
2708
|
+ result, src_resquest = service.Jxyb2303(record.PsnNo, record.Number, cert_no, record.InsutypeType, allTotal, record.Certificates, record.IdCardType, "", miConfig.SecretKey, miConfig.OrgName, miConfig.Code, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
2709
|
+ saveLog(result, src_resquest, "2303", "住院预结算")
|
2629
|
2710
|
} else {
|
2630
|
2711
|
result, src_resquest = service.ZHGdyb2303(record.PsnNo, record.Number, chrg_bchno, cert_no, record.InsutypeType, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "0", record.IdCardType, 0, 0, 0, 0, record.Certificates)
|
2631
|
2712
|
saveLog(result, src_resquest, "2303", "住院预结算")
|
2632
|
|
-
|
2633
|
2713
|
}
|
2634
|
|
-
|
2635
|
2714
|
var dat map[string]interface{}
|
2636
|
2715
|
if err := json.Unmarshal([]byte(result), &dat); err == nil {
|
2637
|
2716
|
fmt.Println(dat)
|
|
@@ -2639,6 +2718,8 @@ func (c *ZHHisApiController) GetPreSettleInfo() {
|
2639
|
2718
|
fmt.Println(err)
|
2640
|
2719
|
}
|
2641
|
2720
|
userJSONBytes, _ := json.Marshal(dat)
|
|
2721
|
+
|
|
2722
|
+ var res2 ResultSevenTwo
|
2642
|
2723
|
var res ResultSeven
|
2643
|
2724
|
var resSeven10265 ResultSeven10265
|
2644
|
2725
|
if miConfig.Code == "H15049901371" {
|
|
@@ -2657,106 +2738,267 @@ func (c *ZHHisApiController) GetPreSettleInfo() {
|
2657
|
2738
|
res.Cainfo = resSeven10265.Cainfo
|
2658
|
2739
|
|
2659
|
2740
|
} else {
|
2660
|
|
- if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
2661
|
|
- utils.ErrorLog("解析失败:%v", err)
|
2662
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
2663
|
|
- return
|
2664
|
|
- }
|
|
2741
|
+ if miConfig.MdtrtareaAdmvs == "360399" {
|
|
2742
|
+ if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
|
|
2743
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
2744
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
2745
|
+ return
|
|
2746
|
+ }
|
2665
|
2747
|
|
2666
|
|
- }
|
|
2748
|
+ if res2.Infcode != 0 {
|
|
2749
|
+ errlog := &models.HisOrderError{
|
|
2750
|
+ UserOrgId: c.GetAdminUserInfo().CurrentOrgId,
|
|
2751
|
+ Ctime: time.Now().Unix(),
|
|
2752
|
+ Mtime: time.Now().Unix(),
|
|
2753
|
+ Number: chrg_bchno,
|
|
2754
|
+ ErrMsg: res.ErrMsg,
|
|
2755
|
+ Status: 1,
|
|
2756
|
+ PatientId: patient_id,
|
|
2757
|
+ RecordTime: time.Now().Unix(),
|
|
2758
|
+ Stage: 6,
|
|
2759
|
+ }
|
|
2760
|
+ service.CreateErrMsgLog(errlog)
|
|
2761
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
2762
|
+ "failed_code": -10,
|
|
2763
|
+ "msg": res.ErrMsg,
|
|
2764
|
+ })
|
|
2765
|
+ return
|
|
2766
|
+ } else {
|
|
2767
|
+ //order, _ := service.GetHisOrderTwo(adminUser.CurrentOrgId, chrg_bchno, id)
|
|
2768
|
+ order.OrderStatus = 1
|
|
2769
|
+ order.MdtrtId = res2.Output.Setlinfo.MdtrtID
|
|
2770
|
+ order.SetlId = res2.Output.Setlinfo.SetlID
|
|
2771
|
+ order.PsnNo = res2.Output.Setlinfo.PsnNo
|
|
2772
|
+ order.PsnName = res2.Output.Setlinfo.PsnName
|
|
2773
|
+ order.PsnCertType = res2.Output.Setlinfo.PsnCertType
|
|
2774
|
+ order.Certno = res2.Output.Setlinfo.Certno
|
|
2775
|
+ order.Gend = res2.Output.Setlinfo.Gend
|
|
2776
|
+ order.Naty = res2.Output.Setlinfo.Naty
|
|
2777
|
+ val, _ := strconv.ParseFloat(res2.Output.Setlinfo.Age, 64)
|
|
2778
|
+ order.Age = val
|
|
2779
|
+ order.Insutype = res2.Output.Setlinfo.Insutype
|
|
2780
|
+ order.PsnType = res2.Output.Setlinfo.PsnType
|
|
2781
|
+ order.CvlservFlag = res2.Output.Setlinfo.CvlservFlag
|
|
2782
|
+ order.SetlTime = res2.Output.Setlinfo.SetlTime
|
|
2783
|
+ order.MdtrtCertType = res2.Output.Setlinfo.MdtrtCertType
|
|
2784
|
+ if res.Output.Setlinfo.MedType == "140104" {
|
|
2785
|
+
|
|
2786
|
+ order.MedType = "14"
|
2667
|
2787
|
|
2668
|
|
- if res.Infcode != 0 {
|
2669
|
|
- errlog := &models.HisOrderError{
|
2670
|
|
- UserOrgId: c.GetAdminUserInfo().CurrentOrgId,
|
2671
|
|
- Ctime: time.Now().Unix(),
|
2672
|
|
- Mtime: time.Now().Unix(),
|
2673
|
|
- Number: chrg_bchno,
|
2674
|
|
- ErrMsg: res.ErrMsg,
|
2675
|
|
- Status: 1,
|
2676
|
|
- PatientId: patient_id,
|
2677
|
|
- RecordTime: time.Now().Unix(),
|
2678
|
|
- Stage: 6,
|
2679
|
|
- }
|
2680
|
|
- service.CreateErrMsgLog(errlog)
|
2681
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
2682
|
|
- "failed_code": -10,
|
2683
|
|
- "msg": res.ErrMsg,
|
2684
|
|
- })
|
2685
|
|
- return
|
2686
|
|
- } else {
|
2687
|
|
- //order, _ := service.GetHisOrderTwo(adminUser.CurrentOrgId, chrg_bchno, id)
|
2688
|
|
- order.OrderStatus = 1
|
2689
|
|
- order.MdtrtId = res.Output.Setlinfo.MdtrtID
|
2690
|
|
- order.SetlId = res.Output.Setlinfo.SetlID
|
2691
|
|
- order.PsnNo = res.Output.Setlinfo.PsnNo
|
2692
|
|
- order.PsnName = res.Output.Setlinfo.PsnName
|
2693
|
|
- order.PsnCertType = res.Output.Setlinfo.PsnCertType
|
2694
|
|
- order.Certno = res.Output.Setlinfo.Certno
|
2695
|
|
- order.Gend = res.Output.Setlinfo.Gend
|
2696
|
|
- order.Naty = res.Output.Setlinfo.Naty
|
2697
|
|
- order.Age = res.Output.Setlinfo.Age
|
2698
|
|
- order.Insutype = res.Output.Setlinfo.Insutype
|
2699
|
|
- order.PsnType = res.Output.Setlinfo.PsnType
|
2700
|
|
- order.CvlservFlag = res.Output.Setlinfo.CvlservFlag
|
2701
|
|
- order.SetlTime = res.Output.Setlinfo.SetlTime
|
2702
|
|
- order.MdtrtCertType = res.Output.Setlinfo.MdtrtCertType
|
2703
|
|
- if res.Output.Setlinfo.MedType == "140104" {
|
|
2788
|
+ } else {
|
2704
|
2789
|
|
2705
|
|
- order.MedType = "14"
|
|
2790
|
+ order.MedType = res2.Output.Setlinfo.MedType
|
2706
|
2791
|
|
2707
|
|
- } else {
|
|
2792
|
+ }
|
|
2793
|
+ order.MedfeeSumamt = res2.Output.Setlinfo.MedfeeSumamt
|
|
2794
|
+ order.FulamtOwnpayAmt = res2.Output.Setlinfo.FulamtOwnpayAmt
|
|
2795
|
+ order.OverlmtSelfPay = res2.Output.Setlinfo.OverlmtSelfpay
|
|
2796
|
+ order.PreselfpayAmt = res2.Output.Setlinfo.PreselfpayAmt
|
|
2797
|
+ order.InscpScpAmt = res2.Output.Setlinfo.InscpScpAmt
|
|
2798
|
+ order.ActPayDedc = res2.Output.Setlinfo.ActPayDedc
|
|
2799
|
+ order.HifmiPay = res2.Output.Setlinfo.HifmiPay
|
|
2800
|
+ order.HifpPay = res2.Output.Setlinfo.HifpPay
|
|
2801
|
+ order.HifesPay = res2.Output.Setlinfo.HifesPay
|
|
2802
|
+ order.HifobPay = res2.Output.Setlinfo.HifobPay
|
|
2803
|
+ order.MafPay = res2.Output.Setlinfo.MafPay
|
|
2804
|
+ order.OthPay = res2.Output.Setlinfo.OthPay
|
|
2805
|
+ order.CvlservPay = res2.Output.Setlinfo.CvlservPay
|
|
2806
|
+ order.PoolPropSelfpay = res2.Output.Setlinfo.PoolPropSelfpay
|
|
2807
|
+ order.FundPaySumamt = res2.Output.Setlinfo.FundPaySumamt
|
|
2808
|
+ order.PsnPartAmt = res2.Output.Setlinfo.PsnPartAmt
|
|
2809
|
+ order.AcctPay = res2.Output.Setlinfo.AcctPay
|
|
2810
|
+ order.PsnCashPay = res2.Output.Setlinfo.PsnCashPay
|
|
2811
|
+ order.HospPartAmt = res2.Output.Setlinfo.HospPartAmt
|
|
2812
|
+ order.Balc = res2.Output.Setlinfo.Balc
|
|
2813
|
+ order.AcctMulaidPay = res2.Output.Setlinfo.AcctMulaidPay
|
|
2814
|
+ order.MedinsSetlId = res2.Output.Setlinfo.MedinsSetlID
|
|
2815
|
+ order.ClrOptins = res2.Output.Setlinfo.ClrOptins
|
|
2816
|
+ order.ClrWay = res2.Output.Setlinfo.ClrWay
|
|
2817
|
+ order.Creator = order.Creator
|
|
2818
|
+ order.Modify = roles.AdminUserId
|
|
2819
|
+ order.RequestLog = src_resquest
|
|
2820
|
+ setlDetail, _ := json.Marshal(res2.Output.Setldetail)
|
|
2821
|
+ detailStr := string(setlDetail)
|
|
2822
|
+ order.SetlDetail = detailStr
|
|
2823
|
+ //err := service.UpdataOrderStatusTwo(chrg_bchno, c.GetAdminUserInfo().CurrentOrgId)
|
|
2824
|
+ if record.OutHospitalStatus == 1 && order.ID > 0 {
|
|
2825
|
+ err := service.UpDateOrder(order)
|
|
2826
|
+ if err == nil {
|
|
2827
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
2828
|
+ "msg": "预结算成功",
|
|
2829
|
+ "order_way": 1,
|
|
2830
|
+ })
|
|
2831
|
+ } else {
|
|
2832
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAmountAccountException)
|
|
2833
|
+ return
|
|
2834
|
+ }
|
|
2835
|
+ } else if record.OutHospitalStatus == 0 && order.ID == 0 {
|
|
2836
|
+
|
|
2837
|
+ var order models.HisOrder
|
|
2838
|
+ //order, _ := service.GetHisOrderTwo(adminUser.CurrentOrgId, chrg_bchno, id)
|
|
2839
|
+ order.OrderStatus = 1
|
|
2840
|
+ order.MdtrtId = res2.Output.Setlinfo.MdtrtID
|
|
2841
|
+ order.SetlId = res2.Output.Setlinfo.SetlID
|
|
2842
|
+ order.PsnNo = res2.Output.Setlinfo.PsnNo
|
|
2843
|
+ order.PsnName = res2.Output.Setlinfo.PsnName
|
|
2844
|
+ order.PsnCertType = res2.Output.Setlinfo.PsnCertType
|
|
2845
|
+ order.Certno = res2.Output.Setlinfo.Certno
|
|
2846
|
+ order.Gend = res2.Output.Setlinfo.Gend
|
|
2847
|
+ order.Naty = res2.Output.Setlinfo.Naty
|
|
2848
|
+ val, _ := strconv.ParseFloat(res2.Output.Setlinfo.Age, 64)
|
|
2849
|
+ order.Age = val
|
|
2850
|
+ order.Insutype = res2.Output.Setlinfo.Insutype
|
|
2851
|
+ order.PsnType = res2.Output.Setlinfo.PsnType
|
|
2852
|
+ order.CvlservFlag = res2.Output.Setlinfo.CvlservFlag
|
|
2853
|
+ order.SetlTime = res2.Output.Setlinfo.SetlTime
|
|
2854
|
+ order.MdtrtCertType = res2.Output.Setlinfo.MdtrtCertType
|
|
2855
|
+ if res2.Output.Setlinfo.MedType == "140104" {
|
|
2856
|
+
|
|
2857
|
+ order.MedType = "14"
|
2708
|
2858
|
|
2709
|
|
- order.MedType = res.Output.Setlinfo.MedType
|
|
2859
|
+ } else {
|
2710
|
2860
|
|
2711
|
|
- }
|
2712
|
|
- order.MedfeeSumamt = res.Output.Setlinfo.MedfeeSumamt
|
2713
|
|
- order.FulamtOwnpayAmt = res.Output.Setlinfo.FulamtOwnpayAmt
|
2714
|
|
- order.OverlmtSelfPay = res.Output.Setlinfo.OverlmtSelfpay
|
2715
|
|
- order.PreselfpayAmt = res.Output.Setlinfo.PreselfpayAmt
|
2716
|
|
- order.InscpScpAmt = res.Output.Setlinfo.InscpScpAmt
|
2717
|
|
- order.ActPayDedc = res.Output.Setlinfo.ActPayDedc
|
2718
|
|
- order.HifmiPay = res.Output.Setlinfo.HifmiPay
|
2719
|
|
- order.HifpPay = res.Output.Setlinfo.HifpPay
|
2720
|
|
- order.HifesPay = res.Output.Setlinfo.HifesPay
|
2721
|
|
- order.HifobPay = res.Output.Setlinfo.HifobPay
|
2722
|
|
- order.MafPay = res.Output.Setlinfo.MafPay
|
2723
|
|
- order.OthPay = res.Output.Setlinfo.OthPay
|
2724
|
|
- order.CvlservPay = res.Output.Setlinfo.CvlservPay
|
2725
|
|
- order.PoolPropSelfpay = res.Output.Setlinfo.PoolPropSelfpay
|
2726
|
|
- order.FundPaySumamt = res.Output.Setlinfo.FundPaySumamt
|
2727
|
|
- order.PsnPartAmt = res.Output.Setlinfo.PsnPartAmt
|
2728
|
|
- order.AcctPay = res.Output.Setlinfo.AcctPay
|
2729
|
|
- order.PsnCashPay = res.Output.Setlinfo.PsnCashPay
|
2730
|
|
- order.HospPartAmt = res.Output.Setlinfo.HospPartAmt
|
2731
|
|
- order.Balc = res.Output.Setlinfo.Balc
|
2732
|
|
- order.AcctMulaidPay = res.Output.Setlinfo.AcctMulaidPay
|
2733
|
|
- order.MedinsSetlId = res.Output.Setlinfo.MedinsSetlID
|
2734
|
|
- order.ClrOptins = res.Output.Setlinfo.ClrOptins
|
2735
|
|
- order.ClrWay = res.Output.Setlinfo.ClrWay
|
2736
|
|
- order.Creator = order.Creator
|
2737
|
|
- order.Modify = roles.AdminUserId
|
2738
|
|
- order.RequestLog = src_resquest
|
2739
|
|
- setlDetail, _ := json.Marshal(res.Output.Setldetail)
|
2740
|
|
- detailStr := string(setlDetail)
|
2741
|
|
- order.SetlDetail = detailStr
|
2742
|
|
- //err := service.UpdataOrderStatusTwo(chrg_bchno, c.GetAdminUserInfo().CurrentOrgId)
|
2743
|
|
- if record.OutHospitalStatus == 1 && order.ID > 0 {
|
2744
|
|
- err := service.UpDateOrder(order)
|
2745
|
|
- if err == nil {
|
|
2861
|
+ order.MedType = res2.Output.Setlinfo.MedType
|
|
2862
|
+
|
|
2863
|
+ }
|
|
2864
|
+ order.MedfeeSumamt = res2.Output.Setlinfo.MedfeeSumamt
|
|
2865
|
+ order.FulamtOwnpayAmt = res2.Output.Setlinfo.FulamtOwnpayAmt
|
|
2866
|
+ order.OverlmtSelfPay = res2.Output.Setlinfo.OverlmtSelfpay
|
|
2867
|
+ order.PreselfpayAmt = res2.Output.Setlinfo.PreselfpayAmt
|
|
2868
|
+ order.InscpScpAmt = res2.Output.Setlinfo.InscpScpAmt
|
|
2869
|
+ order.ActPayDedc = res2.Output.Setlinfo.ActPayDedc
|
|
2870
|
+ order.HifmiPay = res2.Output.Setlinfo.HifmiPay
|
|
2871
|
+ order.HifpPay = res2.Output.Setlinfo.HifpPay
|
|
2872
|
+ order.HifesPay = res2.Output.Setlinfo.HifesPay
|
|
2873
|
+ order.HifobPay = res2.Output.Setlinfo.HifobPay
|
|
2874
|
+ order.MafPay = res2.Output.Setlinfo.MafPay
|
|
2875
|
+ order.OthPay = res2.Output.Setlinfo.OthPay
|
|
2876
|
+ order.CvlservPay = res2.Output.Setlinfo.CvlservPay
|
|
2877
|
+ order.PoolPropSelfpay = res2.Output.Setlinfo.PoolPropSelfpay
|
|
2878
|
+ order.FundPaySumamt = res2.Output.Setlinfo.FundPaySumamt
|
|
2879
|
+ order.PsnPartAmt = res2.Output.Setlinfo.PsnPartAmt
|
|
2880
|
+ order.AcctPay = res2.Output.Setlinfo.AcctPay
|
|
2881
|
+ order.PsnCashPay = res2.Output.Setlinfo.PsnCashPay
|
|
2882
|
+ order.HospPartAmt = res2.Output.Setlinfo.HospPartAmt
|
|
2883
|
+ order.Balc = res2.Output.Setlinfo.Balc
|
|
2884
|
+ order.AcctMulaidPay = res2.Output.Setlinfo.AcctMulaidPay
|
|
2885
|
+ order.MedinsSetlId = res2.Output.Setlinfo.MedinsSetlID
|
|
2886
|
+ order.ClrOptins = res2.Output.Setlinfo.ClrOptins
|
|
2887
|
+ order.ClrWay = res2.Output.Setlinfo.ClrWay
|
|
2888
|
+ order.Creator = order.Creator
|
|
2889
|
+ order.Modify = roles.AdminUserId
|
|
2890
|
+ order.RequestLog = src_resquest
|
|
2891
|
+ setlDetail, _ := json.Marshal(res2.Output.Setldetail)
|
|
2892
|
+ detailStr := string(setlDetail)
|
|
2893
|
+ order.SetlDetail = detailStr
|
|
2894
|
+
|
|
2895
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
2896
|
+ "msg": "预结算成功",
|
|
2897
|
+ "order": order,
|
|
2898
|
+ "order_way": 2,
|
|
2899
|
+ })
|
|
2900
|
+ }
|
|
2901
|
+ }
|
|
2902
|
+ } else {
|
|
2903
|
+ if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
|
2904
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
2905
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
2906
|
+ return
|
|
2907
|
+ }
|
|
2908
|
+ if res.Infcode != 0 {
|
|
2909
|
+ errlog := &models.HisOrderError{
|
|
2910
|
+ UserOrgId: c.GetAdminUserInfo().CurrentOrgId,
|
|
2911
|
+ Ctime: time.Now().Unix(),
|
|
2912
|
+ Mtime: time.Now().Unix(),
|
|
2913
|
+ Number: chrg_bchno,
|
|
2914
|
+ ErrMsg: res.ErrMsg,
|
|
2915
|
+ Status: 1,
|
|
2916
|
+ PatientId: patient_id,
|
|
2917
|
+ RecordTime: time.Now().Unix(),
|
|
2918
|
+ Stage: 6,
|
|
2919
|
+ }
|
|
2920
|
+ service.CreateErrMsgLog(errlog)
|
2746
|
2921
|
c.ServeSuccessJSON(map[string]interface{}{
|
2747
|
|
- "msg": "预结算成功",
|
2748
|
|
- "order_way": 1,
|
|
2922
|
+ "failed_code": -10,
|
|
2923
|
+ "msg": res.ErrMsg,
|
2749
|
2924
|
})
|
2750
|
|
- } else {
|
2751
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAmountAccountException)
|
2752
|
2925
|
return
|
|
2926
|
+ } else {
|
|
2927
|
+ //order, _ := service.GetHisOrderTwo(adminUser.CurrentOrgId, chrg_bchno, id)
|
|
2928
|
+ order.OrderStatus = 1
|
|
2929
|
+ order.MdtrtId = res.Output.Setlinfo.MdtrtID
|
|
2930
|
+ order.SetlId = res.Output.Setlinfo.SetlID
|
|
2931
|
+ order.PsnNo = res.Output.Setlinfo.PsnNo
|
|
2932
|
+ order.PsnName = res.Output.Setlinfo.PsnName
|
|
2933
|
+ order.PsnCertType = res.Output.Setlinfo.PsnCertType
|
|
2934
|
+ order.Certno = res.Output.Setlinfo.Certno
|
|
2935
|
+ order.Gend = res.Output.Setlinfo.Gend
|
|
2936
|
+ order.Naty = res.Output.Setlinfo.Naty
|
|
2937
|
+ order.Age = res.Output.Setlinfo.Age
|
|
2938
|
+ order.Insutype = res.Output.Setlinfo.Insutype
|
|
2939
|
+ order.PsnType = res.Output.Setlinfo.PsnType
|
|
2940
|
+ order.CvlservFlag = res.Output.Setlinfo.CvlservFlag
|
|
2941
|
+ order.SetlTime = res.Output.Setlinfo.SetlTime
|
|
2942
|
+ order.MdtrtCertType = res.Output.Setlinfo.MdtrtCertType
|
|
2943
|
+ if res.Output.Setlinfo.MedType == "140104" {
|
|
2944
|
+
|
|
2945
|
+ order.MedType = "14"
|
|
2946
|
+
|
|
2947
|
+ } else {
|
|
2948
|
+
|
|
2949
|
+ order.MedType = res.Output.Setlinfo.MedType
|
|
2950
|
+
|
|
2951
|
+ }
|
|
2952
|
+ order.MedfeeSumamt = res.Output.Setlinfo.MedfeeSumamt
|
|
2953
|
+ order.FulamtOwnpayAmt = res.Output.Setlinfo.FulamtOwnpayAmt
|
|
2954
|
+ order.OverlmtSelfPay = res.Output.Setlinfo.OverlmtSelfpay
|
|
2955
|
+ order.PreselfpayAmt = res.Output.Setlinfo.PreselfpayAmt
|
|
2956
|
+ order.InscpScpAmt = res.Output.Setlinfo.InscpScpAmt
|
|
2957
|
+ order.ActPayDedc = res.Output.Setlinfo.ActPayDedc
|
|
2958
|
+ order.HifmiPay = res.Output.Setlinfo.HifmiPay
|
|
2959
|
+ order.HifpPay = res.Output.Setlinfo.HifpPay
|
|
2960
|
+ order.HifesPay = res.Output.Setlinfo.HifesPay
|
|
2961
|
+ order.HifobPay = res.Output.Setlinfo.HifobPay
|
|
2962
|
+ order.MafPay = res.Output.Setlinfo.MafPay
|
|
2963
|
+ order.OthPay = res.Output.Setlinfo.OthPay
|
|
2964
|
+ order.CvlservPay = res.Output.Setlinfo.CvlservPay
|
|
2965
|
+ order.PoolPropSelfpay = res.Output.Setlinfo.PoolPropSelfpay
|
|
2966
|
+ order.FundPaySumamt = res.Output.Setlinfo.FundPaySumamt
|
|
2967
|
+ order.PsnPartAmt = res.Output.Setlinfo.PsnPartAmt
|
|
2968
|
+ order.AcctPay = res.Output.Setlinfo.AcctPay
|
|
2969
|
+ order.PsnCashPay = res.Output.Setlinfo.PsnCashPay
|
|
2970
|
+ order.HospPartAmt = res.Output.Setlinfo.HospPartAmt
|
|
2971
|
+ order.Balc = res.Output.Setlinfo.Balc
|
|
2972
|
+ order.AcctMulaidPay = res.Output.Setlinfo.AcctMulaidPay
|
|
2973
|
+ order.MedinsSetlId = res.Output.Setlinfo.MedinsSetlID
|
|
2974
|
+ order.ClrOptins = res.Output.Setlinfo.ClrOptins
|
|
2975
|
+ order.ClrWay = res.Output.Setlinfo.ClrWay
|
|
2976
|
+ order.Creator = order.Creator
|
|
2977
|
+ order.Modify = roles.AdminUserId
|
|
2978
|
+ order.RequestLog = src_resquest
|
|
2979
|
+ setlDetail, _ := json.Marshal(res.Output.Setldetail)
|
|
2980
|
+ detailStr := string(setlDetail)
|
|
2981
|
+ order.SetlDetail = detailStr
|
|
2982
|
+ //err := service.UpdataOrderStatusTwo(chrg_bchno, c.GetAdminUserInfo().CurrentOrgId)
|
|
2983
|
+ if record.OutHospitalStatus == 1 && order.ID > 0 {
|
|
2984
|
+ err := service.UpDateOrder(order)
|
|
2985
|
+ if err == nil {
|
|
2986
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
2987
|
+ "msg": "预结算成功",
|
|
2988
|
+ "order_way": 1,
|
|
2989
|
+ })
|
|
2990
|
+ } else {
|
|
2991
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAmountAccountException)
|
|
2992
|
+ return
|
|
2993
|
+ }
|
|
2994
|
+ } else if record.OutHospitalStatus == 0 && order.ID == 0 {
|
|
2995
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
2996
|
+ "msg": "预结算成功",
|
|
2997
|
+ "order": order,
|
|
2998
|
+ "order_way": 2,
|
|
2999
|
+ })
|
|
3000
|
+ }
|
2753
|
3001
|
}
|
2754
|
|
- } else if record.OutHospitalStatus == 0 && order.ID == 0 {
|
2755
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
2756
|
|
- "msg": "预结算成功",
|
2757
|
|
- "order": order,
|
2758
|
|
- "order_way": 2,
|
2759
|
|
- })
|
2760
|
3002
|
}
|
2761
|
3003
|
}
|
2762
|
3004
|
|
|
@@ -2875,7 +3117,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
2875
|
3117
|
config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
|
2876
|
3118
|
if config.IsOpen == 1 { //对接了医保,走医保流程
|
2877
|
3119
|
|
2878
|
|
- var pagesize int = 100
|
|
3120
|
+ var pagesize int = 10
|
2879
|
3121
|
var start int = 1
|
2880
|
3122
|
var stop int
|
2881
|
3123
|
var pagecount int
|
|
@@ -3018,6 +3260,10 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
3018
|
3260
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
3019
|
3261
|
result_byte, _ := json.Marshal(respJSON)
|
3020
|
3262
|
result = string(result_byte)
|
|
3263
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
3264
|
+ result, requestLog = service.Jxyb2301(record.PsnNo, record.Number, customs[start-1:stop], data["med_type"].(string), chrg_bchno, department.Number, strconv.FormatInt(department.ID, 10), strconv.FormatInt(roles.AdminUserId, 10), miConfig.SecretKey, miConfig.OrgName, miConfig.Code, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
3265
|
+ saveLog(result, requestLog, "2301", "上传明细")
|
|
3266
|
+
|
3021
|
3267
|
} else {
|
3022
|
3268
|
result, requestLog = service.ZHGdyb2301(record.PsnNo, record.Number, customs[start-1:stop], chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(department.ID, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["med_type"].(string), doctor_info.UserName, doctor_info.DoctorNumber)
|
3023
|
3269
|
saveLog(result, requestLog, "2301", "上传明细")
|
|
@@ -3263,6 +3509,11 @@ func (c *ZHHisApiController) ZHRefund() {
|
3263
|
3509
|
//saveLog(result, requestLog, "2404", "入院登记撤销")
|
3264
|
3510
|
saveLog(result, requestLog, "2305", "退费")
|
3265
|
3511
|
|
|
3512
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
3513
|
+
|
|
3514
|
+ result, requestLog := service.Jxyb2305(order.PsnNo, order.MdtrtId, order.SetlId, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
3515
|
+ saveLog(result, requestLog, "2305", "退费")
|
|
3516
|
+
|
3266
|
3517
|
} else {
|
3267
|
3518
|
result, requestLog := service.Gdyb2305(order.PsnNo, order.MdtrtId, order.SetlId, miConfig.OrgName, roles.UserName, miConfig.SecretKey, miConfig.Code, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs)
|
3268
|
3519
|
saveLog(result, requestLog, "2305", "退费")
|
|
@@ -3414,6 +3665,9 @@ func (c *ZHHisApiController) ZHRefundDetail() {
|
3414
|
3665
|
result = string(result_byte)
|
3415
|
3666
|
saveLog(result, requestLog, "2302", "日结退明细")
|
3416
|
3667
|
|
|
3668
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
3669
|
+ result, requestLog := service.Jxyb2302(record.PsnNo, record.Number, 1, item.FeedetlSn, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
3670
|
+ saveLog(result, requestLog, "2302", "日结退明细")
|
3417
|
3671
|
} else {
|
3418
|
3672
|
result, requestLog := service.Gdyb2302(record.PsnNo, record.Number, miConfig.OrgName, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, miConfig.Code, item.FeedetlSn, 1)
|
3419
|
3673
|
saveLog(result, requestLog, "2302", "日结退明细")
|
|
@@ -3510,6 +3764,10 @@ func (c *ZHHisApiController) ZHRefundDetail() {
|
3510
|
3764
|
result = string(result_byte)
|
3511
|
3765
|
//saveLog(result, requestLog, "2302", "日结退明细")
|
3512
|
3766
|
|
|
3767
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
3768
|
+ result, requestLog = service.Jxyb2302(record.PsnNo, record.Number, 0, "0000", miConfig.SecretKey, miConfig.OrgName, miConfig.Code, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
3769
|
+ saveLog(result, requestLog, "2302", "月结退明细")
|
|
3770
|
+
|
3513
|
3771
|
} else {
|
3514
|
3772
|
result, requestLog = service.Gdyb2302(record.PsnNo, record.Number, miConfig.OrgName, roles.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, miConfig.Code, "0000", 0)
|
3515
|
3773
|
saveLog(result, requestLog, "2302", "月结退明细")
|
|
@@ -3566,7 +3824,6 @@ func (c *ZHHisApiController) ZHRefundDetail() {
|
3566
|
3824
|
}
|
3567
|
3825
|
|
3568
|
3826
|
}
|
3569
|
|
-
|
3570
|
3827
|
func (this *ZHHisApiController) GetZHOutHospitalUnCheck() {
|
3571
|
3828
|
id, _ := this.GetInt64("id")
|
3572
|
3829
|
admin_user_id, _ := this.GetInt64("admin_user_id")
|
|
@@ -3615,6 +3872,11 @@ func (this *ZHHisApiController) GetZHOutHospitalUnCheck() {
|
3615
|
3872
|
result_byte, _ := json.Marshal(respJSON)
|
3616
|
3873
|
result = string(result_byte)
|
3617
|
3874
|
|
|
3875
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
3876
|
+
|
|
3877
|
+ result, requestLog = service.Jxyb2405(record.Number, record.PsnNo, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
3878
|
+ saveLog(result, requestLog, "2405", "出院登记撤销")
|
|
3879
|
+
|
3618
|
3880
|
} else {
|
3619
|
3881
|
result, requestLog = service.ZHGdyb2405(record.Number, record.PsnNo, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs)
|
3620
|
3882
|
saveLog(result, requestLog, "2405", "出院登记撤销")
|
|
@@ -3716,6 +3978,9 @@ func (this *ZHHisApiController) GetZHInHospitalUnCheck() {
|
3716
|
3978
|
result = string(result_byte)
|
3717
|
3979
|
saveLog(result, requestLog, "2302", "月结退明细")
|
3718
|
3980
|
|
|
3981
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
3982
|
+ result, requestLog = service.Jxyb2302(record.PsnNo, record.Number, 0, "0000", miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
3983
|
+ saveLog(result, requestLog, "2302", "月结退明细")
|
3719
|
3984
|
} else {
|
3720
|
3985
|
result, requestLog = service.Gdyb2302(record.PsnNo, record.Number, miConfig.OrgName, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, miConfig.Code, "0000", 0)
|
3721
|
3986
|
saveLog(result, requestLog, "2302", "月结退明细")
|
|
@@ -3790,6 +4055,10 @@ func (this *ZHHisApiController) GetZHInHospitalUnCheck() {
|
3790
|
4055
|
result_byte, _ := json.Marshal(respJSON)
|
3791
|
4056
|
result = string(result_byte)
|
3792
|
4057
|
|
|
4058
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
4059
|
+ result, requestLog = service.Jxyb2404(record.Number, record.PsnNo, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
4060
|
+ saveLog(result, requestLog, "2404", "入院登记撤销")
|
|
4061
|
+
|
3793
|
4062
|
} else {
|
3794
|
4063
|
result, requestLog = service.ZHGdyb2404(record.Number, record.PsnNo, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs)
|
3795
|
4064
|
saveLog(result, requestLog, "2404", "入院登记撤销")
|
|
@@ -3881,6 +4150,10 @@ func (this *ZHHisApiController) GetZHInHospitalUnCheck() {
|
3881
|
4150
|
result_byte, _ := json.Marshal(respJSON)
|
3882
|
4151
|
result = string(result_byte)
|
3883
|
4152
|
|
|
4153
|
+ } else if miConfig.MdtrtareaAdmvs == "360399" {
|
|
4154
|
+ result, requestLog = service.Jxyb2404(record.Number, record.PsnNo, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.Url, "", miConfig.AccessKey)
|
|
4155
|
+ saveLog(result, requestLog, "2404", "入院登记撤销")
|
|
4156
|
+
|
3884
|
4157
|
} else {
|
3885
|
4158
|
result, requestLog = service.ZHGdyb2404(record.Number, record.PsnNo, miConfig.SecretKey, miConfig.OrgName, miConfig.Code, role.UserName, record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs)
|
3886
|
4159
|
saveLog(result, requestLog, "2404", "入院登记撤销")
|