|
@@ -53,9 +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
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
|
57
|
57
|
|
58
|
|
- 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"
|
59
|
59
|
request, err := http.NewRequest("POST", url, reader)
|
60
|
60
|
if err != nil {
|
61
|
61
|
fmt.Println(err.Error())
|
|
@@ -63,7 +63,7 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
|
63
|
63
|
}
|
64
|
64
|
|
65
|
65
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
66
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
66
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
67
|
67
|
request.Header.Set("x-tif-signature", signature)
|
68
|
68
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
69
|
69
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -120,9 +120,9 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
|
120
|
120
|
return err.Error()
|
121
|
121
|
}
|
122
|
122
|
reader := bytes.NewReader(bytesData)
|
123
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2201"
|
|
123
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2201"
|
124
|
124
|
|
125
|
|
- 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"
|
126
|
126
|
request, err := http.NewRequest("POST", url, reader)
|
127
|
127
|
if err != nil {
|
128
|
128
|
fmt.Println(err.Error())
|
|
@@ -130,7 +130,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
|
130
|
130
|
}
|
131
|
131
|
|
132
|
132
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
133
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
133
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
134
|
134
|
request.Header.Set("x-tif-signature", signature)
|
135
|
135
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
136
|
136
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -178,9 +178,9 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
|
178
|
178
|
}
|
179
|
179
|
reader := bytes.NewReader(bytesData)
|
180
|
180
|
|
181
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2202"
|
|
181
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2202"
|
182
|
182
|
|
183
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
|
|
183
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
|
184
|
184
|
request, err := http.NewRequest("POST", url, reader)
|
185
|
185
|
if err != nil {
|
186
|
186
|
fmt.Println(err.Error())
|
|
@@ -189,7 +189,7 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
|
189
|
189
|
|
190
|
190
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
191
|
191
|
//request.Header.Set("x-tif-paasid", "test_hosp")
|
192
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
192
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
193
|
193
|
|
194
|
194
|
request.Header.Set("x-tif-signature", signature)
|
195
|
195
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
|
@@ -261,9 +261,9 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, di
|
261
|
261
|
}
|
262
|
262
|
reader := bytes.NewReader(bytesData)
|
263
|
263
|
|
264
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2203"
|
|
264
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2203"
|
265
|
265
|
|
266
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
|
|
266
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
|
267
|
267
|
request, err := http.NewRequest("POST", url, reader)
|
268
|
268
|
if err != nil {
|
269
|
269
|
fmt.Println(err.Error())
|
|
@@ -271,7 +271,7 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, di
|
271
|
271
|
}
|
272
|
272
|
|
273
|
273
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
274
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
274
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
275
|
275
|
request.Header.Set("x-tif-signature", signature)
|
276
|
276
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
277
|
277
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -465,9 +465,9 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
465
|
465
|
return ""
|
466
|
466
|
}
|
467
|
467
|
reader := bytes.NewReader(bytesData)
|
468
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2204"
|
|
468
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2204"
|
469
|
469
|
|
470
|
|
- 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"
|
471
|
471
|
request, err := http.NewRequest("POST", url, reader)
|
472
|
472
|
if err != nil {
|
473
|
473
|
fmt.Println(err.Error())
|
|
@@ -475,7 +475,7 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
|
475
|
475
|
}
|
476
|
476
|
|
477
|
477
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
478
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
478
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
479
|
479
|
request.Header.Set("x-tif-signature", signature)
|
480
|
480
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
481
|
481
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -524,9 +524,9 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
|
524
|
524
|
return err.Error()
|
525
|
525
|
}
|
526
|
526
|
reader := bytes.NewReader(bytesData)
|
527
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2205"
|
|
527
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2205"
|
528
|
528
|
|
529
|
|
- 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"
|
530
|
530
|
request, err := http.NewRequest("POST", url, reader)
|
531
|
531
|
fmt.Println(err)
|
532
|
532
|
|
|
@@ -537,7 +537,7 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
|
537
|
537
|
}
|
538
|
538
|
|
539
|
539
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
540
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
540
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
541
|
541
|
request.Header.Set("x-tif-signature", signature)
|
542
|
542
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
543
|
543
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -593,9 +593,9 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
593
|
593
|
}
|
594
|
594
|
reader := bytes.NewReader(bytesData)
|
595
|
595
|
|
596
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2206"
|
|
596
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2206"
|
597
|
597
|
|
598
|
|
- url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
|
|
598
|
+ //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
|
599
|
599
|
request, err := http.NewRequest("POST", url, reader)
|
600
|
600
|
if err != nil {
|
601
|
601
|
fmt.Println(err.Error())
|
|
@@ -603,7 +603,7 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
603
|
603
|
}
|
604
|
604
|
|
605
|
605
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
606
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
606
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
607
|
607
|
request.Header.Set("x-tif-signature", signature)
|
608
|
608
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
609
|
609
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -659,9 +659,9 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
659
|
659
|
return err.Error()
|
660
|
660
|
}
|
661
|
661
|
reader := bytes.NewReader(bytesData)
|
662
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2207"
|
|
662
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2207"
|
663
|
663
|
|
664
|
|
- 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"
|
665
|
665
|
request, err := http.NewRequest("POST", url, reader)
|
666
|
666
|
if err != nil {
|
667
|
667
|
fmt.Println(err.Error())
|
|
@@ -669,7 +669,7 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
|
669
|
669
|
}
|
670
|
670
|
|
671
|
671
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
672
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
672
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
673
|
673
|
request.Header.Set("x-tif-signature", signature)
|
674
|
674
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
675
|
675
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -717,9 +717,9 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
|
717
|
717
|
return err.Error()
|
718
|
718
|
}
|
719
|
719
|
reader := bytes.NewReader(bytesData)
|
720
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2208"
|
|
720
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2208"
|
721
|
721
|
|
722
|
|
- 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"
|
723
|
723
|
request, err := http.NewRequest("POST", url, reader)
|
724
|
724
|
if err != nil {
|
725
|
725
|
fmt.Println(err.Error())
|
|
@@ -727,7 +727,7 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
|
727
|
727
|
}
|
728
|
728
|
|
729
|
729
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
730
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
730
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
731
|
731
|
request.Header.Set("x-tif-signature", signature)
|
732
|
732
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
733
|
733
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -784,9 +784,9 @@ func Gdyb3201(baseParams models.BaseParams, businessParams models.BusinessParams
|
784
|
784
|
return err.Error()
|
785
|
785
|
}
|
786
|
786
|
reader := bytes.NewReader(bytesData)
|
787
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3201"
|
|
787
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3201"
|
788
|
788
|
|
789
|
|
- 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"
|
790
|
790
|
request, err := http.NewRequest("POST", url, reader)
|
791
|
791
|
if err != nil {
|
792
|
792
|
fmt.Println(err.Error())
|
|
@@ -794,7 +794,7 @@ func Gdyb3201(baseParams models.BaseParams, businessParams models.BusinessParams
|
794
|
794
|
}
|
795
|
795
|
|
796
|
796
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
797
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
797
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
798
|
798
|
request.Header.Set("x-tif-signature", signature)
|
799
|
799
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
800
|
800
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -852,9 +852,9 @@ func Gdyb9101(baseParams models.BaseParams, file_name string, file_byte []byte)
|
852
|
852
|
return err.Error()
|
853
|
853
|
}
|
854
|
854
|
reader := bytes.NewReader(bytesData)
|
855
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9101"
|
|
855
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9101"
|
856
|
856
|
|
857
|
|
- 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"
|
858
|
858
|
request, err := http.NewRequest("POST", url, reader)
|
859
|
859
|
if err != nil {
|
860
|
860
|
fmt.Println(err.Error())
|
|
@@ -862,7 +862,7 @@ func Gdyb9101(baseParams models.BaseParams, file_name string, file_byte []byte)
|
862
|
862
|
}
|
863
|
863
|
|
864
|
864
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
865
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
865
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
866
|
866
|
request.Header.Set("x-tif-signature", signature)
|
867
|
867
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
868
|
868
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -906,9 +906,9 @@ func Gdyb9102(baseParams models.BaseParams, file_name string, file_qury_no strin
|
906
|
906
|
return err.Error()
|
907
|
907
|
}
|
908
|
908
|
reader := bytes.NewReader(bytesData)
|
909
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9102"
|
|
909
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9102"
|
910
|
910
|
|
911
|
|
- 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"
|
912
|
912
|
request, err := http.NewRequest("POST", url, reader)
|
913
|
913
|
if err != nil {
|
914
|
914
|
fmt.Println(err.Error())
|
|
@@ -916,7 +916,7 @@ func Gdyb9102(baseParams models.BaseParams, file_name string, file_qury_no strin
|
916
|
916
|
}
|
917
|
917
|
|
918
|
918
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
919
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
919
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
920
|
920
|
request.Header.Set("x-tif-signature", signature)
|
921
|
921
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
922
|
922
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -966,16 +966,16 @@ func Gdyb3202(baseParams models.BaseParams, businessParams models.BusinessParams
|
966
|
966
|
return err.Error()
|
967
|
967
|
}
|
968
|
968
|
reader := bytes.NewReader(bytesData)
|
969
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3202"
|
|
969
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3202"
|
970
|
970
|
|
971
|
|
- 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"
|
972
|
972
|
request, err := http.NewRequest("POST", url, reader)
|
973
|
973
|
if err != nil {
|
974
|
974
|
fmt.Println(err.Error())
|
975
|
975
|
return err.Error()
|
976
|
976
|
}
|
977
|
977
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
978
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
978
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
979
|
979
|
request.Header.Set("x-tif-signature", signature)
|
980
|
980
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
981
|
981
|
request.Header.Set("x-tif-nonce", nonce)
|
|
@@ -1018,16 +1018,16 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
|
1018
|
1018
|
return err.Error()
|
1019
|
1019
|
}
|
1020
|
1020
|
reader := bytes.NewReader(bytesData)
|
1021
|
|
- //url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/5203"
|
|
1021
|
+ url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/5203"
|
1022
|
1022
|
|
1023
|
|
- 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"
|
1024
|
1024
|
request, err := http.NewRequest("POST", url, reader)
|
1025
|
1025
|
if err != nil {
|
1026
|
1026
|
fmt.Println(err.Error())
|
1027
|
1027
|
return err.Error()
|
1028
|
1028
|
}
|
1029
|
1029
|
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
|
1030
|
|
- request.Header.Set("x-tif-paasid", "test_hosp")
|
|
1030
|
+ request.Header.Set("x-tif-paasid", "sg03_prd")
|
1031
|
1031
|
request.Header.Set("x-tif-signature", signature)
|
1032
|
1032
|
request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
|
1033
|
1033
|
request.Header.Set("x-tif-nonce", nonce)
|