|
@@ -84,7 +84,7 @@ func PatientApiRegistRouters() {
|
84
|
84
|
|
85
|
85
|
}
|
86
|
86
|
|
87
|
|
-//GetPatientsList 取患者列表
|
|
87
|
+// GetPatientsList 取患者列表
|
88
|
88
|
func (c *PatientApiController) GetPatientsList() {
|
89
|
89
|
var err error
|
90
|
90
|
defer func() {
|
|
@@ -157,7 +157,7 @@ func (c *PatientApiController) GetPatientsList() {
|
157
|
157
|
|
158
|
158
|
}
|
159
|
159
|
|
160
|
|
-//GetPatientTotal
|
|
160
|
+// GetPatientTotal
|
161
|
161
|
func (c *PatientApiController) GetPatientTotal() {
|
162
|
162
|
adminUserInfo := c.GetAdminUserInfo()
|
163
|
163
|
|
|
@@ -182,7 +182,7 @@ func (c *PatientApiController) GetPatientsAllList() {
|
182
|
182
|
return
|
183
|
183
|
}
|
184
|
184
|
|
185
|
|
-//GenerateDialysisNo 生成透析号
|
|
185
|
+// GenerateDialysisNo 生成透析号
|
186
|
186
|
func (c *PatientApiController) GenerateDialysisNo() {
|
187
|
187
|
adminUserInfo := c.GetAdminUserInfo()
|
188
|
188
|
|
|
@@ -206,7 +206,7 @@ func (c *PatientApiController) GenerateDialysisNo() {
|
206
|
206
|
return
|
207
|
207
|
}
|
208
|
208
|
|
209
|
|
-//CreatePatient 创建患者
|
|
209
|
+// CreatePatient 创建患者
|
210
|
210
|
func (c *PatientApiController) CreatePatient() {
|
211
|
211
|
record_date := c.GetString("record_date")
|
212
|
212
|
is_infectious, _ := c.GetInt64("is_infectious")
|
|
@@ -443,7 +443,7 @@ func (c *PatientApiController) CreatePatient() {
|
443
|
443
|
return
|
444
|
444
|
}
|
445
|
445
|
|
446
|
|
-//EditPatient 修改
|
|
446
|
+// EditPatient 修改
|
447
|
447
|
func (c *PatientApiController) EditPatient() {
|
448
|
448
|
id, _ := c.GetInt64("id", 0)
|
449
|
449
|
|
|
@@ -1074,7 +1074,7 @@ func (c *PatientApiController) DeleteDialysisSolution() {
|
1074
|
1074
|
return
|
1075
|
1075
|
}
|
1076
|
1076
|
|
1077
|
|
-//GetDryWeights 取患者干体重调整铺
|
|
1077
|
+// GetDryWeights 取患者干体重调整铺
|
1078
|
1078
|
func (c *PatientApiController) GetDryWeights() {
|
1079
|
1079
|
page, _ := c.GetInt64("page", 1)
|
1080
|
1080
|
limit, _ := c.GetInt64("limit", 10)
|
|
@@ -1289,9 +1289,9 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1289
|
1289
|
Remark := ""
|
1290
|
1290
|
if dataBody["remark"] != nil && reflect.TypeOf(dataBody["remark"]).String() == "string" {
|
1291
|
1291
|
remark, _ := dataBody["remark"].(string)
|
|
1292
|
+
|
1292
|
1293
|
Remark = remark
|
1293
|
1294
|
}
|
1294
|
|
-
|
1295
|
1295
|
var advices []*models.GroupAdvice
|
1296
|
1296
|
if dataBody["adviceNames"] == nil || reflect.TypeOf(dataBody["adviceNames"]).String() != "[]interface {}" {
|
1297
|
1297
|
utils.ErrorLog("adviceNames")
|
|
@@ -1323,6 +1323,7 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1323
|
1323
|
return
|
1324
|
1324
|
}
|
1325
|
1325
|
adviceName, _ := adviceNameM["advice_name"].(string)
|
|
1326
|
+ fmt.Println("adviceceNMAE--------------------------------", adviceName)
|
1326
|
1327
|
if len(adviceName) == 0 {
|
1327
|
1328
|
utils.ErrorLog("len(advice_name) == 0")
|
1328
|
1329
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
|
@@ -1416,6 +1417,10 @@ func (c *PatientApiController) CreateGroupAdvice() {
|
1416
|
1417
|
advice.DrugNameId = drug_name_id
|
1417
|
1418
|
}
|
1418
|
1419
|
|
|
1420
|
+ remark, _ := adviceNameM["remark"].(string)
|
|
1421
|
+ fmt.Println("哦哦撒搜哦搜搜哦remark-----------------------------------", remark)
|
|
1422
|
+ advice.Remark = remark
|
|
1423
|
+
|
1419
|
1424
|
if adviceType == 1 {
|
1420
|
1425
|
|
1421
|
1426
|
if adviceNameM["frequency_type"] != nil || reflect.TypeOf(adviceNameM["frequency_type"]).String() == "float64" {
|
|
@@ -3029,7 +3034,7 @@ func (c *PatientApiController) DeleteGroupAdvice() {
|
3029
|
3034
|
return
|
3030
|
3035
|
}
|
3031
|
3036
|
|
3032
|
|
-//GetDoctorAdvices 医嘱列表
|
|
3037
|
+// GetDoctorAdvices 医嘱列表
|
3033
|
3038
|
func (c *PatientApiController) GetDoctorAdvices() {
|
3034
|
3039
|
id, _ := c.GetInt64("id", 0)
|
3035
|
3040
|
adviceType, _ := c.GetInt64("advice_type", 0)
|