瀏覽代碼

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

csx 3 年之前
父節點
當前提交
a88ccbef64
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      controllers/sg/his_api_controller.go
  2. 4 4
      service/gdyb_service.go

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

@@ -168,7 +168,7 @@ func (c *HisApiController) GetSettleList() {
168 168
 
169 169
 	tempOpspdiseinfo2.DiagCode = sickConfigTwo.CountryCode
170 170
 	tempOpspdiseinfo2.DiagName = sickConfigTwo.CountryContentName
171
-	tempOpspdiseinfo2.MaindiagFlag = "1"
171
+	tempOpspdiseinfo2.MaindiagFlag = "2"
172 172
 	tempOpspdiseinfo2.OprnOprtCode = ""
173 173
 	tempOpspdiseinfo2.OprnOprtName = ""
174 174
 	struct4101.OpspdiseinfoStruct = append(struct4101.OpspdiseinfoStruct, tempOpspdiseinfo2)

+ 4 - 4
service/gdyb_service.go 查看文件

@@ -2275,10 +2275,10 @@ func Gdyb4101(struct4101 *Struct4101, secret_key string, org_name string, doctor
2275 2275
 	diseinfo := make([]map[string]interface{}, 0) // 住院诊断信息
2276 2276
 	diseinfotemp := make(map[string]interface{})
2277 2277
 	for _, item := range struct4101.OpspdiseinfoStruct {
2278
-		diseinfotemp["diag_type"] = "1"           // 诊断类别  必填
2279
-		diseinfotemp["diag_code"] = item.DiagCode // 诊断代码 必填
2280
-		diseinfotemp["diag_name"] = item.DiagName // 诊断名称 必填
2281
-		diseinfotemp["adm_cond_type"] = "3"       // 入院病情类型 必填
2278
+		diseinfotemp["diag_type"] = item.MaindiagFlag // 诊断类别  必填
2279
+		diseinfotemp["diag_code"] = item.DiagCode     // 诊断代码 必填
2280
+		diseinfotemp["diag_name"] = item.DiagName     // 诊断名称 必填
2281
+		diseinfotemp["adm_cond_type"] = "3"           // 入院病情类型 必填
2282 2282
 		diseinfo = append(diseinfo, diseinfotemp)
2283 2283
 	}
2284 2284