|
@@ -217,16 +217,7 @@ func Gdyb1101A(certNo string, org_name string, doctor string, fixmedins_code str
|
217
|
217
|
|
218
|
218
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
219
|
219
|
|
220
|
|
- if insuplc_admdvs == "421300" {
|
221
|
|
- var json2 string
|
222
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101A", string(bytesData), json2)
|
223
|
|
- out, err := cmd.Output()
|
224
|
|
- if err != nil {
|
225
|
|
- fmt.Println("error:", err.Error())
|
226
|
|
- }
|
227
|
|
- fmt.Println(string(out))
|
228
|
|
- return hex.EncodeToString(out)
|
229
|
|
- } else {
|
|
220
|
+ {
|
230
|
221
|
request, err := http.NewRequest("POST", url, reader)
|
231
|
222
|
if err != nil {
|
232
|
223
|
fmt.Println(err.Error())
|
|
@@ -316,17 +307,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, ope
|
316
|
307
|
url = gdyb_url + "2201"
|
317
|
308
|
}
|
318
|
309
|
|
319
|
|
- if insuplc_admdvs == "421300" {
|
320
|
|
- var json2 string
|
321
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2201", string(bytesData), json2)
|
322
|
|
- out, err := cmd.Output()
|
323
|
|
- if err != nil {
|
324
|
|
- fmt.Println("error:", err.Error())
|
325
|
|
- }
|
326
|
|
- fmt.Println(string(out))
|
327
|
|
-
|
328
|
|
- return hex.EncodeToString(out), requestLog
|
329
|
|
- } else {
|
|
310
|
+ {
|
330
|
311
|
request, err := http.NewRequest("POST", url, reader)
|
331
|
312
|
if err != nil {
|
332
|
313
|
fmt.Println(err.Error())
|
|
@@ -432,17 +413,7 @@ func Gdyb2201A(psnNo string, insutype string, certNo string, org_name string, op
|
432
|
413
|
url = gdyb_url + "2201"
|
433
|
414
|
}
|
434
|
415
|
|
435
|
|
- if insuplc_admdvs == "421300" {
|
436
|
|
- var json2 string
|
437
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2201", string(bytesData), json2)
|
438
|
|
- out, err := cmd.Output()
|
439
|
|
- if err != nil {
|
440
|
|
- fmt.Println("error:", err.Error())
|
441
|
|
- }
|
442
|
|
- fmt.Println(string(out))
|
443
|
|
-
|
444
|
|
- return hex.EncodeToString(out), requestLog
|
445
|
|
- } else {
|
|
416
|
+ {
|
446
|
417
|
fmt.Println(url)
|
447
|
418
|
fmt.Println(gdyb_paasid)
|
448
|
419
|
fmt.Println(secret_key)
|
|
@@ -534,17 +505,7 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
|
534
|
505
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
|
535
|
506
|
|
536
|
507
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
|
537
|
|
- if insuplc_admdvs == "421300" {
|
538
|
|
- var json2 string
|
539
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2202", string(bytesData), json2)
|
540
|
|
- out, err := cmd.Output()
|
541
|
|
- if err != nil {
|
542
|
|
- fmt.Println("error:", err.Error())
|
543
|
|
- }
|
544
|
|
- fmt.Println(string(out))
|
545
|
|
-
|
546
|
|
- return hex.EncodeToString(out), requestLog
|
547
|
|
- } else {
|
|
508
|
+ {
|
548
|
509
|
|
549
|
510
|
request, err := http.NewRequest("POST", url, reader)
|
550
|
511
|
if err != nil {
|
|
@@ -666,17 +627,7 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, or
|
666
|
627
|
url = gdyb_url + "2203"
|
667
|
628
|
}
|
668
|
629
|
|
669
|
|
- if insuplc_admdvs == "421300" {
|
670
|
|
- var json2 string
|
671
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2203", string(bytesData), json2)
|
672
|
|
- out, err := cmd.Output()
|
673
|
|
- if err != nil {
|
674
|
|
- fmt.Println("error:", err.Error())
|
675
|
|
- }
|
676
|
|
- fmt.Println(string(out))
|
677
|
|
-
|
678
|
|
- return hex.EncodeToString(out), requestLog
|
679
|
|
- } else {
|
|
630
|
+ {
|
680
|
631
|
request, err := http.NewRequest("POST", url, reader)
|
681
|
632
|
if err != nil {
|
682
|
633
|
fmt.Println(err.Error())
|
|
@@ -783,18 +734,7 @@ func Gdyb2203c(psnNo string, mdtrtId string, doctor string, department string, o
|
783
|
734
|
} else {
|
784
|
735
|
url = gdyb_url + "2203"
|
785
|
736
|
}
|
786
|
|
-
|
787
|
|
- if insuplc_admdvs == "421300" {
|
788
|
|
- var json2 string
|
789
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2203", string(bytesData), json2)
|
790
|
|
- out, err := cmd.Output()
|
791
|
|
- if err != nil {
|
792
|
|
- fmt.Println("error:", err.Error())
|
793
|
|
- }
|
794
|
|
- fmt.Println(string(out))
|
795
|
|
-
|
796
|
|
- return hex.EncodeToString(out), requestLog
|
797
|
|
- } else {
|
|
737
|
+ {
|
798
|
738
|
request, err := http.NewRequest("POST", url, reader)
|
799
|
739
|
if err != nil {
|
800
|
740
|
fmt.Println(err.Error())
|
|
@@ -903,17 +843,7 @@ func Gdyb2203A(psnNo string, mdtrtId string, doctor string, department string, o
|
903
|
843
|
url = gdyb_url + "2203"
|
904
|
844
|
}
|
905
|
845
|
|
906
|
|
- if insuplc_admdvs == "421300" {
|
907
|
|
- var json2 string
|
908
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2203A", string(bytesData), json2)
|
909
|
|
- out, err := cmd.Output()
|
910
|
|
- if err != nil {
|
911
|
|
- fmt.Println("error:", err.Error())
|
912
|
|
- }
|
913
|
|
- fmt.Println(string(out))
|
914
|
|
-
|
915
|
|
- return hex.EncodeToString(out), requestLog
|
916
|
|
- } else {
|
|
846
|
+ {
|
917
|
847
|
|
918
|
848
|
request, err := http.NewRequest("POST", url, reader)
|
919
|
849
|
if err != nil {
|
|
@@ -1012,18 +942,7 @@ func Gdyb2203d(psnNo string, mdtrtId string, doctor string, department string, o
|
1012
|
942
|
var url string
|
1013
|
943
|
|
1014
|
944
|
url = gdyb_url + "2203"
|
1015
|
|
-
|
1016
|
|
- if insuplc_admdvs == "421300" {
|
1017
|
|
- var json2 string
|
1018
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2203A", string(bytesData), json2)
|
1019
|
|
- out, err := cmd.Output()
|
1020
|
|
- if err != nil {
|
1021
|
|
- fmt.Println("error:", err.Error())
|
1022
|
|
- }
|
1023
|
|
- fmt.Println(string(out))
|
1024
|
|
-
|
1025
|
|
- return hex.EncodeToString(out), requestLog
|
1026
|
|
- } else {
|
|
945
|
+{
|
1027
|
946
|
|
1028
|
947
|
request, err := http.NewRequest("POST", url, reader)
|
1029
|
948
|
if err != nil {
|
|
@@ -1323,17 +1242,7 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
1323
|
1242
|
|
1324
|
1243
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
|
1325
|
1244
|
|
1326
|
|
- if insuplc_admdvs == "421300" {
|
1327
|
|
- var json2 string
|
1328
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2204", string(bytesData), json2)
|
1329
|
|
- out, err := cmd.Output()
|
1330
|
|
- if err != nil {
|
1331
|
|
- fmt.Println("error:", err.Error())
|
1332
|
|
- }
|
1333
|
|
- fmt.Println(string(out))
|
1334
|
|
-
|
1335
|
|
- return hex.EncodeToString(out), requestLog
|
1336
|
|
- } else {
|
|
1245
|
+ {
|
1337
|
1246
|
|
1338
|
1247
|
request, err := http.NewRequest("POST", url, reader)
|
1339
|
1248
|
if err != nil {
|
|
@@ -1555,17 +1464,7 @@ func Gdyb2204For441799(psnNo string, mdtrtId string, hisPrescription []*models.H
|
1555
|
1464
|
|
1556
|
1465
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
|
1557
|
1466
|
|
1558
|
|
- if insuplc_admdvs == "421300" {
|
1559
|
|
- var json2 string
|
1560
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2204", string(bytesData), json2)
|
1561
|
|
- out, err := cmd.Output()
|
1562
|
|
- if err != nil {
|
1563
|
|
- fmt.Println("error:", err.Error())
|
1564
|
|
- }
|
1565
|
|
- fmt.Println(string(out))
|
1566
|
|
-
|
1567
|
|
- return hex.EncodeToString(out), requestLog
|
1568
|
|
- } else {
|
|
1467
|
+ {
|
1569
|
1468
|
|
1570
|
1469
|
request, err := http.NewRequest("POST", url, reader)
|
1571
|
1470
|
if err != nil {
|
|
@@ -1652,18 +1551,7 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
|
1652
|
1551
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
|
1653
|
1552
|
|
1654
|
1553
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
|
1655
|
|
-
|
1656
|
|
- if insuplc_admdvs == "421300" {
|
1657
|
|
- var json2 string
|
1658
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2205", string(bytesData), json2)
|
1659
|
|
- out, err := cmd.Output()
|
1660
|
|
- if err != nil {
|
1661
|
|
- fmt.Println("error:", err.Error())
|
1662
|
|
- }
|
1663
|
|
- fmt.Println(string(out))
|
1664
|
|
-
|
1665
|
|
- return hex.EncodeToString(out), requestLog
|
1666
|
|
- } else {
|
|
1554
|
+{
|
1667
|
1555
|
request, err := http.NewRequest("POST", url, reader)
|
1668
|
1556
|
fmt.Println(err)
|
1669
|
1557
|
|
|
@@ -1738,13 +1626,7 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
1738
|
1626
|
inputData["mdtrt_cert_no"] = certNo // 就诊凭证编号
|
1739
|
1627
|
}
|
1740
|
1628
|
}
|
1741
|
|
- if insuplc_admdvs == "421300" {
|
1742
|
|
- if med_type == "11" || med_type == "1112" || med_type == "1111" {
|
1743
|
|
- inputData["med_type"] = "110104" // 医疗类别 11 普通门诊 12 门诊挂号
|
1744
|
|
- } else if med_type == "14" {
|
1745
|
|
- inputData["med_type"] = "140110" // 医疗类别 11 普通门诊 12 门诊挂号
|
1746
|
|
- }
|
1747
|
|
- } else {
|
|
1629
|
+ {
|
1748
|
1630
|
inputData["med_type"] = med_type // 医疗类别 11 普通门诊 12 门诊挂号
|
1749
|
1631
|
}
|
1750
|
1632
|
|
|
@@ -1789,17 +1671,7 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
1789
|
1671
|
|
1790
|
1672
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
|
1791
|
1673
|
|
1792
|
|
- if insuplc_admdvs == "421300" {
|
1793
|
|
- var json2 string
|
1794
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2206", string(bytesData), json2)
|
1795
|
|
- out, err := cmd.Output()
|
1796
|
|
- if err != nil {
|
1797
|
|
- fmt.Println("error:", err.Error())
|
1798
|
|
- }
|
1799
|
|
- fmt.Println(string(out))
|
1800
|
|
-
|
1801
|
|
- return hex.EncodeToString(out), requestLog
|
1802
|
|
- } else {
|
|
1674
|
+ {
|
1803
|
1675
|
request, err := http.NewRequest("POST", url, reader)
|
1804
|
1676
|
if err != nil {
|
1805
|
1677
|
fmt.Println(err.Error())
|
|
@@ -1871,13 +1743,7 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
1871
|
1743
|
if med_type == "1111" || med_type == "1112" {
|
1872
|
1744
|
med_type = "11"
|
1873
|
1745
|
}
|
1874
|
|
- if insuplc_admdvs == "421300" {
|
1875
|
|
- if med_type == "11" {
|
1876
|
|
- inputData["med_type"] = "110104" // 医疗类别 11 普通门诊 12 门诊挂号
|
1877
|
|
- } else if med_type == "14" {
|
1878
|
|
- inputData["med_type"] = "140101" // 医疗类别 11 普通门诊 12 门诊挂号
|
1879
|
|
- }
|
1880
|
|
- } else {
|
|
1746
|
+ {
|
1881
|
1747
|
inputData["med_type"] = med_type // 医疗类别 11 普通门诊 12 门诊挂号
|
1882
|
1748
|
}
|
1883
|
1749
|
inputData["medfee_sumamt"] = total // 医疗费总额
|
|
@@ -1920,20 +1786,7 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
1920
|
1786
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
|
1921
|
1787
|
|
1922
|
1788
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
|
1923
|
|
-
|
1924
|
|
- if insuplc_admdvs == "421300" {
|
1925
|
|
- var json2 string
|
1926
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2207", string(bytesData), json2)
|
1927
|
|
- out, err := cmd.Output()
|
1928
|
|
- if err != nil {
|
1929
|
|
- fmt.Println("error:", err.Error())
|
1930
|
|
- }
|
1931
|
|
- mjson, _ := json.Marshal(inputMessage)
|
1932
|
|
- str2 := string(mjson)
|
1933
|
|
- fmt.Println(string(out))
|
1934
|
|
-
|
1935
|
|
- return hex.EncodeToString(out), str2
|
1936
|
|
- } else {
|
|
1789
|
+ {
|
1937
|
1790
|
|
1938
|
1791
|
request, err := http.NewRequest("POST", url, reader)
|
1939
|
1792
|
if err != nil {
|
|
@@ -1996,13 +1849,7 @@ func Gdyb2207A(psnNo string, mdtrtId string, chrgBchno string, certNo string, in
|
1996
|
1849
|
if med_type == "1111" || med_type == "1112" {
|
1997
|
1850
|
med_type = "11"
|
1998
|
1851
|
}
|
1999
|
|
- if insuplc_admdvs == "421300" {
|
2000
|
|
- if med_type == "11" {
|
2001
|
|
- inputData["med_type"] = "110104" // 医疗类别 11 普通门诊 12 门诊挂号
|
2002
|
|
- } else if med_type == "14" {
|
2003
|
|
- inputData["med_type"] = "140101" // 医疗类别 11 普通门诊 12 门诊挂号
|
2004
|
|
- }
|
2005
|
|
- } else {
|
|
1852
|
+ {
|
2006
|
1853
|
inputData["med_type"] = med_type // 医疗类别 11 普通门诊 12 门诊挂号
|
2007
|
1854
|
}
|
2008
|
1855
|
inputData["medfee_sumamt"] = total // 医疗费总额
|
|
@@ -2046,19 +1893,7 @@ func Gdyb2207A(psnNo string, mdtrtId string, chrgBchno string, certNo string, in
|
2046
|
1893
|
|
2047
|
1894
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
|
2048
|
1895
|
|
2049
|
|
- if insuplc_admdvs == "421300" {
|
2050
|
|
- var json2 string
|
2051
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2207", string(bytesData), json2)
|
2052
|
|
- out, err := cmd.Output()
|
2053
|
|
- if err != nil {
|
2054
|
|
- fmt.Println("error:", err.Error())
|
2055
|
|
- }
|
2056
|
|
- mjson, _ := json.Marshal(inputMessage)
|
2057
|
|
- str2 := string(mjson)
|
2058
|
|
- fmt.Println(string(out))
|
2059
|
|
-
|
2060
|
|
- return hex.EncodeToString(out), str2
|
2061
|
|
- } else {
|
|
1896
|
+ {
|
2062
|
1897
|
|
2063
|
1898
|
request, err := http.NewRequest("POST", url, reader)
|
2064
|
1899
|
if err != nil {
|
|
@@ -2147,19 +1982,7 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
|
2147
|
1982
|
|
2148
|
1983
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
|
2149
|
1984
|
|
2150
|
|
- if insuplc_admdvs == "421300" {
|
2151
|
|
- var json2 string
|
2152
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "2208", string(bytesData), json2)
|
2153
|
|
- out, err := cmd.Output()
|
2154
|
|
- if err != nil {
|
2155
|
|
- fmt.Println("error:", err.Error())
|
2156
|
|
- }
|
2157
|
|
- mjson, _ := json.Marshal(inputMessage)
|
2158
|
|
- str2 := string(mjson)
|
2159
|
|
- fmt.Println(string(out))
|
2160
|
|
-
|
2161
|
|
- return hex.EncodeToString(out), str2
|
2162
|
|
- } else {
|
|
1985
|
+ {
|
2163
|
1986
|
request, err := http.NewRequest("POST", url, reader)
|
2164
|
1987
|
if err != nil {
|
2165
|
1988
|
fmt.Println(err.Error())
|
|
@@ -5972,17 +5795,7 @@ func Gdyb3260(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
5972
|
5795
|
} else {
|
5973
|
5796
|
url = gdyb_url + "3260"
|
5974
|
5797
|
}
|
5975
|
|
-
|
5976
|
|
- if insuplc_admdvs == "421300" {
|
5977
|
|
- var json2 string
|
5978
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
|
5979
|
|
- out, err := cmd.Output()
|
5980
|
|
- if err != nil {
|
5981
|
|
- fmt.Println("error:", err.Error())
|
5982
|
|
- }
|
5983
|
|
- fmt.Println(string(out))
|
5984
|
|
- return hex.EncodeToString(out), inputLog
|
5985
|
|
- } else {
|
|
5798
|
+ {
|
5986
|
5799
|
|
5987
|
5800
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
5988
|
5801
|
request, err := http.NewRequest("POST", url, reader)
|
|
@@ -6424,16 +6237,7 @@ func Gdyb3262(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
6424
|
6237
|
url = gdyb_url + "3262"
|
6425
|
6238
|
}
|
6426
|
6239
|
|
6427
|
|
- if insuplc_admdvs == "421300" {
|
6428
|
|
- var json2 string
|
6429
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
|
6430
|
|
- out, err := cmd.Output()
|
6431
|
|
- if err != nil {
|
6432
|
|
- fmt.Println("error:", err.Error())
|
6433
|
|
- }
|
6434
|
|
- fmt.Println(string(out))
|
6435
|
|
- return hex.EncodeToString(out), inputLog
|
6436
|
|
- } else {
|
|
6240
|
+ {
|
6437
|
6241
|
|
6438
|
6242
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
6439
|
6243
|
request, err := http.NewRequest("POST", url, reader)
|
|
@@ -6525,16 +6329,7 @@ func Gdyb9001(org_name string, doctor string, fixmedins_code string, insuplc_adm
|
6525
|
6329
|
url = gdyb_url + "9001"
|
6526
|
6330
|
}
|
6527
|
6331
|
|
6528
|
|
- if insuplc_admdvs == "421300" {
|
6529
|
|
- var json2 string
|
6530
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
|
6531
|
|
- out, err := cmd.Output()
|
6532
|
|
- if err != nil {
|
6533
|
|
- fmt.Println("error:", err.Error())
|
6534
|
|
- }
|
6535
|
|
- fmt.Println(string(out))
|
6536
|
|
- return hex.EncodeToString(out), inputLog
|
6537
|
|
- } else {
|
|
6332
|
+ {
|
6538
|
6333
|
|
6539
|
6334
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
6540
|
6335
|
|
|
@@ -6619,16 +6414,7 @@ func Gdyb9001Two(org_name string, doctor string, fixmedins_code string, insuplc_
|
6619
|
6414
|
url = gdyb_url + "9001"
|
6620
|
6415
|
}
|
6621
|
6416
|
|
6622
|
|
- if insuplc_admdvs == "421300" {
|
6623
|
|
- var json2 string
|
6624
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
|
6625
|
|
- out, err := cmd.Output()
|
6626
|
|
- if err != nil {
|
6627
|
|
- fmt.Println("error:", err.Error())
|
6628
|
|
- }
|
6629
|
|
- fmt.Println(string(out))
|
6630
|
|
- return hex.EncodeToString(out), inputLog
|
6631
|
|
- } else {
|
|
6417
|
+ {
|
6632
|
6418
|
|
6633
|
6419
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
6634
|
6420
|
|
|
@@ -6792,16 +6578,7 @@ func Gdyb1101D(certNo string, org_name string, doctor string, fixmedins_code str
|
6792
|
6578
|
url = gdyb_url + "1101"
|
6793
|
6579
|
}
|
6794
|
6580
|
|
6795
|
|
- if insuplc_admdvs == "421300" {
|
6796
|
|
- var json2 string
|
6797
|
|
- cmd := exec.Command("java", "-jar", "yh_hb_fat.jar", "1101", string(bytesData), json2)
|
6798
|
|
- out, err := cmd.Output()
|
6799
|
|
- if err != nil {
|
6800
|
|
- fmt.Println("error:", err.Error())
|
6801
|
|
- }
|
6802
|
|
- fmt.Println(string(out))
|
6803
|
|
- return hex.EncodeToString(out), inputLog
|
6804
|
|
- } else {
|
|
6581
|
+ {
|
6805
|
6582
|
|
6806
|
6583
|
//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
6807
|
6584
|
request, err := http.NewRequest("POST", url, reader)
|
|
@@ -7438,7 +7215,7 @@ func Gdyb3507(struct3507 models.Struct3507, secret_key string) (string, string)
|
7438
|
7215
|
input := make(map[string]interface{})
|
7439
|
7216
|
inputData := make(map[string]interface{})
|
7440
|
7217
|
inputMessage["infno"] = "3507" // 交易编码
|
7441
|
|
- inputData["fixmedins_bchno"] = struct3507.FixmedinsCode // 人员编号 (来自1101接口返回)
|
|
7218
|
+ inputData["fixmedins_bchno"] = struct3507.FixmedinsBchno // 人员编号 (来自1101接口返回)
|
7442
|
7219
|
inputData["inv_data_type"] = struct3507.InvDataType // 人员编号 (来自1101接口返回)
|
7443
|
7220
|
|
7444
|
7221
|
input["data"] = inputData
|