|
@@ -3352,10 +3352,14 @@ func (this *DialysisAPIController) StartDialysis() {
|
3352
|
3352
|
if prescription.TargetUltrafiltration > 0 && prescription.DialysisDurationHour > 0 {
|
3353
|
3353
|
|
3354
|
3354
|
totalMin := prescription.DialysisDurationHour*60 + prescription.DialysisDurationMinute
|
3355
|
|
- if (template.TemplateId == 6 || template.TemplateId == 32 || template.TemplateId == 65 || adminUserInfo.Org.Id == 10375 || template.TemplateId == 70) && adminUserInfo.Org.Id != 9671 { //adminUserInfo.Org.Id == 9538
|
|
3355
|
+ if (template.TemplateId == 6 || template.TemplateId == 32 || template.TemplateId == 65 || adminUserInfo.Org.Id == 10375 || adminUserInfo.Org.Id == 10599) && adminUserInfo.Org.Id != 9671 { //adminUserInfo.Org.Id == 9538
|
3356
|
3356
|
ultrafiltration_rate = math.Floor(prescription.TargetUltrafiltration / float64(totalMin) * 60 * 1000)
|
3357
|
3357
|
}
|
3358
|
3358
|
|
|
3359
|
+ if adminUserInfo.Org.Id == 10597 { //adminUserInfo.Org.Id == 9538
|
|
3360
|
+ ultrafiltration_rate = math.Floor(prescription.PrescriptionWater / float64(totalMin) * 60 * 1000)
|
|
3361
|
+ }
|
|
3362
|
+
|
3359
|
3363
|
//针对医师汇
|
3360
|
3364
|
if adminUserInfo.Org.Id == 10121 {
|
3361
|
3365
|
dehydration, _ := strconv.ParseFloat(evaluation.Dehydration, 64)
|
|
@@ -4359,12 +4363,17 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
4359
|
4363
|
if prescription.TargetUltrafiltration > 0 && prescription.DialysisDurationHour > 0 {
|
4360
|
4364
|
|
4361
|
4365
|
totalMin := prescription.DialysisDurationHour*60 + prescription.DialysisDurationMinute
|
4362
|
|
- if (template.TemplateId == 6 || template.TemplateId == 65 || adminInfo.Org.Id == 10375 || template.TemplateId == 70) && adminInfo.Org.Id != 9538 {
|
|
4366
|
+ if (template.TemplateId == 6 || template.TemplateId == 65 || adminInfo.Org.Id == 10375 || adminInfo.Org.Id == 10599) && adminInfo.Org.Id != 9538 {
|
4363
|
4367
|
ultrafiltration_rate = math.Floor(prescription.TargetUltrafiltration / float64(totalMin) * 60 * 1000)
|
4364
|
4368
|
record.UltrafiltrationRate = ultrafiltration_rate
|
4365
|
4369
|
|
4366
|
4370
|
}
|
4367
|
4371
|
|
|
4372
|
+ if adminInfo.Org.Id == 10597 {
|
|
4373
|
+ ultrafiltration_rate = math.Floor(prescription.PrescriptionWater / float64(totalMin) * 60 * 1000)
|
|
4374
|
+ record.UltrafiltrationRate = ultrafiltration_rate
|
|
4375
|
+ }
|
|
4376
|
+
|
4368
|
4377
|
if adminInfo.Org.Id == 10510 {
|
4369
|
4378
|
record.UltrafiltrationRate = 0
|
4370
|
4379
|
}
|
|
@@ -4435,6 +4444,9 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
4435
|
4444
|
record.UltrafiltrationRate = ultrafiltration_rate / 1000
|
4436
|
4445
|
}
|
4437
|
4446
|
|
|
4447
|
+ if adminInfo.Org.Id == 10597 || adminInfo.Org.Id == 10599 {
|
|
4448
|
+ record.UltrafiltrationRate = 0
|
|
4449
|
+ }
|
4438
|
4450
|
//if template.TemplateId == 47 {
|
4439
|
4451
|
// ultrafiltration_rate = math.Floor(prescription.TargetUltrafiltration * 60 / float64(totalMin))
|
4440
|
4452
|
// record.UltrafiltrationRate = ultrafiltration_rate
|
|
@@ -4452,7 +4464,7 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
4452
|
4464
|
}
|
4453
|
4465
|
}
|
4454
|
4466
|
|
4455
|
|
- if template.TemplateId == 6 || template.TemplateId == 65 || template.TemplateId == 20 || template.TemplateId == 22 || template.TemplateId == 32 || template.TemplateId == 34 || template.TemplateId == 36 || template.TemplateId == 41 || template.TemplateId == 43 || template.TemplateId == 47 || template.TemplateId == 54 || template.TemplateId == 70 { //adminInfo.Org.Id == 9538
|
|
4467
|
+ if template.TemplateId == 6 || template.TemplateId == 65 || template.TemplateId == 20 || template.TemplateId == 22 || template.TemplateId == 32 || template.TemplateId == 34 || template.TemplateId == 36 || template.TemplateId == 41 || template.TemplateId == 43 || template.TemplateId == 47 || template.TemplateId == 54 || adminInfo.Org.Id == 10599 { //adminInfo.Org.Id == 9538
|
4456
|
4468
|
if ultrafiltration_rate > 0 && adminInfo.Org.Id != 9538 {
|
4457
|
4469
|
ultrafiltration_volume := math.Floor(float64(record.OperateTime+3600-fristrecord.OperateTime) / 3600 * ultrafiltration_rate)
|
4458
|
4470
|
record.UltrafiltrationVolume = ultrafiltration_volume
|
|
@@ -4460,6 +4472,11 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
4460
|
4472
|
}
|
4461
|
4473
|
}
|
4462
|
4474
|
|
|
4475
|
+ if adminInfo.Org.Id == 10597 {
|
|
4476
|
+ ultrafiltration_volume := math.Floor(float64(record.OperateTime+3600-fristrecord.OperateTime) / 3600 * ultrafiltration_rate)
|
|
4477
|
+ record.UltrafiltrationVolume = ultrafiltration_volume
|
|
4478
|
+ }
|
|
4479
|
+
|
4463
|
4480
|
//长沙南雅
|
4464
|
4481
|
if adminInfo.Org.Id == 10395 || adminInfo.Org.Id == 10138 || adminInfo.Org.Id == 10278 || adminInfo.Org.Id == 10432 || adminInfo.Org.Id == 10441 || adminInfo.Org.Id == 10445 || adminInfo.Org.Id == 10469 || adminInfo.Org.Id == 10375 {
|
4465
|
4482
|
|
|
@@ -4502,9 +4519,11 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
4502
|
4519
|
if adminInfo.Org.Id == 10510 {
|
4503
|
4520
|
record.UltrafiltrationVolume = 0
|
4504
|
4521
|
}
|
|
4522
|
+ lastMonitorRecordList, _ := service.GetLastMonitorRecordList(patientID, monitorDate, adminInfo.Org.Id)
|
4505
|
4523
|
|
4506
|
4524
|
this.ServeSuccessJSON(map[string]interface{}{
|
4507
|
|
- "monitor": record,
|
|
4525
|
+ "monitor": record,
|
|
4526
|
+ "lastMonitorRecordList": lastMonitorRecordList,
|
4508
|
4527
|
})
|
4509
|
4528
|
|
4510
|
4529
|
}
|
|
@@ -8145,6 +8164,8 @@ func (c *DialysisAPIController) GetPrescriptionList() {
|
8145
|
8164
|
|
8146
|
8165
|
start_time := c.GetString("start_time")
|
8147
|
8166
|
end_time := c.GetString("end_time")
|
|
8167
|
+ schedule_type, _ := c.GetInt64("schedule_type")
|
|
8168
|
+ partion_id, _ := c.GetInt64("partion_id")
|
8148
|
8169
|
orgId := c.GetMobileAdminUserInfo().Org.Id
|
8149
|
8170
|
timeLayout := "2006-01-02"
|
8150
|
8171
|
loc, _ := time.LoadLocation("Local")
|
|
@@ -8167,7 +8188,7 @@ func (c *DialysisAPIController) GetPrescriptionList() {
|
8167
|
8188
|
}
|
8168
|
8189
|
endTime = theTime.Unix()
|
8169
|
8190
|
}
|
8170
|
|
- schedulelist, _ := service.GetMobileScheduleListOne(startTime, endTime, orgId)
|
|
8191
|
+ schedulelist, _ := service.GetMobileScheduleListOne(startTime, endTime, orgId, schedule_type, partion_id)
|
8171
|
8192
|
|
8172
|
8193
|
fmt.Println("schedulelist22222222", schedulelist)
|
8173
|
8194
|
c.ServeSuccessJSON(map[string]interface{}{
|