Browse Source

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

csx 3 years ago
parent
commit
44ace72a66
2 changed files with 9 additions and 5 deletions
  1. 4 1
      controllers/sg/his_api_controller.go
  2. 5 4
      controllers/zh/zh_his_api_controller.go

+ 4 - 1
controllers/sg/his_api_controller.go View File

@@ -7703,7 +7703,8 @@ func (c *HisApiController) PsnPutNCDSOnRecord() {
7703 7703
 			return
7704 7704
 		}
7705 7705
 		res.ErrMsg = res10265.ErrMsg
7706
-		res.Output = res10265.Output
7706
+		infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7707
+		res.Infcode = infocode
7707 7708
 		res.InfRefmsgid = res10265.InfRefmsgid
7708 7709
 
7709 7710
 	} else {
@@ -7859,6 +7860,8 @@ func (c *HisApiController) PsnPutUnNCDSOnRecord() {
7859 7860
 			return
7860 7861
 		}
7861 7862
 		res.ErrMsg = res10265.ErrMsg
7863
+		infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
7864
+		res.Infcode = infocode
7862 7865
 		res.Output = res10265.Output
7863 7866
 		res.InfRefmsgid = res10265.InfRefmsgid
7864 7867
 

+ 5 - 4
controllers/zh/zh_his_api_controller.go View File

@@ -783,9 +783,7 @@ func (c *ZHHisApiController) GetZHInHospitalCheck() {
783 783
 				struct2401.MedType = "140104"
784 784
 			} else if med_type == 11 {
785 785
 				struct2401.MedType = "11"
786
-
787 786
 			}
788
-
789 787
 		} else {
790 788
 			struct2401.MedType = strconv.FormatInt(int64(med_type), 10)
791 789
 		}
@@ -1363,8 +1361,11 @@ func (c *ZHHisApiController) GetUploadInfo() {
1363 1361
 		}
1364 1362
 
1365 1363
 	} else {
1366
-
1367
-		data["med_type"] = strconv.FormatInt(record.MedType, 10)
1364
+		if record.MedType == 1112 {
1365
+			data["med_type"] = strconv.FormatInt(11, 10)
1366
+		} else {
1367
+			data["med_type"] = strconv.FormatInt(record.MedType, 10)
1368
+		}
1368 1369
 
1369 1370
 	}
1370 1371
 	data["insuplc_admdvs"] = record.InsuplcAdmdvs