|
@@ -34,6 +34,8 @@ import (
|
34
|
34
|
"syscall"
|
35
|
35
|
"time"
|
36
|
36
|
"unsafe"
|
|
37
|
+ "github.com/go-ole/go-ole"
|
|
38
|
+
|
37
|
39
|
)
|
38
|
40
|
|
39
|
41
|
type HisApiController struct {
|
|
@@ -106,7 +108,7 @@ func HisManagerApiRegistRouters() {
|
106
|
108
|
|
107
|
109
|
beego.Router("/api/readele", &HisApiController{}, "get:ReadEleToken")
|
108
|
110
|
|
109
|
|
- beego.Router("/api/2505", &HisApiController{}, "get:Get2505")
|
|
111
|
+ //beego.Router("/api/2505", &HisApiController{}, "get:Get2505")
|
110
|
112
|
|
111
|
113
|
beego.Router("/api/4201A", &HisApiController{}, "get:Get4201A")
|
112
|
114
|
beego.Router("/api/4202", &HisApiController{}, "get:Get4202")
|
|
@@ -174,7 +176,7 @@ func HisManagerApiRegistRouters() {
|
174
|
176
|
|
175
|
177
|
beego.Router("/api/2406", &HisApiController{}, "get:Get2406")
|
176
|
178
|
|
177
|
|
- beego.Router("/api/2503", &HisApiController{}, "get:Get2503")
|
|
179
|
+ //beego.Router("/api/2503", &HisApiController{}, "get:Get2503")
|
178
|
180
|
|
179
|
181
|
beego.Router("/api/1318", &HisApiController{}, "get:Get1318")
|
180
|
182
|
|
|
@@ -5378,7 +5380,7 @@ func SaleStock(org_id int64, pre models.HisPrescription, drug *models.DrugFlow,
|
5378
|
5380
|
struct3505.Bchno = "---"
|
5379
|
5381
|
struct3505.FixmedinsCode = miConfig.Code
|
5380
|
5382
|
struct3505.Code = miConfig.Code
|
5381
|
|
- struct3505.FinlTrnsPric = drug.HisDoctorAdviceInfo.Price
|
|
5383
|
+ struct3505.FinlTrnsPric = strconv.FormatFloat(drug.HisDoctorAdviceInfo.Price, 'f', -1, 64)
|
5382
|
5384
|
|
5383
|
5385
|
roles, _ := service.GetAdminUserInfoByID(org_id, pre.Creator)
|
5384
|
5386
|
struct3505.PrscDrName = roles.UserName
|
|
@@ -5483,7 +5485,6 @@ func SaleStock(org_id int64, pre models.HisPrescription, drug *models.DrugFlow,
|
5483
|
5485
|
} else {
|
5484
|
5486
|
struct3505.TrdnFlag = "1"
|
5485
|
5487
|
}
|
5486
|
|
-
|
5487
|
5488
|
if drug.HisDoctorAdviceInfo.ZeroFlag == 1 {
|
5488
|
5489
|
struct3505.TrdnFlag = "1"
|
5489
|
5490
|
}
|
|
@@ -5493,6 +5494,22 @@ func SaleStock(org_id int64, pre models.HisPrescription, drug *models.DrugFlow,
|
5493
|
5494
|
|
5494
|
5495
|
}
|
5495
|
5496
|
|
|
5497
|
+
|
|
5498
|
+ if org_id == 10610 || org_id == 10278 || org_id == 10138 || org_id == 10537{
|
|
5499
|
+
|
|
5500
|
+ if drug.HisDoctorAdviceInfo.BaseDrugLib.IsZeroFlag == 1 {
|
|
5501
|
+ struct3505.TrdnFlag = "1"
|
|
5502
|
+ }
|
|
5503
|
+
|
|
5504
|
+ if drug.HisDoctorAdviceInfo.BaseDrugLib.IsZeroFlag == 2 {
|
|
5505
|
+ struct3505.TrdnFlag = "0"
|
|
5506
|
+
|
|
5507
|
+ }
|
|
5508
|
+
|
|
5509
|
+ }
|
|
5510
|
+
|
|
5511
|
+
|
|
5512
|
+
|
5496
|
5513
|
struct3505.RtalDocno = order.Number
|
5497
|
5514
|
struct3505.PsnCertType = "01"
|
5498
|
5515
|
|
|
@@ -9118,7 +9135,7 @@ func (c *HisApiController) Get3103() {
|
9118
|
9135
|
curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
|
9119
|
9136
|
result, requestLog := service.Gdyb3103(miConfig.OrgName, curRoles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, warm_type, warm_ids, fk_state, desc)
|
9120
|
9137
|
saveLog(result, requestLog, "3103", "反馈")
|
9121
|
|
- var res2 ResultSix
|
|
9138
|
+ var res2 ResultSix3103
|
9122
|
9139
|
var respJSON2 map[string]interface{}
|
9123
|
9140
|
if err := json.Unmarshal([]byte(string(result)), &respJSON2); err != nil {
|
9124
|
9141
|
utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
@@ -9146,13 +9163,7 @@ func (c *HisApiController) Get3103() {
|
9146
|
9163
|
}
|
9147
|
9164
|
}
|
9148
|
9165
|
|
9149
|
|
-func (c *HisApiController) Get3103() {
|
9150
|
|
- admin_user_id, _ := c.GetInt64("admin_user_id")
|
9151
|
|
- miConfig, _ := service.FindMedicalInsuranceInfo(10375)
|
9152
|
|
- curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
|
9153
|
9166
|
|
9154
|
|
- service.Gdyb2505("45000000000008100145868008", curRoles.UserName, miConfig.OrgName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, "2024-01-12 09:00:00", "2026-12-31 23:00:00", admin_user_id)
|
9155
|
|
-}
|
9156
|
9167
|
|
9157
|
9168
|
func (c *HisApiController) Get4201A() {
|
9158
|
9169
|
order_id, _ := c.GetInt64("order_id")
|
|
@@ -12029,7 +12040,7 @@ func Check3102(c *HisApiController, patient_id int64, his_patient_id int64, admi
|
12029
|
12040
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12030
|
12041
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12031
|
12042
|
order.LongDrordFlag = "0"
|
12032
|
|
- order.HilistType = "1"
|
|
12043
|
+ order.HilistType = "101"
|
12033
|
12044
|
order.ChrgType = "1"
|
12034
|
12045
|
order.DrordBhvr = "-"
|
12035
|
12046
|
order.HilistCode = subItem.BaseDrugLib.MedicalInsuranceNumber
|
|
@@ -12062,7 +12073,7 @@ func Check3102(c *HisApiController, patient_id int64, his_patient_id int64, admi
|
12062
|
12073
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12063
|
12074
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12064
|
12075
|
order.LongDrordFlag = "0"
|
12065
|
|
- order.HilistType = "1"
|
|
12076
|
+ order.HilistType = "201"
|
12066
|
12077
|
order.ChrgType = "1"
|
12067
|
12078
|
order.DrordBhvr = "-"
|
12068
|
12079
|
order.HilistCode = subItem.HisProject.MedicalCode
|
|
@@ -12096,7 +12107,7 @@ func Check3102(c *HisApiController, patient_id int64, his_patient_id int64, admi
|
12096
|
12107
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12097
|
12108
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12098
|
12109
|
order.LongDrordFlag = "0"
|
12099
|
|
- order.HilistType = "1"
|
|
12110
|
+ order.HilistType = "301"
|
12100
|
12111
|
order.ChrgType = "1"
|
12101
|
12112
|
order.DrordBhvr = "0"
|
12102
|
12113
|
order.HilistCode = subItem.GoodInfo.MedicalInsuranceNumber
|
|
@@ -12325,7 +12336,7 @@ func Checkgd3101ForOne(c *HisApiController, patient_id int64, his models.VMHisPa
|
12325
|
12336
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12326
|
12337
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12327
|
12338
|
order.LongDrordFlag = "0"
|
12328
|
|
- order.HilistType = "1"
|
|
12339
|
+ order.HilistType = "101"
|
12329
|
12340
|
order.ChrgType = "1"
|
12330
|
12341
|
order.DrordBhvr = "0"
|
12331
|
12342
|
order.HilistCode = subItem.BaseDrugLib.MedicalInsuranceNumber
|
|
@@ -12359,7 +12370,7 @@ func Checkgd3101ForOne(c *HisApiController, patient_id int64, his models.VMHisPa
|
12359
|
12370
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12360
|
12371
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12361
|
12372
|
order.LongDrordFlag = "0"
|
12362
|
|
- order.HilistType = "1"
|
|
12373
|
+ order.HilistType = "201"
|
12363
|
12374
|
order.ChrgType = "1"
|
12364
|
12375
|
order.DrordBhvr = "0"
|
12365
|
12376
|
order.HilistCode = subItem.HisProject.MedicalCode
|
|
@@ -12393,7 +12404,7 @@ func Checkgd3101ForOne(c *HisApiController, patient_id int64, his models.VMHisPa
|
12393
|
12404
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12394
|
12405
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12395
|
12406
|
order.LongDrordFlag = "0"
|
12396
|
|
- order.HilistType = "1"
|
|
12407
|
+ order.HilistType = "301"
|
12397
|
12408
|
order.ChrgType = "1"
|
12398
|
12409
|
order.DrordBhvr = "0"
|
12399
|
12410
|
order.HilistCode = subItem.GoodInfo.MedicalInsuranceNumber
|
|
@@ -12628,7 +12639,7 @@ func Checkgd3101(c *HisApiController, patient_id int64, his_patient_id int64, ad
|
12628
|
12639
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12629
|
12640
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12630
|
12641
|
order.LongDrordFlag = "0"
|
12631
|
|
- order.HilistType = "1"
|
|
12642
|
+ order.HilistType = "101"
|
12632
|
12643
|
order.ChrgType = "1"
|
12633
|
12644
|
order.DrordBhvr = "0"
|
12634
|
12645
|
order.HilistCode = subItem.BaseDrugLib.MedicalInsuranceNumber
|
|
@@ -12661,7 +12672,7 @@ func Checkgd3101(c *HisApiController, patient_id int64, his_patient_id int64, ad
|
12661
|
12672
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12662
|
12673
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12663
|
12674
|
order.LongDrordFlag = "0"
|
12664
|
|
- order.HilistType = "1"
|
|
12675
|
+ order.HilistType = "201"
|
12665
|
12676
|
order.ChrgType = "1"
|
12666
|
12677
|
order.DrordBhvr = "0"
|
12667
|
12678
|
order.HilistCode = subItem.HisProject.MedicalCode
|
|
@@ -12695,7 +12706,7 @@ func Checkgd3101(c *HisApiController, patient_id int64, his_patient_id int64, ad
|
12695
|
12706
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
12696
|
12707
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
12697
|
12708
|
order.LongDrordFlag = "0"
|
12698
|
|
- order.HilistType = "1"
|
|
12709
|
+ order.HilistType = "301"
|
12699
|
12710
|
order.ChrgType = "1"
|
12700
|
12711
|
order.DrordBhvr = "0"
|
12701
|
12712
|
order.HilistCode = subItem.GoodInfo.MedicalInsuranceNumber
|
|
@@ -13023,8 +13034,8 @@ func Checkgd3102(c *HisApiController, patient_id int64, his_patient_id int64, ad
|
13023
|
13034
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
13024
|
13035
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
13025
|
13036
|
order.LongDrordFlag = "0"
|
13026
|
|
- order.HilistType = "1"
|
13027
|
|
- order.ChrgType = "1"
|
|
13037
|
+ order.HilistType = "101"
|
|
13038
|
+ order.ChrgType = "01"
|
13028
|
13039
|
order.DrordBhvr = "0"
|
13029
|
13040
|
order.HilistCode = subItem.BaseDrugLib.MedicalInsuranceNumber
|
13030
|
13041
|
order.HosplistName = subItem.BaseDrugLib.DrugName
|
|
@@ -13057,8 +13068,8 @@ func Checkgd3102(c *HisApiController, patient_id int64, his_patient_id int64, ad
|
13057
|
13068
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
13058
|
13069
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
13059
|
13070
|
order.LongDrordFlag = "0"
|
13060
|
|
- order.HilistType = "1"
|
13061
|
|
- order.ChrgType = "1"
|
|
13071
|
+ order.HilistType = "201"
|
|
13072
|
+ order.ChrgType = "05"
|
13062
|
13073
|
order.DrordBhvr = "0"
|
13063
|
13074
|
order.HilistCode = subItem.HisProject.MedicalCode
|
13064
|
13075
|
order.HosplistName = subItem.HisProject.ProjectName
|
|
@@ -13091,8 +13102,8 @@ func Checkgd3102(c *HisApiController, patient_id int64, his_patient_id int64, ad
|
13091
|
13102
|
order.RxID = strconv.FormatInt(item.ID, 10)
|
13092
|
13103
|
order.Rxno = strconv.FormatInt(item.ID, 10)
|
13093
|
13104
|
order.LongDrordFlag = "0"
|
13094
|
|
- order.HilistType = "1"
|
13095
|
|
- order.ChrgType = "1"
|
|
13105
|
+ order.HilistType = "301"
|
|
13106
|
+ order.ChrgType = "08"
|
13096
|
13107
|
order.DrordBhvr = "0"
|
13097
|
13108
|
order.HilistCode = subItem.GoodInfo.MedicalInsuranceNumber
|
13098
|
13109
|
order.HosplistName = subItem.GoodInfo.GoodName
|
|
@@ -14830,11 +14841,13 @@ func (c *HisApiController) ReadCard() {
|
14830
|
14841
|
bas := strings.Split(basStr, "|")
|
14831
|
14842
|
basNumber := bas[1]
|
14832
|
14843
|
fmt.Println(basNumber)
|
|
14844
|
+ card := bas[2]
|
|
14845
|
+
|
14833
|
14846
|
card_sn := bas[3]
|
14834
|
14847
|
fmt.Println(card_sn)
|
14835
|
14848
|
patient, _ := service.GetPatientByNumber(basNumber, c.GetAdminUserInfo().CurrentOrgId)
|
14836
|
14849
|
|
14837
|
|
- result, _ := service.Jxyb1101(basNumber, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, card_sn, "1", miConfig.Url, miConfig.AccessKey, patient.Name)
|
|
14850
|
+ result, _ := service.Jxyb11012(basNumber, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, card_sn, "1", miConfig.Url, miConfig.AccessKey, patient.Name,card)
|
14838
|
14851
|
|
14839
|
14852
|
//result := service.Jxyb1101(basNumber, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, card_sn, certificates)
|
14840
|
14853
|
var dat map[string]interface{}
|
|
@@ -15093,36 +15106,26 @@ func (c *HisApiController) ReadCard() {
|
15093
|
15106
|
}
|
15094
|
15107
|
|
15095
|
15108
|
} else if miConfig.MdtrtareaAdmvs == "360100" {
|
|
15109
|
+ fmt.Println(initFlag)
|
|
15110
|
+ fmt.Println("initFlag")
|
15096
|
15111
|
|
15097
|
|
- basStr := c.GetBasBaseInfo22222()
|
15098
|
|
- fmt.Println(basStr)
|
15099
|
|
-
|
|
15112
|
+ if initFlag == 0 {
|
|
15113
|
+ c.TestGetJiangXiBasBaseInittwo()
|
|
15114
|
+ }
|
|
15115
|
+ basStr := c.GetBasBaseInfo()
|
15100
|
15116
|
if len(basStr) == 0 {
|
15101
|
15117
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeReadCardException)
|
15102
|
15118
|
return
|
15103
|
15119
|
}
|
15104
|
15120
|
fmt.Println(basStr)
|
15105
|
15121
|
bas := strings.Split(basStr, "|")
|
15106
|
|
- basNumber := bas[2] //卡号
|
15107
|
|
- card_sn := bas[3] //
|
15108
|
|
-
|
15109
|
|
- id_card_No := bas[1] //卡号
|
15110
|
|
-
|
|
15122
|
+ basNumber := bas[1]
|
15111
|
15123
|
fmt.Println(basNumber)
|
|
15124
|
+ card_sn := bas[3]
|
15112
|
15125
|
fmt.Println(card_sn)
|
15113
|
|
- fmt.Println(id_card_No)
|
15114
|
|
-
|
15115
|
|
- var patient service.Patients
|
15116
|
|
- if len(id_card_No) == 0 {
|
15117
|
|
-
|
15118
|
|
- patient, _ = service.GetPatientByNumber(basNumber, c.GetAdminUserInfo().CurrentOrgId)
|
15119
|
|
-
|
15120
|
|
- } else {
|
15121
|
|
- patient, _ = service.GetPatientByNumber(id_card_No, c.GetAdminUserInfo().CurrentOrgId)
|
15122
|
|
-
|
15123
|
|
- }
|
|
15126
|
+ patient, _ := service.GetPatientByNumber(basNumber, c.GetAdminUserInfo().CurrentOrgId)
|
15124
|
15127
|
|
15125
|
|
- result, _ := service.Jxyb1101bycard(basNumber, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, card_sn, "1", miConfig.Url, miConfig.AccessKey, patient.Name, patient.IdCardNo)
|
|
15128
|
+ result, _ := service.Jxyb1101(basNumber, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, card_sn, "1", miConfig.Url, miConfig.AccessKey, patient.Name)
|
15126
|
15129
|
|
15127
|
15130
|
//result := service.Jxyb1101(basNumber, miConfig.OrgName, roles.UserName, miConfig.Code, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, card_sn, certificates)
|
15128
|
15131
|
var dat map[string]interface{}
|
|
@@ -15141,17 +15144,7 @@ func (c *HisApiController) ReadCard() {
|
15141
|
15144
|
}
|
15142
|
15145
|
|
15143
|
15146
|
if res.Infcode == 0 {
|
15144
|
|
- var pateint2 service.Patients
|
15145
|
|
- var err error
|
15146
|
|
- if len(id_card_No) == 0 {
|
15147
|
|
- pateint2, err = service.GetPatientByNumber(basNumber, c.GetAdminUserInfo().CurrentOrgId)
|
15148
|
|
-
|
15149
|
|
- } else {
|
15150
|
|
- pateint2, err = service.GetPatientByNumber(id_card_No, c.GetAdminUserInfo().CurrentOrgId)
|
15151
|
|
-
|
15152
|
|
- //patient, _ = service.GetPatientByNumber(id_card_No, c.GetAdminUserInfo().CurrentOrgId)
|
15153
|
|
-
|
15154
|
|
- }
|
|
15147
|
+ patient, err := service.GetPatientByNumber(basNumber, c.GetAdminUserInfo().CurrentOrgId)
|
15155
|
15148
|
if err == gorm.ErrRecordNotFound {
|
15156
|
15149
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeNoPateintException)
|
15157
|
15150
|
return
|
|
@@ -15214,7 +15207,7 @@ func (c *HisApiController) ReadCard() {
|
15214
|
15207
|
psn := &models.HisPsn{
|
15215
|
15208
|
PsnNo: res.Output.Baseinfo.PsnNo,
|
15216
|
15209
|
|
15217
|
|
- PatientId: pateint2.ID,
|
|
15210
|
+ PatientId: patient.ID,
|
15218
|
15211
|
Certno: res.Output.Baseinfo.Certno,
|
15219
|
15212
|
|
15220
|
15213
|
Gend: res.Output.Baseinfo.Gend,
|
|
@@ -15241,6 +15234,8 @@ func (c *HisApiController) ReadCard() {
|
15241
|
15234
|
return
|
15242
|
15235
|
}
|
15243
|
15236
|
|
|
15237
|
+
|
|
15238
|
+
|
15244
|
15239
|
} else if miConfig.MdtrtareaAdmvs == "430800" {
|
15245
|
15240
|
fmt.Println(initFlag)
|
15246
|
15241
|
fmt.Println("initFlag")
|
|
@@ -24253,6 +24248,18 @@ type ResultSix struct {
|
24253
|
24248
|
WarnMsg interface{} `json:"warn_msg"`
|
24254
|
24249
|
}
|
24255
|
24250
|
|
|
24251
|
+type ResultSix3103 struct {
|
|
24252
|
+ Cainfo interface{} `json:"cainfo"`
|
|
24253
|
+ ErrMsg string `json:"err_msg"`
|
|
24254
|
+ InfRefmsgid string `json:"inf_refmsgid"`
|
|
24255
|
+ Infcode int64 `json:"infcode"`
|
|
24256
|
+
|
|
24257
|
+ RefmsgTime string `json:"refmsg_time"`
|
|
24258
|
+ RespondTime string `json:"respond_time"`
|
|
24259
|
+ Signtype interface{} `json:"signtype"`
|
|
24260
|
+ WarnMsg interface{} `json:"warn_msg"`
|
|
24261
|
+}
|
|
24262
|
+
|
24256
|
24263
|
type FJ3507Result struct {
|
24257
|
24264
|
Cainfo interface{} `json:"cainfo"`
|
24258
|
24265
|
ErrMsg string `json:"err_msg"`
|
|
@@ -25788,6 +25795,8 @@ func (c *HisApiController) GetRegisterInfo() {
|
25788
|
25795
|
social_type, _ := c.GetInt64("social_type")
|
25789
|
25796
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
25790
|
25797
|
insuplc_admdvs := c.GetString("insuplc_admdvs")
|
|
25798
|
+ insuplc_admdvs_tt := c.GetString("insuplc_admdvs")
|
|
25799
|
+
|
25791
|
25800
|
mdtrt_type := c.GetString("mdtrt_type")
|
25792
|
25801
|
if id_card_type == 5 {
|
25793
|
25802
|
id_card_type = 4
|
|
@@ -27519,7 +27528,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
27519
|
27528
|
}
|
27520
|
27529
|
var result string
|
27521
|
27530
|
var requestLog string
|
27522
|
|
- if miConfig.Code == "H44030501364" || miConfig.Code == "H44030903432" || miConfig.Code == "H44030500255" {
|
|
27531
|
+ if miConfig.Code == "H44030501364" || miConfig.Code == "H44030903432" || miConfig.Code == "H44030500255" || miConfig.Code == "H44082500483" {
|
27523
|
27532
|
var hisPrescription []*models.HisPrescription
|
27524
|
27533
|
res3101 := Checkgd3101ForOne(c, patient.ID, his, admin_user_id, "1", record_time, hisPrescription, department)
|
27525
|
27534
|
if res3101.Infcode == 0 {
|
|
@@ -27529,7 +27538,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
27529
|
27538
|
"failed_code": -10,
|
27530
|
27539
|
"failed_type": 100,
|
27531
|
27540
|
"warm_type": 1,
|
27532
|
|
- "msg": res3101.Output.Result,
|
|
27541
|
+ "msg": res3101,
|
27533
|
27542
|
})
|
27534
|
27543
|
return
|
27535
|
27544
|
} else {
|
|
@@ -27648,17 +27657,21 @@ func (c *HisApiController) GetRegisterInfo() {
|
27648
|
27657
|
|
27649
|
27658
|
for _, item := range rf {
|
27650
|
27659
|
|
27651
|
|
- utils.ErrorLog("解析失败:%v", item.Insutype)
|
27652
|
|
- utils.ErrorLog("解析失败:%v", insutype)
|
|
27660
|
+
|
27653
|
27661
|
|
27654
|
27662
|
if item.Insutype == insutype {
|
27655
|
27663
|
insuplc_admdvs_temp = item.InsuplcAdmdvs
|
27656
|
|
- utils.ErrorLog("解析失败:%v", insuplc_admdvs_temp)
|
27657
|
27664
|
|
27658
|
27665
|
}
|
27659
|
27666
|
|
27660
|
27667
|
}
|
27661
|
27668
|
|
|
27669
|
+ if len(insuplc_admdvs_tt) > 0{
|
|
27670
|
+ insuplc_admdvs_temp = insuplc_admdvs_tt
|
|
27671
|
+
|
|
27672
|
+
|
|
27673
|
+ }
|
|
27674
|
+
|
27662
|
27675
|
result, requestLog = service.Gdyb2201A(psn_info.PsnNo, insutype, IdCardNo, miConfig.OrgName, roles.UserName, ipt_otp_no, department.Name, miConfig.Code, department.Number, doctor_info.DoctorNumber, insuplc_admdvs_temp, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type, doctor_info.UserName, record_time_two, psn_info.VerifyNumber, admin_user_id)
|
27663
|
27676
|
saveLog(result, requestLog, "2201A", "挂号")
|
27664
|
27677
|
}
|
|
@@ -31117,7 +31130,7 @@ func (c *HisApiController) GetUploadInfo() {
|
31117
|
31130
|
}
|
31118
|
31131
|
result2, src_resquest = service.Gdyb2207(his.PsnNo, his.Number, chrg_bchno, cert_no, insutype, allTotal, miConfig.OrgName, roles.UserName, miConfig.Code, his.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, med_type, his.IdCardType, tempOrder.FulamtOwnpayAmt, tempOrder.OverlmtSelfPay, tempOrder.PreselfpayAmt, tempOrder.InscpScpAmt, his.IdType, acct_used_flag, "", admin_user_id)
|
31119
|
31132
|
} else {
|
31120
|
|
- if miConfig.Code == "H44030501364" || miConfig.Code == "H44030903432" || miConfig.Code == "H44030500255" {
|
|
31133
|
+ if miConfig.Code == "H44030501364" || miConfig.Code == "H44030903432" || miConfig.Code == "H44030500255" || miConfig.Code == "H44082500483" {
|
31121
|
31134
|
result3101 := Checkgd3102(c, id, his_patient_id, admin_user_id, "7", tempOrder.ID)
|
31122
|
31135
|
if result3101.Infcode == 0 {
|
31123
|
31136
|
if len(result3101.Output.Result) > 0 {
|
|
@@ -31125,7 +31138,7 @@ func (c *HisApiController) GetUploadInfo() {
|
31125
|
31138
|
"failed_code": -10,
|
31126
|
31139
|
"failed_type": 100,
|
31127
|
31140
|
"warm_type": 2,
|
31128
|
|
- "msg": result3101.Output.Result,
|
|
31141
|
+ "msg": result3101,
|
31129
|
31142
|
})
|
31130
|
31143
|
return
|
31131
|
31144
|
}
|
|
@@ -33108,7 +33121,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
33108
|
33121
|
res.Infcode = infocode
|
33109
|
33122
|
|
33110
|
33123
|
} else {
|
33111
|
|
- if miConfig.Code == "H44030903432" || miConfig.Code == "H44030501364" || miConfig.Code == "H44030500255" {
|
|
33124
|
+ if miConfig.Code == "H44030903432" || miConfig.Code == "H44030501364" || miConfig.Code == "H44030500255" || miConfig.Code == "H44082500483"{
|
33112
|
33125
|
result3101 := Checkgd3101(c, id, his_patient_id, admin_user_id, "2", record_time, prescriptions)
|
33113
|
33126
|
if result3101.Infcode == 0 {
|
33114
|
33127
|
if len(result3101.Output.Result) > 0 {
|
|
@@ -33116,7 +33129,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
33116
|
33129
|
"failed_code": -10,
|
33117
|
33130
|
"failed_type": 100,
|
33118
|
33131
|
"warm_type": 1,
|
33119
|
|
- "msg": result3101.Output.Result,
|
|
33132
|
+ "msg": result3101,
|
33120
|
33133
|
})
|
33121
|
33134
|
return
|
33122
|
33135
|
} else {
|
|
@@ -34578,7 +34591,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
34578
|
34591
|
|
34579
|
34592
|
psn_info, _ := service.GetPsnByPatientId(his.PatientId)
|
34580
|
34593
|
allTotal = fmt.Sprintf("%.2f", total_two)
|
34581
|
|
- if miConfig.Code == "H44030501364" || miConfig.Code == "H44030903432" || miConfig.Code == "H44030500255" {
|
|
34594
|
+ if miConfig.Code == "H44030501364" || miConfig.Code == "H44030903432" || miConfig.Code == "H44030500255" || miConfig.Code == "H44082500483" {
|
34582
|
34595
|
|
34583
|
34596
|
result3101 := Checkgd3102(c, id, his_patient_id, admin_user_id, "6", order.ID)
|
34584
|
34597
|
if result3101.Infcode == 0 {
|
|
@@ -34587,7 +34600,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
34587
|
34600
|
"failed_code": -10,
|
34588
|
34601
|
"failed_type": 100,
|
34589
|
34602
|
"warm_type": 2,
|
34590
|
|
- "msg": result3101.Output.Result,
|
|
34603
|
+ "msg": result3101,
|
34591
|
34604
|
})
|
34592
|
34605
|
return
|
34593
|
34606
|
} else {
|
|
@@ -36738,6 +36751,7 @@ func (c *HisApiController) RefundNumber() {
|
36738
|
36751
|
"msg": "退号成功",
|
36739
|
36752
|
})
|
36740
|
36753
|
service.UpdataRegStatusTwo(his_patient_id, recordDateTime, adminUser.CurrentOrgId)
|
|
36754
|
+ //service.UpdataOrderStatusTen(his., recordDateTime, adminUser.CurrentOrgId)
|
36741
|
36755
|
|
36742
|
36756
|
} else {
|
36743
|
36757
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
@@ -37910,7 +37924,7 @@ func (c *HisApiController) GetCheckAccount() {
|
37910
|
37924
|
baseParams.RequestUrl = miConfig.Url
|
37911
|
37925
|
|
37912
|
37926
|
if clr_type == "9903" {
|
37913
|
|
- clr_type = "9994"
|
|
37927
|
+ clr_type = "9901"
|
37914
|
37928
|
}
|
37915
|
37929
|
|
37916
|
37930
|
businessParams := models.BusinessParams{
|
|
@@ -40012,7 +40026,7 @@ func (c *HisApiController) GetSettleAccounts() {
|
40012
|
40026
|
res.Output.Setlinfo.PsnCashPay = order.PsnCashPay
|
40013
|
40027
|
|
40014
|
40028
|
if res.Infcode == 0 {
|
40015
|
|
- if adminUser.CurrentOrgId == 10215 || adminUser.CurrentOrgId == 10387 || adminUser.CurrentOrgId == 9919 || adminUser.CurrentOrgId == 10088 || adminUser.CurrentOrgId == 10150 || adminUser.CurrentOrgId == 10454 || adminUser.CurrentOrgId == 10644 || adminUser.CurrentOrgId == 10653 || adminUser.CurrentOrgId == 10210 {
|
|
40029
|
+ if adminUser.CurrentOrgId == 10215 || adminUser.CurrentOrgId == 10387 || adminUser.CurrentOrgId == 9919 || adminUser.CurrentOrgId == 10088 || adminUser.CurrentOrgId == 10150 || adminUser.CurrentOrgId == 10454 || adminUser.CurrentOrgId == 10644 || adminUser.CurrentOrgId == 10653{
|
40016
|
40030
|
c.ServeSuccessJSON(map[string]interface{}{
|
40017
|
40031
|
"diagnosis": name,
|
40018
|
40032
|
"order_infos": orderInfos,
|