ソースを参照

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

csx 1 年間 前
コミット
94499f1d55
共有5 個のファイルを変更した31 個の追加28 個の削除を含む
  1. 4 4
      conf/app.conf
  2. 2 2
      controllers/zh/zh_his_api_controller.go
  3. 7 5
      main.go
  4. 2 1
      routers/router.go
  5. 16 16
      service/zh_his_service.go

+ 4 - 4
conf/app.conf ファイルの表示

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10265
48
+org_id = 10215
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -53,15 +53,15 @@ 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
 # gdyb_url = "http://10.97.240.206/ebus/sztest_hosp/poc/hsa/hgs/"
59 59
 #内蒙古
60 60
 # http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service
61
-gdyb_url = "http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service"
61
+# gdyb_url = "http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service"
62 62
 # gdyb_url = "http://19.15.78.136:20001/ebus/gdyb_inf/poc/hsa/hgs/gzzq/"
63 63
 #韶关
64
-# gdyb_paasid = "sg03_prd"
64
+gdyb_paasid = "sg03_prd"
65 65
 #江门
66 66
 #gdyb_paasid = "jm_sc_yjyy"
67 67
 #珠海

+ 2 - 2
controllers/zh/zh_his_api_controller.go ファイルの表示

@@ -1089,7 +1089,7 @@ func (c *ZHHisApiController) GetZHInHospitalCheck() {
1089 1089
 			dise.DiagCode = item.CountryCode
1090 1090
 			dise.DiagName = item.ClassName
1091 1091
 			dise.DiagDept = departmentInfo.Name
1092
-			dise.DiseDorNo = strconv.FormatInt(int64(doctorInfo.AdminUserId), 10)
1092
+			dise.DiseDorNo = doctorInfo.DoctorNumber
1093 1093
 			dise.DiagTime = timeFormatOne
1094 1094
 
1095 1095
 			dises = append(dises, dise)
@@ -2225,7 +2225,7 @@ func (c *ZHHisApiController) GetUploadInfo() {
2225 2225
 				result_byte, _ := json.Marshal(respJSON)
2226 2226
 				result = string(result_byte)
2227 2227
 			} else {
2228
-				result, requestLog = service.ZHGdyb2301(record.PsnNo, record.Number, customs[start-1:stop], chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(department.ID, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["med_type"].(string))
2228
+				result, requestLog = service.ZHGdyb2301(record.PsnNo, record.Number, customs[start-1:stop], chrg_bchno, miConfig.OrgName, roles.UserName, strconv.FormatInt(department.ID, 10), miConfig.Code, department.Number, strconv.FormatInt(roles.AdminUserId, 10), record.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, data["med_type"].(string), doctor_info.DoctorNumber, doctor_info.UserName)
2229 2229
 				saveLog(result, requestLog, "2301", "上传明细")
2230 2230
 			}
2231 2231
 

+ 7 - 5
main.go ファイルの表示

@@ -5,6 +5,8 @@ import (
5 5
 	"fmt"
6 6
 	"gdyb/models"
7 7
 	_ "gdyb/routers"
8
+	"gdyb/service"
9
+
8 10
 	//"gdyb/service"
9 11
 	"github.com/astaxie/beego"
10 12
 	"github.com/qiniu/api.v7/auth/qbox"
@@ -15,11 +17,11 @@ import (
15 17
 )
16 18
 
17 19
 func init() {
18
-	//service.ConnectDB()
19
-	//org_id, _ := beego.AppConfig.Int64("org_id")
20
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
21
-	//CreateLog(miConfig)
22
-	//UploadLog(miConfig)
20
+	service.ConnectDB()
21
+	org_id, _ := beego.AppConfig.Int64("org_id")
22
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
23
+	CreateLog(miConfig)
24
+	UploadLog(miConfig)
23 25
 	//UploadSettleList(org_id)
24 26
 }
25 27
 func main() {

+ 2 - 1
routers/router.go ファイルの表示

@@ -3,6 +3,7 @@ package routers
3 3
 import (
4 4
 	"gdyb/controllers/nm"
5 5
 	"gdyb/controllers/sg"
6
+	"gdyb/controllers/zh"
6 7
 
7 8
 	//"gdyb/controllers/sz"
8 9
 	//"gdyb/controllers/sz"
@@ -25,7 +26,7 @@ func init() {
25 26
 	//sg.GdybRegistRouters()
26 27
 	//hb.HbybRegistRouters()
27 28
 	//sz.SZHisManagerApiRegistRouters()
28
-	//zh.ZHHisManagerApiRegistRouters()
29
+	zh.ZHHisManagerApiRegistRouters()
29 30
 	//js.JSybRegistRouters()
30 31
 	nm.NmybRegistRouters()
31 32
 	//coordinate.CoordinateRegistRouters()

+ 16 - 16
service/zh_his_service.go ファイルの表示

@@ -554,7 +554,7 @@ type ZHResult struct {
554 554
 }
555 555
 
556 556
 //  住院费用明细信息上传
557
-func ZHGdyb2301(psnNo string, mdtrtId string, hisPrescription []*models.NewCustom, chrg_bchno string, org_name string, doctor string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string) (string, string) {
557
+func ZHGdyb2301(psnNo string, mdtrtId string, hisPrescription []*models.NewCustom, chrg_bchno string, org_name string, doctor string, dept string, fixmedins_code string, dept_code string, doctor_id string, insuplc_admdvs string, mdtrtarea_admvs string, secret_key string, med_type string, doctor_name string, doctor_number string) (string, string) {
558 558
 	// 生成签名
559 559
 	nonce := GetRandomString(32)
560 560
 	timestamp := time.Now().Unix()
@@ -588,20 +588,20 @@ func ZHGdyb2301(psnNo string, mdtrtId string, hisPrescription []*models.NewCusto
588 588
 		feedetailInfo["pric"] = item.Price                           // 单价
589 589
 		feedetailInfo["bilg_dept_codg"] = dept_code                  // 开单科室编码
590 590
 		feedetailInfo["bilg_dept_name"] = dept                       // 开单科室名称
591
-		feedetailInfo["bilg_dr_codg"] = doctor_id                    // 开单医生编码
592
-		feedetailInfo["bilg_dr_name"] = doctor
593
-		feedetailInfo["acord_dept_codg"] = ""       // 受单科室编码
594
-		feedetailInfo["acord_dept_name"] = ""       // 受单科室名称
595
-		feedetailInfo["orders_dr_code"] = doctor_id // 受单医生编码
596
-		feedetailInfo["orders_dr_name"] = doctor    // 受单医生姓名
597
-		feedetailInfo["chrg_bchno"] = chrg_bchno    // 收费批次号
598
-		feedetailInfo["dise_codg"] = ""             // 病种编码
599
-		feedetailInfo["rxno"] = ""                  // 处方号
600
-		feedetailInfo["rx_circ_flag"] = "0"         // 外购处方标志
601
-		feedetailInfo["sin_dos_dscr"] = ""          // 单次剂量描述
602
-		feedetailInfo["used_frqu_dscr"] = ""        // 使用频次描述
603
-		feedetailInfo["prd_days"] = "0"             // 周期天数
604
-		feedetailInfo["medc_way_dscr"] = ""         // 用药途径描述
591
+		feedetailInfo["bilg_dr_codg"] = doctor_number                // 开单医生编码
592
+		feedetailInfo["bilg_dr_name"] = doctor_name
593
+		feedetailInfo["acord_dept_codg"] = dept_code    // 受单科室编码
594
+		feedetailInfo["acord_dept_name"] = dept         // 受单科室名称
595
+		feedetailInfo["orders_dr_code"] = doctor_number // 受单医生编码
596
+		feedetailInfo["orders_dr_name"] = doctor_name   // 受单医生姓名
597
+		feedetailInfo["chrg_bchno"] = chrg_bchno        // 收费批次号
598
+		feedetailInfo["dise_codg"] = ""                 // 病种编码
599
+		feedetailInfo["rxno"] = ""                      // 处方号
600
+		feedetailInfo["rx_circ_flag"] = "0"             // 外购处方标志
601
+		feedetailInfo["sin_dos_dscr"] = ""              // 单次剂量描述
602
+		feedetailInfo["used_frqu_dscr"] = ""            // 使用频次描述
603
+		feedetailInfo["prd_days"] = "0"                 // 周期天数
604
+		feedetailInfo["medc_way_dscr"] = ""             // 用药途径描述
605 605
 		// 开单医师姓名
606 606
 
607 607
 		if item.HospApprFlag != -1 {
@@ -618,7 +618,7 @@ func ZHGdyb2301(psnNo string, mdtrtId string, hisPrescription []*models.NewCusto
618 618
 			feedetailInfo["hosp_appr_flag"] = "1" // 医院审批标志
619 619
 		}
620 620
 
621
-		feedetailInfo["tcmdrug_used_way"] = "" // 中药使用方式
621
+		//feedetailInfo["tcmdrug_used_way"] = "" // 中药使用方式
622 622
 		feedetailInfo["etip_flag"] = ""        // 外检标志
623 623
 		feedetailInfo["etip_hosp_code"] = ""   // 外检医院编码
624 624
 		feedetailInfo["dscg_tkdrug_flag"] = "" // 出院带药标志