csx 3 år sedan
förälder
incheckning
6a715b17c5
2 ändrade filer med 125 tillägg och 127 borttagningar
  1. 74 76
      controllers/sz/sz_his_api_controller.go
  2. 51 51
      service/gdyb_service.go

+ 74 - 76
controllers/sz/sz_his_api_controller.go Visa fil

@@ -2,10 +2,7 @@ package sz
2 2
 
3 3
 import (
4 4
 	"gdyb/controllers"
5
-	"gdyb/enums"
6
-	"gdyb/service"
7 5
 	"github.com/astaxie/beego"
8
-	"time"
9 6
 )
10 7
 
11 8
 type SZHisApiController struct {
@@ -605,79 +602,80 @@ type Custom struct {
605 602
 }
606 603
 
607 604
 //获取个人信息----挂号-----上传就诊信息
608
-func (c *SZHisApiController) GetRegisterInfo() {
609
-	id, _ := c.GetInt64("id")
610
-	record_time := c.GetString("record_time")
611
-	settlementValue, _ := c.GetInt64("settlement_value")
612
-	medical_insurance_card := c.GetString("medical_insurance_card")
613
-	name := c.GetString("name")
614
-	id_card_type, _ := c.GetInt64("id_card_type")
615
-	certificates, _ := c.GetInt64("certificates")
616
-	medical_care, _ := c.GetInt64("medical_care")
617
-	birthday := c.GetString("birthday")
618
-	age, _ := c.GetInt64("age")
619
-	id_card := c.GetString("id_card")
620
-	register_type, _ := c.GetInt64("register")
621
-	doctor, _ := c.GetInt64("doctor")
622
-	department, _ := c.GetInt64("department")
623
-	gender, _ := c.GetInt64("sex")
624
-	phone := c.GetString("phone")
625
-	registration_fee, _ := c.GetFloat("registration_fee")
626
-	medical_expenses, _ := c.GetFloat("medical_expenses")
627
-	social_type, _ := c.GetInt64("social_type")
628
-	admin_user_id, _ := c.GetInt64("admin_user_id")
629
-
630
-	diagnosis_id, _ := c.GetInt64("diagnosis")
631
-	sick_type, _ := c.GetInt64("sick_type")
632
-	reg_type := c.GetString("p_type")
633
-
634
-	timeLayout := "2006-01-02"
635
-	loc, _ := time.LoadLocation("Local")
636
-	birthdays, _ := time.ParseInLocation(timeLayout+" 15:04:05", birthday+" 00:00:00", loc)
637
-	birthUnix := birthdays.Unix()
638
-
639
-	theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", record_time+" 00:00:00", loc)
640
-	if err != nil {
641
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
642
-		return
643
-	}
644
-	recordDateTime := theTime.Unix()
645
-
646
-	adminInfo := c.GetAdminUserInfo()
647
-	var patient service.Patients
648
-	if id == 0 {
649
-		patient, _ = service.GetPatientByIDCard(id_card, adminInfo.CurrentOrgId)
650
-	} else {
651
-		patient, _ = service.GetPatientByIDTwo(adminInfo.CurrentOrgId, id)
652
-	}
653
-
654
-	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminInfo.CurrentOrgId, id, recordDateTime)
655
-	if patientPrescription.ID == 0 {
656
-		patientPrescription, _ = service.FindLastPatientPrescriptionInfo(adminInfo.CurrentOrgId, id, recordDateTime)
657
-	}
658
-
659
-	//adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, adminInfo.AdminUser.Id)
660
-
661
-	//diagnosisConfig, _ := service.FindDiagnoseById(diagnosis_id)
662
-	//sickConfig, _ := service.FindSickById(sick_type)
663
-	//miConfig, _ := service.FindMedicalInsuranceInfo(adminInfo.CurrentOrgId)
664
-	if patient.ID == 0 {
665
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodePatientNoExist)
666
-		return
667
-	}
668
-	if len(patient.IdCardNo) == 0 {
669
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeIDCartNo)
670
-		return
671
-	}
672
-	config, _ := service.GetMedicalInsuranceConfig(adminInfo.CurrentOrgId)
673
-
674
-	if config.IsOpen == 1 {
675
-
676
-		//c.ServeSuccessJSON(map[string]interface{}{
677
-		//	"his_info": hisPatient,
678
-		//})
679
-	}
680
-}
605
+//func (c *SZHisApiController) GetRegisterInfo() {
606
+//	id, _ := c.GetInt64("id")
607
+//	record_time := c.GetString("record_time")
608
+//	settlementValue, _ := c.GetInt64("settlement_value")
609
+//	medical_insurance_card := c.GetString("medical_insurance_card")
610
+//	name := c.GetString("name")
611
+//	id_card_type, _ := c.GetInt64("id_card_type")
612
+//	certificates, _ := c.GetInt64("certificates")
613
+//	medical_care, _ := c.GetInt64("medical_care")
614
+//	birthday := c.GetString("birthday")
615
+//	age, _ := c.GetInt64("age")
616
+//	id_card := c.GetString("id_card")
617
+//	register_type, _ := c.GetInt64("register")
618
+//	doctor, _ := c.GetInt64("doctor")
619
+//	department, _ := c.GetInt64("department")
620
+//	gender, _ := c.GetInt64("sex")
621
+//	phone := c.GetString("phone")
622
+//	registration_fee, _ := c.GetFloat("registration_fee")
623
+//	medical_expenses, _ := c.GetFloat("medical_expenses")
624
+//	social_type, _ := c.GetInt64("social_type")
625
+//	admin_user_id, _ := c.GetInt64("admin_user_id")
626
+//
627
+//	diagnosis_id, _ := c.GetInt64("diagnosis")
628
+//	sick_type, _ := c.GetInt64("sick_type")
629
+//	reg_type := c.GetString("p_type")
630
+//
631
+//	timeLayout := "2006-01-02"
632
+//	loc, _ := time.LoadLocation("Local")
633
+//	birthdays, _ := time.ParseInLocation(timeLayout+" 15:04:05", birthday+" 00:00:00", loc)
634
+//	birthUnix := birthdays.Unix()
635
+//
636
+//	theTime, err := time.ParseInLocation(timeLayout+" 15:04:05", record_time+" 00:00:00", loc)
637
+//	if err != nil {
638
+//		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
639
+//		return
640
+//	}
641
+//	recordDateTime := theTime.Unix()
642
+//
643
+//	adminInfo := c.GetAdminUserInfo()
644
+//	var patient service.Patients
645
+//	if id == 0 {
646
+//		patient, _ = service.GetPatientByIDCard(id_card, adminInfo.CurrentOrgId)
647
+//	} else {
648
+//		patient, _ = service.GetPatientByIDTwo(adminInfo.CurrentOrgId, id)
649
+//	}
650
+//
651
+//	patientPrescription, _ := service.FindPatientPrescriptionInfo(adminInfo.CurrentOrgId, id, recordDateTime)
652
+//	if patientPrescription.ID == 0 {
653
+//		patientPrescription, _ = service.FindLastPatientPrescriptionInfo(adminInfo.CurrentOrgId, id, recordDateTime)
654
+//	}
655
+//
656
+//	adminRole, _ := service.GetAdminUserInfoByID(adminInfo.CurrentOrgId, adminInfo.AdminUser.Id)
657
+//
658
+//	//diagnosisConfig, _ := service.FindDiagnoseById(diagnosis_id)
659
+//	//sickConfig, _ := service.FindSickById(sick_type)
660
+//	miConfig, _ := service.FindMedicalInsuranceInfo(adminInfo.CurrentOrgId)
661
+//	if patient.ID == 0 {
662
+//		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodePatientNoExist)
663
+//		return
664
+//	}
665
+//	if len(patient.IdCardNo) == 0 {
666
+//		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeIDCartNo)
667
+//		return
668
+//	}
669
+//	config, _ := service.GetMedicalInsuranceConfig(adminInfo.CurrentOrgId)
670
+//
671
+//	if config.IsOpen == 1 {
672
+//		//service.SzybMZ002(patientPrescription.Doctor,patientPrescription.DoctorId,miConfig.Code,patientPrescription.XtHisDepartment.Number,)
673
+//
674
+//		//c.ServeSuccessJSON(map[string]interface{}{
675
+//		//	"his_info": hisPatient,
676
+//		//})
677
+//	}
678
+//}
681 679
 
682 680
 //上传明细----预结算----确认订单
683 681
 //func (c *SZHisApiController) GetUploadInfo() {

+ 51 - 51
service/gdyb_service.go Visa fil

@@ -50,8 +50,8 @@ func Gdyb1201(certNo string, org_name string, doctor string, fixmedins_code stri
50 50
 		return err.Error()
51 51
 	}
52 52
 	reader := bytes.NewReader(bytesData)
53
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1201"
54
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1201"
53
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1201"
54
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1201"
55 55
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
56 56
 	request, err := http.NewRequest("POST", url, reader)
57 57
 	if err != nil {
@@ -60,7 +60,7 @@ func Gdyb1201(certNo string, org_name string, doctor string, fixmedins_code stri
60 60
 	}
61 61
 
62 62
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
63
-	request.Header.Set("x-tif-paasid", "test_hosp")
63
+	request.Header.Set("x-tif-paasid", "sg03_prd")
64 64
 	request.Header.Set("x-tif-signature", signature)
65 65
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
66 66
 	request.Header.Set("x-tif-nonce", nonce)
@@ -120,8 +120,8 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
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/1101"
124
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
123
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/1101"
124
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
125 125
 
126 126
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/1101"
127 127
 	request, err := http.NewRequest("POST", url, reader)
@@ -131,7 +131,7 @@ func Gdyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
131 131
 	}
132 132
 
133 133
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
134
-	request.Header.Set("x-tif-paasid", "test_hosp")
134
+	request.Header.Set("x-tif-paasid", "sg03_prd")
135 135
 	request.Header.Set("x-tif-signature", signature)
136 136
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
137 137
 	request.Header.Set("x-tif-nonce", nonce)
@@ -195,8 +195,8 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
195 195
 		return err.Error()
196 196
 	}
197 197
 	reader := bytes.NewReader(bytesData)
198
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2201"
199
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2201"
198
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2201"
199
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2201"
200 200
 
201 201
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2201"
202 202
 	request, err := http.NewRequest("POST", url, reader)
@@ -206,7 +206,7 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, doc
206 206
 	}
207 207
 
208 208
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
209
-	request.Header.Set("x-tif-paasid", "test_hosp")
209
+	request.Header.Set("x-tif-paasid", "sg03_prd")
210 210
 	request.Header.Set("x-tif-signature", signature)
211 211
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
212 212
 	request.Header.Set("x-tif-nonce", nonce)
@@ -254,8 +254,8 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
254 254
 	}
255 255
 	reader := bytes.NewReader(bytesData)
256 256
 
257
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2202"
258
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
257
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2202"
258
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
259 259
 
260 260
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2202"
261 261
 	request, err := http.NewRequest("POST", url, reader)
@@ -266,7 +266,7 @@ func Gdyb2202(psnNo string, mdtrtId string, ipt_otp_no string, org_name string,
266 266
 
267 267
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
268 268
 	//request.Header.Set("x-tif-paasid", "test_hosp")
269
-	request.Header.Set("x-tif-paasid", "test_hosp")
269
+	request.Header.Set("x-tif-paasid", "sg03_prd")
270 270
 
271 271
 	request.Header.Set("x-tif-signature", signature)
272 272
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
@@ -338,8 +338,8 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, di
338 338
 	}
339 339
 	reader := bytes.NewReader(bytesData)
340 340
 
341
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2203"
342
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
341
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2203"
342
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
343 343
 
344 344
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2203"
345 345
 	request, err := http.NewRequest("POST", url, reader)
@@ -349,7 +349,7 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, di
349 349
 	}
350 350
 
351 351
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
352
-	request.Header.Set("x-tif-paasid", "test_hosp")
352
+	request.Header.Set("x-tif-paasid", "sg03_prd")
353 353
 	request.Header.Set("x-tif-signature", signature)
354 354
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
355 355
 	request.Header.Set("x-tif-nonce", nonce)
@@ -543,8 +543,8 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
543 543
 		return ""
544 544
 	}
545 545
 	reader := bytes.NewReader(bytesData)
546
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2204"
547
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
546
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2204"
547
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
548 548
 
549 549
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2204"
550 550
 	request, err := http.NewRequest("POST", url, reader)
@@ -554,7 +554,7 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
554 554
 	}
555 555
 
556 556
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
557
-	request.Header.Set("x-tif-paasid", "test_hosp")
557
+	request.Header.Set("x-tif-paasid", "sg03_prd")
558 558
 	request.Header.Set("x-tif-signature", signature)
559 559
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
560 560
 	request.Header.Set("x-tif-nonce", nonce)
@@ -603,8 +603,8 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
603 603
 		return err.Error()
604 604
 	}
605 605
 	reader := bytes.NewReader(bytesData)
606
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2205"
607
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
606
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2205"
607
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
608 608
 
609 609
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2205"
610 610
 	request, err := http.NewRequest("POST", url, reader)
@@ -617,7 +617,7 @@ func Gdyb2205(psnNo string, mdtrtId string, chrgBchno string, org_name string, d
617 617
 	}
618 618
 
619 619
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
620
-	request.Header.Set("x-tif-paasid", "test_hosp")
620
+	request.Header.Set("x-tif-paasid", "sg03_prd")
621 621
 	request.Header.Set("x-tif-signature", signature)
622 622
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
623 623
 	request.Header.Set("x-tif-nonce", nonce)
@@ -683,8 +683,8 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
683 683
 	}
684 684
 	reader := bytes.NewReader(bytesData)
685 685
 
686
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2206"
687
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
686
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2206"
687
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
688 688
 
689 689
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2206"
690 690
 	request, err := http.NewRequest("POST", url, reader)
@@ -694,7 +694,7 @@ func Gdyb2206(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
694 694
 	}
695 695
 
696 696
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
697
-	request.Header.Set("x-tif-paasid", "test_hosp")
697
+	request.Header.Set("x-tif-paasid", "sg03_prd")
698 698
 	request.Header.Set("x-tif-signature", signature)
699 699
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
700 700
 	request.Header.Set("x-tif-nonce", nonce)
@@ -762,8 +762,8 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
762 762
 		return err.Error()
763 763
 	}
764 764
 	reader := bytes.NewReader(bytesData)
765
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2207"
766
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
765
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2207"
766
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
767 767
 
768 768
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
769 769
 	request, err := http.NewRequest("POST", url, reader)
@@ -773,7 +773,7 @@ func Gdyb2207(psnNo string, mdtrtId string, chrgBchno string, certNo string, ins
773 773
 	}
774 774
 
775 775
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
776
-	request.Header.Set("x-tif-paasid", "test_hosp")
776
+	request.Header.Set("x-tif-paasid", "sg03_prd")
777 777
 	request.Header.Set("x-tif-signature", signature)
778 778
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
779 779
 	request.Header.Set("x-tif-nonce", nonce)
@@ -821,8 +821,8 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
821 821
 		return err.Error()
822 822
 	}
823 823
 	reader := bytes.NewReader(bytesData)
824
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2208"
825
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
824
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/2208"
825
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
826 826
 
827 827
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2208"
828 828
 	request, err := http.NewRequest("POST", url, reader)
@@ -832,7 +832,7 @@ func Gdyb2208(psnNo string, mdtrtId string, setlId string, org_name string, doct
832 832
 	}
833 833
 
834 834
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
835
-	request.Header.Set("x-tif-paasid", "test_hosp")
835
+	request.Header.Set("x-tif-paasid", "sg03_prd")
836 836
 	request.Header.Set("x-tif-signature", signature)
837 837
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
838 838
 	request.Header.Set("x-tif-nonce", nonce)
@@ -905,8 +905,8 @@ func Gdyb6201(org_name string, doctor string, fixmedins_code string, insuplc_adm
905 905
 		return err.Error()
906 906
 	}
907 907
 	reader := bytes.NewReader(bytesData)
908
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/6201"
909
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/6201"
908
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/6201"
909
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/6201"
910 910
 
911 911
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/2207"
912 912
 	request, err := http.NewRequest("POST", url, reader)
@@ -916,7 +916,7 @@ func Gdyb6201(org_name string, doctor string, fixmedins_code string, insuplc_adm
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)
@@ -973,8 +973,8 @@ func Gdyb3201(baseParams models.BaseParams, businessParams models.BusinessParams
973 973
 		return err.Error()
974 974
 	}
975 975
 	reader := bytes.NewReader(bytesData)
976
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3201"
977
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3201"
976
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3201"
977
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3201"
978 978
 
979 979
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3201"
980 980
 	request, err := http.NewRequest("POST", url, reader)
@@ -984,7 +984,7 @@ func Gdyb3201(baseParams models.BaseParams, businessParams models.BusinessParams
984 984
 	}
985 985
 
986 986
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
987
-	request.Header.Set("x-tif-paasid", "test_hosp")
987
+	request.Header.Set("x-tif-paasid", "sg03_prd")
988 988
 	request.Header.Set("x-tif-signature", signature)
989 989
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
990 990
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1042,8 +1042,8 @@ func Gdyb9101(baseParams models.BaseParams, file_name string, file_byte []byte)
1042 1042
 		return err.Error()
1043 1043
 	}
1044 1044
 	reader := bytes.NewReader(bytesData)
1045
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9101"
1046
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9101"
1045
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9101"
1046
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9101"
1047 1047
 
1048 1048
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9101"
1049 1049
 	request, err := http.NewRequest("POST", url, reader)
@@ -1053,7 +1053,7 @@ func Gdyb9101(baseParams models.BaseParams, file_name string, file_byte []byte)
1053 1053
 	}
1054 1054
 
1055 1055
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1056
-	request.Header.Set("x-tif-paasid", "test_hosp")
1056
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1057 1057
 	request.Header.Set("x-tif-signature", signature)
1058 1058
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1059 1059
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1097,9 +1097,9 @@ func Gdyb9102(baseParams models.BaseParams, file_name string, file_qury_no strin
1097 1097
 		return err.Error()
1098 1098
 	}
1099 1099
 	reader := bytes.NewReader(bytesData)
1100
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9102"
1100
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/9102"
1101 1101
 
1102
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9102"
1102
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9102"
1103 1103
 
1104 1104
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/9102"
1105 1105
 	request, err := http.NewRequest("POST", url, reader)
@@ -1109,7 +1109,7 @@ func Gdyb9102(baseParams models.BaseParams, file_name string, file_qury_no strin
1109 1109
 	}
1110 1110
 
1111 1111
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1112
-	request.Header.Set("x-tif-paasid", "test_hosp")
1112
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1113 1113
 	request.Header.Set("x-tif-signature", signature)
1114 1114
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1115 1115
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1159,8 +1159,8 @@ func Gdyb3202(baseParams models.BaseParams, businessParams models.BusinessParams
1159 1159
 		return err.Error()
1160 1160
 	}
1161 1161
 	reader := bytes.NewReader(bytesData)
1162
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3202"
1163
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3202"
1162
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/3202"
1163
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3202"
1164 1164
 
1165 1165
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/3202"
1166 1166
 	request, err := http.NewRequest("POST", url, reader)
@@ -1169,7 +1169,7 @@ func Gdyb3202(baseParams models.BaseParams, businessParams models.BusinessParams
1169 1169
 		return err.Error()
1170 1170
 	}
1171 1171
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1172
-	request.Header.Set("x-tif-paasid", "test_hosp")
1172
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1173 1173
 	request.Header.Set("x-tif-signature", signature)
1174 1174
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1175 1175
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1212,8 +1212,8 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
1212 1212
 		return err.Error()
1213 1213
 	}
1214 1214
 	reader := bytes.NewReader(bytesData)
1215
-	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/5203"
1216
-	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/5203"
1215
+	url := "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/5203"
1216
+	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/5203"
1217 1217
 
1218 1218
 	//url := "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/5203"
1219 1219
 	request, err := http.NewRequest("POST", url, reader)
@@ -1222,7 +1222,7 @@ func Gdyb5203(baseParams models.BaseParams, businessParams models.BusinessParams
1222 1222
 		return err.Error()
1223 1223
 	}
1224 1224
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1225
-	request.Header.Set("x-tif-paasid", "test_hosp")
1225
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1226 1226
 	request.Header.Set("x-tif-signature", signature)
1227 1227
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1228 1228
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1289,7 +1289,7 @@ func Gdyb3301(baseParams *models.BaseParams, name string, codg string) string {
1289 1289
 		return err.Error()
1290 1290
 	}
1291 1291
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1292
-	request.Header.Set("x-tif-paasid", "test_hosp")
1292
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1293 1293
 	request.Header.Set("x-tif-signature", signature)
1294 1294
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1295 1295
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1342,7 +1342,7 @@ func Gdyb2001(baseParams models.BaseParams, psn_no string, insutype string, med_
1342 1342
 		return err.Error()
1343 1343
 	}
1344 1344
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1345
-	request.Header.Set("x-tif-paasid", "test_hosp")
1345
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1346 1346
 	request.Header.Set("x-tif-signature", signature)
1347 1347
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1348 1348
 	request.Header.Set("x-tif-nonce", nonce)
@@ -1488,7 +1488,7 @@ func Gdyb2503(psnNo string, insutype string, org_name string, doctor string, fix
1488 1488
 	}
1489 1489
 
1490 1490
 	request.Header.Set("Content-Type", "application/json;charset=UTF-8")
1491
-	request.Header.Set("x-tif-paasid", "test_hosp")
1491
+	request.Header.Set("x-tif-paasid", "sg03_prd")
1492 1492
 	request.Header.Set("x-tif-signature", signature)
1493 1493
 	request.Header.Set("x-tif-timestamp", strconv.FormatInt(timestamp, 10))
1494 1494
 	request.Header.Set("x-tif-nonce", nonce)