Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
1a79f798ac
3 changed files with 21 additions and 8 deletions
  1. 3 3
      conf/app.conf
  2. 18 2
      controllers/zh/zh_his_api_controller.go
  3. 0 3
      service/gdyb_service.go

+ 3 - 3
conf/app.conf View File

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 9919
48
+org_id = 10265
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -53,10 +53,10 @@ call_domain = https://hf.sgjyun.com
53 53
 front_end_domain = "https://xt.kuyicloud.com/#"
54 54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55 55
 #url = "http://192.168.1.88:6666/szsi-portal/transData"
56
-gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
56
+# gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57 57
 #gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58 58
 #内蒙古
59
-# gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
59
+gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60 60
 gdyb_paasid = "sg03_prd"
61 61
 #gdyb_paasid = "jm_sc_yjyy"
62 62
 #gdyb_paasid="zh_prd_yjyy"

+ 18 - 2
controllers/zh/zh_his_api_controller.go View File

@@ -780,7 +780,15 @@ func (c *ZHHisApiController) GetZHInHospitalCheck() {
780 780
 		struct2401.MdtrtCertNo = res2.Output.Baseinfo.Certno
781 781
 		if miConfig.Code == "H15049901371" {
782 782
 			if med_type == 14 {
783
-				struct2401.MedType = "140104"
783
+				if insutype == "390" {
784
+
785
+					struct2401.MedType = "9933"
786
+
787
+				} else if insutype == "310" {
788
+
789
+					struct2401.MedType = "990502"
790
+
791
+				}
784 792
 			} else if med_type == 11 {
785 793
 				struct2401.MedType = "11"
786 794
 			}
@@ -1352,7 +1360,15 @@ func (c *ZHHisApiController) GetUploadInfo() {
1352 1360
 	}
1353 1361
 	if miConfig.Code == "H15049901371" {
1354 1362
 		if record.MedType == 14 {
1355
-			data["med_type"] = "140104"
1363
+			if record.InsutypeType == "390" {
1364
+
1365
+				data["med_type"] = "9933"
1366
+
1367
+			} else if record.InsutypeType == "310" {
1368
+
1369
+				data["med_type"] = "990502"
1370
+
1371
+			}
1356 1372
 
1357 1373
 		} else if record.MedType == 11 {
1358 1374
 

+ 0 - 3
service/gdyb_service.go View File

@@ -357,7 +357,6 @@ func Gdyb2201(psnNo string, insutype string, certNo string, org_name string, ope
357 357
 	signature := setSignature(timestamp, nonce, secret_key)
358 358
 	tempTime := time.Unix(timestamp, 0)
359 359
 	timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
360
-	timeFormatOne = "2021-12-31 15:04:05"
361 360
 
362 361
 	// 生成输入报文
363 362
 	inputMessage := SetInputMessage(nonce, timestamp, org_name, opera, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
@@ -548,7 +547,6 @@ func Gdyb2203(psnNo string, mdtrtId string, doctor string, department string, or
548 547
 	signature := setSignature(timestamp, nonce, secret_key)
549 548
 	tempTime := time.Unix(timestamp, 0)
550 549
 	timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
551
-	timeFormatOne = "2021-12-31 15:04:05"
552 550
 	// 生成输入报文
553 551
 	inputMessage := SetInputMessage(nonce, timestamp, org_name, dept, fixmedins_code, insuplc_admdvs, mdtrtarea_admvs)
554 552
 	input := make(map[string]interface{})
@@ -841,7 +839,6 @@ func Gdyb2204(psnNo string, mdtrtId string, hisPrescription []*models.HisPrescri
841 839
 	//timeFormat := tempTime.Format("20060102150405")
842 840
 	timeFormatOne := tempTime.Format("2006-01-02 15:04:05")
843 841
 	//chrgBchno := rand.Intn(100000) + 10000
844
-	timeFormatOne = "2021-12-31 15:04:05"
845 842
 	var customs []*Custom
846 843
 
847 844
 	for _, item := range hisPrescription {