|
@@ -669,24 +669,21 @@ func Jsyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
669
|
669
|
inputData := make(map[string]interface{})
|
670
|
670
|
inputMessage["infno"] = "2206" // 交易编码
|
671
|
671
|
inputData["psn_no"] = psnNo // 人员编号 (来自1101接口返回)
|
672
|
|
- //if certificates == 3 {
|
673
|
|
- // inputData["mdtrt_cert_type"] = "99" // 就诊凭证类型
|
674
|
|
- // inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
|
675
|
|
- //} else {
|
676
|
|
- // if id_card_type == 1 {
|
677
|
|
- inputData["mdtrt_cert_type"] = "04" // 就诊凭证类型
|
678
|
|
- inputData["mdtrt_cert_no"] = "Y9gJ7nijh+DzGkn2W8El9YxSR0x1/zb2+tcA4a5fsVC4RLNACwi93U4Q9xEJVKKnN6LCbomuiCuxDOI+Skz/wsjlScPKIzyXxBcKl9ZrZjCrr+cRTRRKRdz6JqhoexGR/Cxnipr62JOW2fmrI1X2XA==" // 就诊凭证编号
|
679
|
|
-
|
680
|
|
- //inputData["mdtrt_cert_type"] = "04" // 就诊凭证类型
|
681
|
|
- //inputData["mdtrt_cert_no"] = "320822197705194836|" // 就诊凭证编号
|
682
|
|
- // } else if id_card_type == 4 {
|
683
|
|
- // inputData["mdtrt_cert_type"] = "01" // 就诊凭证类型
|
684
|
|
- // inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
|
685
|
|
- // } else {
|
686
|
|
- // inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
|
687
|
|
- // inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
|
688
|
|
- // }
|
689
|
|
- //}
|
|
672
|
+ if certificates == 3 {
|
|
673
|
+ inputData["mdtrt_cert_type"] = "99" // 就诊凭证类型
|
|
674
|
+ inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
|
|
675
|
+ } else {
|
|
676
|
+ if id_card_type == 1 {
|
|
677
|
+ inputData["mdtrt_cert_type"] = "03" // 就诊凭证类型
|
|
678
|
+ inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
|
|
679
|
+ } else if id_card_type == 3 {
|
|
680
|
+ inputData["mdtrt_cert_type"] = "04" // 就诊凭证类型
|
|
681
|
+ inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
|
|
682
|
+ } else {
|
|
683
|
+ inputData["mdtrt_cert_type"] = "02" // 就诊凭证类型
|
|
684
|
+ inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
|
|
685
|
+ }
|
|
686
|
+ }
|
690
|
687
|
if insuplc_admdvs == "421300" {
|
691
|
688
|
if med_type == "11" || med_type == "1112" || med_type == "1111" {
|
692
|
689
|
inputData["med_type"] = "110104" // 医疗类别 11 普通门诊 12 门诊挂号
|