|
@@ -338,7 +338,7 @@ func Gdyb1101A(certNo string, org_name string, doctor string, fixmedins_code str
|
338
|
338
|
}
|
339
|
339
|
|
340
|
340
|
// 门诊挂号
|
341
|
|
-func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doctor string, ipt_otp_no string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, id_card_type int64) (string, string) {
|
|
341
|
+func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, opera string, ipt_otp_no string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, id_card_type int64, doctor_name string) (string, string) {
|
342
|
342
|
// 生成签名
|
343
|
343
|
nonce := GetRandomString(32)
|
344
|
344
|
timestamp := time.Now().Unix()
|
|
@@ -347,7 +347,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
|
347
|
347
|
timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
|
348
|
348
|
|
349
|
349
|
// 生成输入报文
|
350
|
|
- inputMessage := SetInputMessage(nonce, timestamp, org_name, dept, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
|
350
|
+ inputMessage := SetInputMessage(nonce, timestamp, org_name, opera, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
|
351
|
351
|
input := make(map[string]interface{})
|
352
|
352
|
inputData := make(map[string]interface{})
|
353
|
353
|
inputMessage["infno"] = "2201" // 交易编码
|
|
@@ -365,7 +365,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
|
365
|
365
|
|
366
|
366
|
inputData["ipt_otp_no"] = ipt_otp_no // 住院/门诊号
|
367
|
367
|
inputData["atddr_no"] = doctor_id // 医师编码
|
368
|
|
- inputData["dr_name"] = doctor // 医师姓名
|
|
368
|
+ inputData["dr_name"] = doctor_name // 医师姓名
|
369
|
369
|
inputData["dept_code"] = dept_code // 科室编码
|
370
|
370
|
inputData["dept_name"] = dept // 科室名称
|
371
|
371
|
inputData["caty"] = "A03.06" // 科别
|