|
@@ -111,9 +111,7 @@ func (c *HisApiController) Get2505() {
|
111
|
111
|
|
112
|
112
|
func (c *HisApiController) Get4201A() {
|
113
|
113
|
order_id, _ := c.GetInt64("order_id")
|
114
|
|
- order_id = 172977
|
115
|
114
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
116
|
|
- admin_user_id = 3432
|
117
|
115
|
order, _ := service.GetHisOrderByIDTwo(order_id)
|
118
|
116
|
his, _ := service.GetInHospitalRecordByNumber(order.MdtrtId)
|
119
|
117
|
order_info, _ := service.GetHisOrderInfoByNumber(order.MdtrtId)
|
|
@@ -137,19 +135,20 @@ func (c *HisApiController) Get4201A() {
|
137
|
135
|
var fsiOPFLD models.FsiOwnpayPatnFeeListDDTO
|
138
|
136
|
fsiOPFLD.FixmedinsMdtrtID = items.OrderNumber
|
139
|
137
|
fsiOPFLD.MedType = "14"
|
140
|
|
- fsiOPFLD.BkkpSn = items.OrderNumber
|
|
138
|
+ fsiOPFLD.BkkpSn = items.FeedetlSn
|
141
|
139
|
fsiOPFLD.FixmedinsCode = miConfig.Code
|
142
|
140
|
fsiOPFLD.FixmedinsName = miConfig.OrgName
|
143
|
141
|
fsiOPFLD.Cnt = fmt.Sprintf("%.2f", items.Cnt)
|
144
|
142
|
fsiOPFLD.Pric = fmt.Sprintf("%.2f", items.Pric)
|
145
|
143
|
fsiOPFLD.DetItemFeeSumamt = fmt.Sprintf("%.2f", items.DetItemFeeSumamt)
|
146
|
144
|
|
147
|
|
- if items.AdviceId > 0 && items.ProjectId == 0 {
|
|
145
|
+ if items.AdviceId > 0 && items.ProjectId == 0 && items.HisDoctorAdviceInfo.BaseDrugLib.IsUser != 1 && len(items.HisDoctorAdviceInfo.BaseDrugLib.MedicalInsuranceNumber) > 0 {
|
148
|
146
|
fsiOPFLD.FeeOcurTime = time.Unix(items.HisDoctorAdviceInfo.CreatedTime, 0).Format("2006-01-02 15:04:05")
|
149
|
147
|
fsiOPFLD.MedListCodg = items.HisDoctorAdviceInfo.BaseDrugLib.MedicalInsuranceNumber
|
150
|
148
|
|
151
|
149
|
fsiOPFLD.MedinsListCodg = items.HisDoctorAdviceInfo.BaseDrugLib.MedicalInsuranceNumber
|
152
|
150
|
fsiOPFLD.MedinsListName = items.HisDoctorAdviceInfo.BaseDrugLib.DrugName
|
|
151
|
+
|
153
|
152
|
fsiOPFLD.Prodname = items.HisDoctorAdviceInfo.BaseDrugLib.DrugName
|
154
|
153
|
fsiOPFLD.BilgDeptName = department.Name
|
155
|
154
|
fsiOPFLD.BilgDeptCodg = department.Number
|
|
@@ -157,19 +156,24 @@ func (c *HisApiController) Get4201A() {
|
157
|
156
|
fsiOPFLD.BilgDrName = doctor.UserName
|
158
|
157
|
fsiOPFLD.MedChrgitmType = "09"
|
159
|
158
|
|
160
|
|
- } else if items.AdviceId == 0 && items.ProjectId > 0 {
|
161
|
|
- fsiOPFLD.FeeOcurTime = time.Unix(items.HisPrescriptionProject.Ctime, 0).Format("2006-01-02 15:04:05")
|
162
|
|
- fsiOPFLD.MedListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
|
159
|
+ memo["hosp_appr_flag"] = "1"
|
|
160
|
+ memo["invoice_no"] = order.MdtrtId
|
|
161
|
+ memo["memo"] = "自费"
|
|
162
|
+ bytesData, _ := json.Marshal(memo)
|
|
163
|
+ fsiOPFLD.Memo = string(bytesData)
|
|
164
|
+ fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
163
|
165
|
|
164
|
|
- fsiOPFLD.MedinsListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
165
|
|
- fsiOPFLD.BilgDeptName = department.Name
|
166
|
|
- fsiOPFLD.BilgDeptCodg = department.Number
|
167
|
|
- fsiOPFLD.BilgDrCode = doctor.DoctorNumber
|
168
|
|
- fsiOPFLD.BilgDrName = doctor.UserName
|
169
|
|
- if items.HisPrescriptionProject.Type == 2 {
|
|
166
|
+ } else if items.AdviceId == 0 && items.ProjectId > 0 {
|
|
167
|
+ if items.HisPrescriptionProject.Type == 2 && len(items.HisPrescriptionProject.HisProject.MedicalCode) > 0 {
|
|
168
|
+ fsiOPFLD.FeeOcurTime = time.Unix(items.HisPrescriptionProject.Ctime, 0).Format("2006-01-02 15:04:05")
|
|
169
|
+ fsiOPFLD.MedListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
|
170
|
+ fsiOPFLD.MedinsListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
170
|
171
|
fsiOPFLD.MedinsListName = items.HisPrescriptionProject.HisProject.ProjectName
|
171
|
172
|
fsiOPFLD.Prodname = items.HisPrescriptionProject.HisProject.ProjectName
|
172
|
|
-
|
|
173
|
+ fsiOPFLD.BilgDeptName = department.Name
|
|
174
|
+ fsiOPFLD.BilgDeptCodg = department.Number
|
|
175
|
+ fsiOPFLD.BilgDrCode = doctor.DoctorNumber
|
|
176
|
+ fsiOPFLD.BilgDrName = doctor.UserName
|
173
|
177
|
switch items.HisPrescriptionProject.HisProject.CostClassify {
|
174
|
178
|
case 0:
|
175
|
179
|
|
|
@@ -227,38 +231,46 @@ func (c *HisApiController) Get4201A() {
|
227
|
231
|
break
|
228
|
232
|
|
229
|
233
|
}
|
230
|
|
- } else if items.HisPrescriptionProject.Type == 3 {
|
|
234
|
+ memo["hosp_appr_flag"] = "1"
|
|
235
|
+ memo["invoice_no"] = order.MdtrtId
|
|
236
|
+ memo["memo"] = "自费"
|
|
237
|
+ bytesData, _ := json.Marshal(memo)
|
|
238
|
+ fsiOPFLD.Memo = string(bytesData)
|
|
239
|
+ fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
|
240
|
+ } else if items.HisPrescriptionProject.Type == 3 && items.HisPrescriptionProject.GoodInfo.IsUser != 1 && len(items.HisPrescriptionProject.GoodInfo.MedicalInsuranceNumber) > 0 {
|
|
241
|
+ fsiOPFLD.FeeOcurTime = time.Unix(items.HisPrescriptionProject.Ctime, 0).Format("2006-01-02 15:04:05")
|
|
242
|
+ fsiOPFLD.MedListCodg = items.HisPrescriptionProject.GoodInfo.MedicalInsuranceNumber
|
|
243
|
+ fsiOPFLD.MedinsListCodg = items.HisPrescriptionProject.GoodInfo.MedicalInsuranceNumber
|
|
244
|
+ fsiOPFLD.BilgDeptName = department.Name
|
|
245
|
+ fsiOPFLD.BilgDeptCodg = department.Number
|
|
246
|
+ fsiOPFLD.BilgDrCode = doctor.DoctorNumber
|
|
247
|
+ fsiOPFLD.BilgDrName = doctor.UserName
|
231
|
248
|
fsiOPFLD.MedinsListName = items.HisPrescriptionProject.GoodInfo.GoodName
|
232
|
249
|
fsiOPFLD.Prodname = items.HisPrescriptionProject.GoodInfo.GoodName
|
233
|
|
-
|
234
|
250
|
fsiOPFLD.MedChrgitmType = "08"
|
|
251
|
+ memo["hosp_appr_flag"] = "1"
|
|
252
|
+ memo["invoice_no"] = order.MdtrtId
|
|
253
|
+ memo["memo"] = "自费"
|
|
254
|
+ bytesData, _ := json.Marshal(memo)
|
|
255
|
+ fsiOPFLD.Memo = string(bytesData)
|
|
256
|
+ fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
235
|
257
|
}
|
236
|
258
|
}
|
237
|
259
|
|
238
|
|
- fsiOPFLD.Prodname = items.HisDoctorAdviceInfo.AdviceName
|
239
|
|
- fsiOPFLD.BilgDeptCodg = department.Number
|
240
|
|
- fsiOPFLD.BilgDeptName = department.Name
|
241
|
|
- memo["hosp_appr_flag"] = "1"
|
242
|
|
- memo["invoice_no"] = order.MdtrtId
|
243
|
|
- memo["memo"] = "自费"
|
244
|
|
- bytesData, _ := json.Marshal(memo)
|
245
|
|
- fsiOPFLD.Memo = string(bytesData)
|
246
|
|
-
|
247
|
|
- fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
248
|
260
|
}
|
249
|
261
|
for _, items := range order_info_two {
|
250
|
262
|
memo := make(map[string]interface{})
|
251
|
263
|
var fsiOPFLD models.FsiOwnpayPatnFeeListDDTO
|
252
|
264
|
fsiOPFLD.FixmedinsMdtrtID = items.OrderNumber
|
253
|
265
|
fsiOPFLD.MedType = "14"
|
254
|
|
- fsiOPFLD.BkkpSn = items.OrderNumber
|
|
266
|
+ fsiOPFLD.BkkpSn = items.FeedetlSn
|
255
|
267
|
fsiOPFLD.FixmedinsCode = miConfig.Code
|
256
|
268
|
fsiOPFLD.FixmedinsName = miConfig.OrgName
|
257
|
269
|
fsiOPFLD.Cnt = fmt.Sprintf("%.2f", items.Cnt)
|
258
|
270
|
fsiOPFLD.Pric = fmt.Sprintf("%.2f", items.Pric)
|
259
|
271
|
fsiOPFLD.DetItemFeeSumamt = fmt.Sprintf("%.2f", items.DetItemFeeSumamt)
|
260
|
272
|
|
261
|
|
- if items.AdviceId > 0 && items.ProjectId == 0 {
|
|
273
|
+ if items.AdviceId > 0 && items.ProjectId == 0 && items.HisDoctorAdviceInfo.BaseDrugLib.IsUser != 1 && len(items.HisDoctorAdviceInfo.BaseDrugLib.MedicalInsuranceNumber) > 0 {
|
262
|
274
|
fsiOPFLD.FeeOcurTime = time.Unix(items.HisDoctorAdviceInfo.CreatedTime, 0).Format("2006-01-02 15:04:05")
|
263
|
275
|
fsiOPFLD.MedListCodg = items.HisDoctorAdviceInfo.BaseDrugLib.MedicalInsuranceNumber
|
264
|
276
|
|
|
@@ -271,19 +283,27 @@ func (c *HisApiController) Get4201A() {
|
271
|
283
|
fsiOPFLD.BilgDrName = doctor.UserName
|
272
|
284
|
fsiOPFLD.MedChrgitmType = "09"
|
273
|
285
|
|
|
286
|
+ memo["hosp_appr_flag"] = "1"
|
|
287
|
+ memo["invoice_no"] = order.MdtrtId
|
|
288
|
+ memo["memo"] = "自费"
|
|
289
|
+ bytesData, _ := json.Marshal(memo)
|
|
290
|
+ fsiOPFLD.Memo = string(bytesData)
|
|
291
|
+ fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
|
292
|
+
|
274
|
293
|
} else if items.AdviceId == 0 && items.ProjectId > 0 {
|
275
|
|
- fsiOPFLD.FeeOcurTime = time.Unix(items.HisPrescriptionProject.Ctime, 0).Format("2006-01-02 15:04:05")
|
276
|
|
- fsiOPFLD.MedListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
277
|
294
|
|
278
|
|
- fsiOPFLD.MedinsListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
279
|
|
- fsiOPFLD.BilgDeptName = department.Name
|
280
|
|
- fsiOPFLD.BilgDeptCodg = department.Number
|
281
|
|
- fsiOPFLD.BilgDrCode = doctor.DoctorNumber
|
282
|
|
- fsiOPFLD.BilgDrName = doctor.UserName
|
283
|
|
- if items.HisPrescriptionProject.Type == 2 {
|
|
295
|
+ if items.HisPrescriptionProject.Type == 2 && len(items.HisPrescriptionProject.HisProject.MedicalCode) > 0 {
|
|
296
|
+ fsiOPFLD.FeeOcurTime = time.Unix(items.HisPrescriptionProject.Ctime, 0).Format("2006-01-02 15:04:05")
|
|
297
|
+ fsiOPFLD.MedListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
284
|
298
|
fsiOPFLD.MedinsListName = items.HisPrescriptionProject.HisProject.ProjectName
|
285
|
299
|
fsiOPFLD.Prodname = items.HisPrescriptionProject.HisProject.ProjectName
|
286
|
300
|
|
|
301
|
+ fsiOPFLD.MedinsListCodg = items.HisPrescriptionProject.HisProject.MedicalCode
|
|
302
|
+ fsiOPFLD.BilgDeptName = department.Name
|
|
303
|
+ fsiOPFLD.BilgDeptCodg = department.Number
|
|
304
|
+ fsiOPFLD.BilgDrCode = doctor.DoctorNumber
|
|
305
|
+ fsiOPFLD.BilgDrName = doctor.UserName
|
|
306
|
+
|
287
|
307
|
switch items.HisPrescriptionProject.HisProject.CostClassify {
|
288
|
308
|
case 0:
|
289
|
309
|
|
|
@@ -341,24 +361,33 @@ func (c *HisApiController) Get4201A() {
|
341
|
361
|
break
|
342
|
362
|
|
343
|
363
|
}
|
344
|
|
- } else if items.HisPrescriptionProject.Type == 3 {
|
|
364
|
+ memo["hosp_appr_flag"] = "1"
|
|
365
|
+ memo["invoice_no"] = order.MdtrtId
|
|
366
|
+ memo["memo"] = "自费"
|
|
367
|
+ bytesData, _ := json.Marshal(memo)
|
|
368
|
+ fsiOPFLD.Memo = string(bytesData)
|
|
369
|
+ fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
|
370
|
+ } else if items.HisPrescriptionProject.Type == 3 && len(items.HisPrescriptionProject.GoodInfo.MedicalInsuranceNumber) > 0 && items.HisPrescriptionProject.GoodInfo.IsUser != 1 {
|
|
371
|
+ fsiOPFLD.FeeOcurTime = time.Unix(items.HisPrescriptionProject.Ctime, 0).Format("2006-01-02 15:04:05")
|
|
372
|
+ fsiOPFLD.MedListCodg = items.HisPrescriptionProject.GoodInfo.MedicalInsuranceNumber
|
|
373
|
+ fsiOPFLD.MedinsListCodg = items.HisPrescriptionProject.GoodInfo.MedicalInsuranceNumber
|
|
374
|
+ fsiOPFLD.BilgDeptName = department.Name
|
|
375
|
+ fsiOPFLD.BilgDeptCodg = department.Number
|
|
376
|
+ fsiOPFLD.BilgDrCode = doctor.DoctorNumber
|
|
377
|
+ fsiOPFLD.BilgDrName = doctor.UserName
|
345
|
378
|
fsiOPFLD.MedinsListName = items.HisPrescriptionProject.GoodInfo.GoodName
|
346
|
379
|
fsiOPFLD.Prodname = items.HisPrescriptionProject.GoodInfo.GoodName
|
347
|
380
|
|
348
|
381
|
fsiOPFLD.MedChrgitmType = "08"
|
|
382
|
+ memo["hosp_appr_flag"] = "1"
|
|
383
|
+ memo["invoice_no"] = order.MdtrtId
|
|
384
|
+ memo["memo"] = "自费"
|
|
385
|
+ bytesData, _ := json.Marshal(memo)
|
|
386
|
+ fsiOPFLD.Memo = string(bytesData)
|
|
387
|
+ fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
349
|
388
|
}
|
350
|
389
|
}
|
351
|
390
|
|
352
|
|
- fsiOPFLD.Prodname = items.HisDoctorAdviceInfo.AdviceName
|
353
|
|
- fsiOPFLD.BilgDeptCodg = department.Number
|
354
|
|
- fsiOPFLD.BilgDeptName = department.Name
|
355
|
|
- memo["hosp_appr_flag"] = "1"
|
356
|
|
- memo["invoice_no"] = order.MdtrtId
|
357
|
|
- memo["memo"] = "自费"
|
358
|
|
- bytesData, _ := json.Marshal(memo)
|
359
|
|
- fsiOPFLD.Memo = string(bytesData)
|
360
|
|
-
|
361
|
|
- fsiOPFLDs = append(fsiOPFLDs, fsiOPFLD)
|
362
|
391
|
}
|
363
|
392
|
|
364
|
393
|
fmt.Println(fsiOPFLDs)
|
|
@@ -396,11 +425,7 @@ func (c *HisApiController) Get4201A() {
|
396
|
425
|
}
|
397
|
426
|
func (c *HisApiController) Get4202() {
|
398
|
427
|
order_id, _ := c.GetInt64("order_id")
|
399
|
|
- order_id = 220548
|
400
|
|
-
|
401
|
428
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
402
|
|
- admin_user_id = 3432
|
403
|
|
-
|
404
|
429
|
order, _ := service.GetHisOrderByIDTwo(order_id)
|
405
|
430
|
his, _ := service.GetInHospitalRecordByNumber(order.MdtrtId)
|
406
|
431
|
curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
|
|
@@ -488,8 +513,6 @@ func (c *HisApiController) Get4203() {
|
488
|
513
|
curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
|
489
|
514
|
miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
|
490
|
515
|
order_id, _ := c.GetInt64("order_id")
|
491
|
|
- order_id = 220548
|
492
|
|
- admin_user_id = 3432
|
493
|
516
|
|
494
|
517
|
order, _ := service.GetHisOrderByIDTwo(order_id)
|
495
|
518
|
his, _ := service.GetInHospitalRecordByNumber(order.MdtrtId)
|
|
@@ -7504,6 +7527,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
7504
|
7527
|
med_type := c.GetString("social_type")
|
7505
|
7528
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
7506
|
7529
|
insuplc_admdvs := c.GetString("insuplc_admdvs")
|
|
7530
|
+ mdtrt_type := c.GetString("mdtrt_type")
|
7507
|
7531
|
|
7508
|
7532
|
timeLayout := "2006-01-02"
|
7509
|
7533
|
loc, _ := time.LoadLocation("Local")
|
|
@@ -7888,6 +7912,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
7888
|
7912
|
IdCardType: id_card_type,
|
7889
|
7913
|
Doctor: doctor,
|
7890
|
7914
|
Departments: department,
|
|
7915
|
+ MdtrtGrpType: mdtrt_type,
|
7891
|
7916
|
}
|
7892
|
7917
|
|
7893
|
7918
|
timestamp := time.Now().Unix()
|
|
@@ -8335,6 +8360,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
8335
|
8360
|
his.Mtime = time.Now().Unix()
|
8336
|
8361
|
his.InsuplcAdmdvs = insuplc_admdvs_temp
|
8337
|
8362
|
his.Status = 1
|
|
8363
|
+ his.MdtrtGrpType = mdtrt_type
|
8338
|
8364
|
service.UpdateHisPatientStatus(&his)
|
8339
|
8365
|
service.UpdateHisPrescriptionHisID(his.ID, patient.ID, recordDateTime, adminInfo.CurrentOrgId)
|
8340
|
8366
|
|
|
@@ -9267,7 +9293,7 @@ func (c *HisApiController) GetUploadInfo() {
|
9267
|
9293
|
"&insuplc_admdvs=" + his.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
9268
|
9294
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
9269
|
9295
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
9270
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
|
|
9296
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo + "&mdtrt_grp_type=" + his.MdtrtGrpType
|
9271
|
9297
|
} else {
|
9272
|
9298
|
api = "http://192.168.5.251:9532/" + "jsyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
|
9273
|
9299
|
his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
|
|
@@ -9275,7 +9301,7 @@ func (c *HisApiController) GetUploadInfo() {
|
9275
|
9301
|
"&insuplc_admdvs=" + his.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
9276
|
9302
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
9277
|
9303
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
9278
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
|
|
9304
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo + "&mdtrt_grp_type=" + his.MdtrtGrpType
|
9279
|
9305
|
|
9280
|
9306
|
}
|
9281
|
9307
|
|
|
@@ -9736,7 +9762,7 @@ func (c *HisApiController) GetUploadInfo() {
|
9736
|
9762
|
"&insuplc_admdvs=" + his.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
9737
|
9763
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
9738
|
9764
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
9739
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + tempOrder.MedType + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
|
|
9765
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + tempOrder.MedType + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo + "&mdtrt_grp_type=" + his.MdtrtGrpType
|
9740
|
9766
|
|
9741
|
9767
|
//req, _ = http.NewRequest("POST", "http://192.168.2.110:9532/"+"jsyb/2204", bytes.NewReader(bytesData))
|
9742
|
9768
|
|
|
@@ -9748,7 +9774,7 @@ func (c *HisApiController) GetUploadInfo() {
|
9748
|
9774
|
"&insuplc_admdvs=" + his.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
9749
|
9775
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
9750
|
9776
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
9751
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + tempOrder.MedType + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo
|
|
9777
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + tempOrder.MedType + "&acct_used_flag=" + acct_used_flag + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&verify_number=" + psn_info.VerifyNumber + "&cainfo=" + miConfig.Cainfo + "&mdtrt_grp_type=" + his.MdtrtGrpType
|
9752
|
9778
|
|
9753
|
9779
|
}
|
9754
|
9780
|
|
|
@@ -11313,7 +11339,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
11313
|
11339
|
insutype = "310"
|
11314
|
11340
|
}
|
11315
|
11341
|
if len(insutypes) == 2 {
|
11316
|
|
- insutype = strconv.FormatInt(his.SocialType, 64)
|
|
11342
|
+ insutype = strconv.FormatInt(his.SocialType, 10)
|
11317
|
11343
|
}
|
11318
|
11344
|
|
11319
|
11345
|
//insutype = "390"
|
|
@@ -11423,7 +11449,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
11423
|
11449
|
"&insuplc_admdvs=" + his.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
11424
|
11450
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
11425
|
11451
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
11426
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
|
|
11452
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo + "&mdtrt_grp_type=" + his.MdtrtGrpType
|
11427
|
11453
|
|
11428
|
11454
|
//req, _ = http.NewRequest("POST", "http://192.168.2.110:9532/"+"jsyb/2204", bytes.NewReader(bytesData))
|
11429
|
11455
|
|
|
@@ -11435,7 +11461,7 @@ func (c *HisApiController) GetPreUploadInfo() {
|
11435
|
11461
|
"&insuplc_admdvs=" + his.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
11436
|
11462
|
"&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(his.IdCardType, 10) +
|
11437
|
11463
|
"&certificates=" + strconv.FormatInt(his.IdType, 10) + "&cert_no=" + cert_no +
|
11438
|
|
- "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo
|
|
11464
|
+ "&insutype=" + insutype + "&total=" + allTotal + "&med_type=" + strconv.FormatInt(reg_type, 10) + "&verify_number=" + psn_info.VerifyNumber + "&url=" + miConfig.Url + "&ak=" + miConfig.AccessKey + "&cainfo=" + miConfig.Cainfo + "&mdtrt_grp_type=" + his.MdtrtGrpType
|
11439
|
11465
|
|
11440
|
11466
|
}
|
11441
|
11467
|
|