|
@@ -4313,12 +4313,38 @@ func (c *PatientApiController) EditAssessmentBeforeDislysis() {
|
4313
|
4313
|
}
|
4314
|
4314
|
|
4315
|
4315
|
if adminUserInfo.Org.Id == 10597 {
|
|
4316
|
+
|
4316
|
4317
|
if evaluation.ID > 0 {
|
|
4318
|
+
|
4317
|
4319
|
dialysisPrescribeOne, _ := service.MobileGetDialysisPrescribeOne(adminUserInfo.Org.Id, id, theAssessmentDateTime)
|
4318
|
4320
|
if dialysisPrescribeOne.ID > 0 && evaluation.ID > 0 {
|
4319
|
4321
|
dewater_amount = evaluation.WeightBefore - evaluation.DryWeight - evaluation.AdditionalWeight
|
4320
|
4322
|
service.UpdateMobileGetDialysisPrescribeOne(dialysisPrescribeOne.ID, dewater_amount)
|
4321
|
4323
|
}
|
|
4324
|
+ keyThree := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(id, 10) + ":" + strconv.FormatInt(mode_id, 10) + ":dialysis_prescribe_by_mode"
|
|
4325
|
+ redis := service.RedisClient()
|
|
4326
|
+ //清空key 值
|
|
4327
|
+ redis.Set(keyThree, "", time.Second)
|
|
4328
|
+
|
|
4329
|
+ keyFour := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(mode_id, 10) + ":system_dialysis_prescribe"
|
|
4330
|
+ //清空key 值
|
|
4331
|
+ redis.Set(keyFour, "", time.Second)
|
|
4332
|
+ keyFive := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(id, 10) + ":" + strconv.FormatInt(theAssessmentDateTime, 10) + ":schedual_detail"
|
|
4333
|
+ redis.Set(keyFive, "", time.Second)
|
|
4334
|
+
|
|
4335
|
+ keySix := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(theAssessmentDateTime, 10) + ":prescriptions_list_all"
|
|
4336
|
+ redis.Set(keySix, "", time.Second)
|
|
4337
|
+
|
|
4338
|
+ keySeven := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(id, 10) + ":" + strconv.FormatInt(theAssessmentDateTime, 10) + ":dialysis_prescribe_by_mode"
|
|
4339
|
+ redis.Set(keySeven, "", time.Second)
|
|
4340
|
+
|
|
4341
|
+ keyNight := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(id, 10) + ":" + strconv.FormatInt(theAssessmentDateTime, 10) + ":" + strconv.FormatInt(mode_id, 10) + ":dialysis_prescribe"
|
|
4342
|
+ redis.Set(keyNight, "", time.Second)
|
|
4343
|
+ var recordDateStr = time.Now().Format("2006-01-02")
|
|
4344
|
+ keyOne := "scheduals_" + recordDateStr + "_" + strconv.FormatInt(adminUserInfo.Org.Id, 10)
|
|
4345
|
+ //清空key 值
|
|
4346
|
+ redis.Set(keyOne, "", time.Second)
|
|
4347
|
+
|
4322
|
4348
|
}
|
4323
|
4349
|
}
|
4324
|
4350
|
|