浏览代码

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

csx 3 年前
父节点
当前提交
7e5e8a7004
共有 2 个文件被更改,包括 15 次插入9 次删除
  1. 4 2
      controllers/sg/his_api_controller.go
  2. 11 7
      service/gdyb_service.go

+ 4 - 2
controllers/sg/his_api_controller.go 查看文件

@@ -103,7 +103,8 @@ func (c *HisApiController) GetSettleList() {
103 103
 		SetlId:         order.SetlId,
104 104
 		PsnName:        order.PsnName,
105 105
 		Gend:           order.Gend,
106
-		Brdy:           order.HisPatient.Brdy,
106
+		Brdy:           his.Brdy,
107
+		Age:            his.Age,
107 108
 		Naty:           order.Naty,
108 109
 		PatnCertType:   order.MdtrtCertType,
109 110
 		Certno:         order.Certno,
@@ -127,6 +128,7 @@ func (c *HisApiController) GetSettleList() {
127 128
 		HsorgOpter:     miConfig.InsuplcAdmdvs,
128 129
 		MedinsFillPsn:  curRoles.UserName,
129 130
 		MedinsFillDept: depart.Name,
131
+		IptMedType:     "2",
130 132
 	}
131 133
 	if order.SettleType == 1 {
132 134
 		t := time.Unix(int64(order.SettleAccountsDate), 0)
@@ -152,7 +154,7 @@ func (c *HisApiController) GetSettleList() {
152 154
 		struct4101.CustomStruct = append(struct4101.CustomStruct, tempFunPay)
153 155
 	}
154 156
 	var tempOpspdiseinfo service.OpspdiseinfoStruct
155
-	sickConfig, _ := service.FindSickById(his.SickType)
157
+	sickConfig, _ := service.FindDiagnoseById(his.Diagnosis)
156 158
 
157 159
 	tempOpspdiseinfo.DiagCode = sickConfig.CountryCode
158 160
 	tempOpspdiseinfo.DiagName = sickConfig.CountryContentName

+ 11 - 7
service/gdyb_service.go 查看文件

@@ -2150,6 +2150,8 @@ type Struct4101 struct {
2150 2150
 	HsorgOpter         string
2151 2151
 	MedinsFillDept     string
2152 2152
 	MedinsFillPsn      string
2153
+	IptMedType         string
2154
+	Age                int64
2153 2155
 	CustomStruct       []CustomStruct
2154 2156
 	OpspdiseinfoStruct []OpspdiseinfoStruct
2155 2157
 	IteminfoStruct     []IteminfoStruct
@@ -2271,11 +2273,13 @@ func Gdyb4101(struct4101 *Struct4101, secret_key string, org_name string, doctor
2271 2273
 
2272 2274
 	diseinfo := make([]map[string]interface{}, 0) // 住院诊断信息
2273 2275
 	diseinfotemp := make(map[string]interface{})
2274
-	diseinfotemp["diag_type"] = ""     // 诊断类别  必填
2275
-	diseinfotemp["diag_code"] = ""     // 诊断代码 必填
2276
-	diseinfotemp["diag_name"] = ""     // 诊断名称 必填
2277
-	diseinfotemp["adm_cond_type"] = "" // 入院病情类型 必填
2278
-	diseinfo = append(diseinfo, diseinfotemp)
2276
+	for _, item := range struct4101.OpspdiseinfoStruct {
2277
+		diseinfotemp["diag_type"] = "1"           // 诊断类别  必填
2278
+		diseinfotemp["diag_code"] = item.DiagCode // 诊断代码 必填
2279
+		diseinfotemp["diag_name"] = item.DiagName // 诊断名称 必填
2280
+		diseinfotemp["adm_cond_type"] = "3"       // 入院病情类型 必填
2281
+		diseinfo = append(diseinfo, diseinfotemp)
2282
+	}
2279 2283
 
2280 2284
 	iteminfo := make([]map[string]interface{}, 0) // 住院诊断信息
2281 2285
 	iteminfotemp := make(map[string]interface{})
@@ -2312,11 +2316,11 @@ func Gdyb4101(struct4101 *Struct4101, secret_key string, org_name string, doctor
2312 2316
 
2313 2317
 	input["setlinfo"] = inputData
2314 2318
 	input["payinfo"] = payinfo
2315
-	input["opspdiseinfo"] = opspdiseinfo
2319
+	//input["opspdiseinfo"] = opspdiseinfo
2316 2320
 	input["diseinfo"] = diseinfo
2317 2321
 	input["iteminfo"] = iteminfo
2318 2322
 	input["oprninfo"] = oprninfo
2319
-	input["icuinfo"] = icuinfo
2323
+	//input["icuinfo"] = icuinfo
2320 2324
 	inputMessage["input"] = input //交易输入
2321 2325
 
2322 2326
 	bytesData, err := json.Marshal(inputMessage)