|
@@ -53,8 +53,9 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
|
53
|
53
|
return err.Error()
|
54
|
54
|
}
|
55
|
55
|
reader := bytes.NewReader(bytesData)
|
|
56
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
|
56
|
57
|
|
57
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
|
58
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
|
58
|
59
|
request, err := http.NewRequest("POST", url, reader)
|
59
|
60
|
if err != nil {
|
60
|
61
|
fmt.Println(err.Error())
|
|
@@ -62,7 +63,7 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
|
62
|
63
|
}
|
63
|
64
|
|
64
|
65
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
65
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
66
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
66
|
67
|
request.Header.Set("x-tif-signature", signature)
|
67
|
68
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
68
|
69
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -119,8 +120,9 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
|
119
|
120
|
return err.Error()
|
120
|
121
|
}
|
121
|
122
|
reader := bytes.NewReader(bytesData)
|
|
123
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2201"
|
122
|
124
|
|
123
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2201"
|
|
125
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2201"
|
124
|
126
|
request, err := http.NewRequest("POST", url, reader)
|
125
|
127
|
if err != nil {
|
126
|
128
|
fmt.Println(err.Error())
|
|
@@ -128,7 +130,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
|
128
|
130
|
}
|
129
|
131
|
|
130
|
132
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
131
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
133
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
132
|
134
|
request.Header.Set("x-tif-signature", signature)
|
133
|
135
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
134
|
136
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -176,7 +178,9 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
|
176
|
178
|
}
|
177
|
179
|
reader := bytes.NewReader(bytesData)
|
178
|
180
|
|
179
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
|
|
181
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2202"
|
|
182
|
+
|
|
183
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
|
180
|
184
|
request, err := http.NewRequest("POST", url, reader)
|
181
|
185
|
if err != nil {
|
182
|
186
|
fmt.Println(err.Error())
|
|
@@ -184,7 +188,9 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
|
184
|
188
|
}
|
185
|
189
|
|
186
|
190
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
187
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
191
|
+ //request.Header.Set("x-tif-paasid", "test_hosp")
|
|
192
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
|
193
|
+
|
188
|
194
|
request.Header.Set("x-tif-signature", signature)
|
189
|
195
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
190
|
196
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -255,7 +261,9 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, di
|
255
|
261
|
}
|
256
|
262
|
reader := bytes.NewReader(bytesData)
|
257
|
263
|
|
258
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
|
|
264
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2203"
|
|
265
|
+
|
|
266
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
|
259
|
267
|
request, err := http.NewRequest("POST", url, reader)
|
260
|
268
|
if err != nil {
|
261
|
269
|
fmt.Println(err.Error())
|
|
@@ -263,7 +271,7 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, di
|
263
|
271
|
}
|
264
|
272
|
|
265
|
273
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
266
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
274
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
267
|
275
|
request.Header.Set("x-tif-signature", signature)
|
268
|
276
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
269
|
277
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -457,8 +465,9 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
457
|
465
|
return ""
|
458
|
466
|
}
|
459
|
467
|
reader := bytes.NewReader(bytesData)
|
|
468
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2204"
|
460
|
469
|
|
461
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
|
|
470
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
|
462
|
471
|
request, err := http.NewRequest("POST", url, reader)
|
463
|
472
|
if err != nil {
|
464
|
473
|
fmt.Println(err.Error())
|
|
@@ -466,7 +475,7 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
466
|
475
|
}
|
467
|
476
|
|
468
|
477
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
469
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
478
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
470
|
479
|
request.Header.Set("x-tif-signature", signature)
|
471
|
480
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
472
|
481
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -515,8 +524,9 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
|
515
|
524
|
return err.Error()
|
516
|
525
|
}
|
517
|
526
|
reader := bytes.NewReader(bytesData)
|
|
527
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2205"
|
518
|
528
|
|
519
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
|
|
529
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
|
520
|
530
|
request, err := http.NewRequest("POST", url, reader)
|
521
|
531
|
fmt.Println(err)
|
522
|
532
|
|
|
@@ -527,7 +537,7 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
|
527
|
537
|
}
|
528
|
538
|
|
529
|
539
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
530
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
540
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
531
|
541
|
request.Header.Set("x-tif-signature", signature)
|
532
|
542
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
533
|
543
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -583,7 +593,9 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
583
|
593
|
}
|
584
|
594
|
reader := bytes.NewReader(bytesData)
|
585
|
595
|
|
586
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
|
|
596
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2206"
|
|
597
|
+
|
|
598
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
|
587
|
599
|
request, err := http.NewRequest("POST", url, reader)
|
588
|
600
|
if err != nil {
|
589
|
601
|
fmt.Println(err.Error())
|
|
@@ -591,7 +603,7 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
591
|
603
|
}
|
592
|
604
|
|
593
|
605
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
594
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
606
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
595
|
607
|
request.Header.Set("x-tif-signature", signature)
|
596
|
608
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
597
|
609
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -647,8 +659,9 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
647
|
659
|
return err.Error()
|
648
|
660
|
}
|
649
|
661
|
reader := bytes.NewReader(bytesData)
|
|
662
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2207"
|
650
|
663
|
|
651
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
|
|
664
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
|
652
|
665
|
request, err := http.NewRequest("POST", url, reader)
|
653
|
666
|
if err != nil {
|
654
|
667
|
fmt.Println(err.Error())
|
|
@@ -656,7 +669,7 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
656
|
669
|
}
|
657
|
670
|
|
658
|
671
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
659
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
672
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
660
|
673
|
request.Header.Set("x-tif-signature", signature)
|
661
|
674
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
662
|
675
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -704,8 +717,9 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
|
704
|
717
|
return err.Error()
|
705
|
718
|
}
|
706
|
719
|
reader := bytes.NewReader(bytesData)
|
|
720
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2208"
|
707
|
721
|
|
708
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
|
|
722
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
|
709
|
723
|
request, err := http.NewRequest("POST", url, reader)
|
710
|
724
|
if err != nil {
|
711
|
725
|
fmt.Println(err.Error())
|
|
@@ -713,7 +727,7 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
|
713
|
727
|
}
|
714
|
728
|
|
715
|
729
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
716
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
730
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
717
|
731
|
request.Header.Set("x-tif-signature", signature)
|
718
|
732
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
719
|
733
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -770,8 +784,9 @@ func Gdyb3201(baseParams models.BaseParams, businessParams models.BusinessParams
|
770
|
784
|
return err.Error()
|
771
|
785
|
}
|
772
|
786
|
reader := bytes.NewReader(bytesData)
|
|
787
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3201"
|
773
|
788
|
|
774
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3201"
|
|
789
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3201"
|
775
|
790
|
request, err := http.NewRequest("POST", url, reader)
|
776
|
791
|
if err != nil {
|
777
|
792
|
fmt.Println(err.Error())
|
|
@@ -779,7 +794,7 @@ func Gdyb3201(baseParams models.BaseParams, businessParams models.BusinessParams
|
779
|
794
|
}
|
780
|
795
|
|
781
|
796
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
782
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
797
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
783
|
798
|
request.Header.Set("x-tif-signature", signature)
|
784
|
799
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
785
|
800
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -837,8 +852,9 @@ func Gdyb9101(baseParams models.BaseParams, file_name string, file_byte []byte)
|
837
|
852
|
return err.Error()
|
838
|
853
|
}
|
839
|
854
|
reader := bytes.NewReader(bytesData)
|
|
855
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9101"
|
840
|
856
|
|
841
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9101"
|
|
857
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9101"
|
842
|
858
|
request, err := http.NewRequest("POST", url, reader)
|
843
|
859
|
if err != nil {
|
844
|
860
|
fmt.Println(err.Error())
|
|
@@ -846,7 +862,7 @@ func Gdyb9101(baseParams models.BaseParams, file_name string, file_byte []byte)
|
846
|
862
|
}
|
847
|
863
|
|
848
|
864
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
849
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
865
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
850
|
866
|
request.Header.Set("x-tif-signature", signature)
|
851
|
867
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
852
|
868
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -890,8 +906,9 @@ func Gdyb9102(baseParams models.BaseParams, file_name string, file_qury_no strin
|
890
|
906
|
return err.Error()
|
891
|
907
|
}
|
892
|
908
|
reader := bytes.NewReader(bytesData)
|
|
909
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9102"
|
893
|
910
|
|
894
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9102"
|
|
911
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9102"
|
895
|
912
|
request, err := http.NewRequest("POST", url, reader)
|
896
|
913
|
if err != nil {
|
897
|
914
|
fmt.Println(err.Error())
|
|
@@ -899,7 +916,7 @@ func Gdyb9102(baseParams models.BaseParams, file_name string, file_qury_no strin
|
899
|
916
|
}
|
900
|
917
|
|
901
|
918
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
902
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
919
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
903
|
920
|
request.Header.Set("x-tif-signature", signature)
|
904
|
921
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
905
|
922
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -949,15 +966,16 @@ func Gdyb3202(baseParams models.BaseParams, businessParams models.BusinessParams
|
949
|
966
|
return err.Error()
|
950
|
967
|
}
|
951
|
968
|
reader := bytes.NewReader(bytesData)
|
|
969
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3202"
|
952
|
970
|
|
953
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3202"
|
|
971
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3202"
|
954
|
972
|
request, err := http.NewRequest("POST", url, reader)
|
955
|
973
|
if err != nil {
|
956
|
974
|
fmt.Println(err.Error())
|
957
|
975
|
return err.Error()
|
958
|
976
|
}
|
959
|
977
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
960
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
978
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
961
|
979
|
request.Header.Set("x-tif-signature", signature)
|
962
|
980
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
963
|
981
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -1000,15 +1018,16 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
|
1000
|
1018
|
return err.Error()
|
1001
|
1019
|
}
|
1002
|
1020
|
reader := bytes.NewReader(bytesData)
|
|
1021
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/5203"
|
1003
|
1022
|
|
1004
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/5203"
|
|
1023
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/5203"
|
1005
|
1024
|
request, err := http.NewRequest("POST", url, reader)
|
1006
|
1025
|
if err != nil {
|
1007
|
1026
|
fmt.Println(err.Error())
|
1008
|
1027
|
return err.Error()
|
1009
|
1028
|
}
|
1010
|
1029
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
1011
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
1030
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
1012
|
1031
|
request.Header.Set("x-tif-signature", signature)
|
1013
|
1032
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
1014
|
1033
|
request.Header.Set("x-tif-nonce", nonce)
|