|
@@ -1358,6 +1358,21 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1358
|
1358
|
|
1359
|
1359
|
max_ultrafiltration_rate, _ := c.GetFloat("max_ultrafiltration_rate")
|
1360
|
1360
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
1361
|
+
|
|
1362
|
+ is_water := c.GetString("is_water")
|
|
1363
|
+ var is_war int64
|
|
1364
|
+ if is_water == "是" {
|
|
1365
|
+ is_war = 1
|
|
1366
|
+ }
|
|
1367
|
+ if is_water == "否" {
|
|
1368
|
+ is_war = 2
|
|
1369
|
+ }
|
|
1370
|
+ if is_water == "请选择" {
|
|
1371
|
+ is_war = 0
|
|
1372
|
+ }
|
|
1373
|
+ drhy_water := c.GetString("drhy_water")
|
|
1374
|
+
|
|
1375
|
+ dry_water_hour := c.GetString("dry_water_hour")
|
1361
|
1376
|
appRole, _ := service.FindAdminRoleTypeById(adminUserInfo.Org.Id, adminUserInfo.AdminUser.Id, adminUserInfo.App.Id)
|
1362
|
1377
|
|
1363
|
1378
|
//template, _ := service.GetOrgInfoTemplate(adminUserInfo.Org.Id)
|
|
@@ -1464,6 +1479,9 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
1464
|
1479
|
EpoCount: epo_count,
|
1465
|
1480
|
MaxUltrafiltrationRate: max_ultrafiltration_rate,
|
1466
|
1481
|
AdminUserId: admin_user_id,
|
|
1482
|
+ IsWater: is_war,
|
|
1483
|
+ DrhyWater: drhy_water,
|
|
1484
|
+ DryWaterHour: dry_water_hour,
|
1467
|
1485
|
}
|
1468
|
1486
|
|
1469
|
1487
|
//查询最近透析准备表里是否存在 透析器 灌流器
|
|
@@ -1814,7 +1832,7 @@ func (c *DialysisAPIController) Finish() {
|
1814
|
1832
|
|
1815
|
1833
|
}
|
1816
|
1834
|
|
1817
|
|
- if adminUserInfo.Org.Id == 10101 || adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 3877 || adminUserInfo.Org.Id == 9675 || adminUserInfo.Org.Id == 10215 || adminUserInfo.Org.Id == 10233 || adminUserInfo.Org.Id == 10223 || adminUserInfo.Org.Id == 10243 || adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10414 {
|
|
1835
|
+ if adminUserInfo.Org.Id == 10101 || adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 3877 || adminUserInfo.Org.Id == 9675 || adminUserInfo.Org.Id == 10215 || adminUserInfo.Org.Id == 10233 || adminUserInfo.Org.Id == 10223 || adminUserInfo.Org.Id == 10243 || adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 10414 || adminUserInfo.Org.Id == 10430 {
|
1818
|
1836
|
evaluation, _ := service.MobileGetPredialysisEvaluationOne(adminUserInfo.Org.Id, id, recordDate.Unix())
|
1819
|
1837
|
if evaluation.SystolicBloodPressure == 0 {
|
1820
|
1838
|
evaluation.SystolicBloodPressure = fmonitorRecords.SystolicBloodPressure
|
|
@@ -2404,6 +2422,10 @@ func (this *DialysisAPIController) StartDialysis() {
|
2404
|
2422
|
if newdialysisRecord.ID > 0 {
|
2405
|
2423
|
if adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 9675 {
|
2406
|
2424
|
record.Temperature = 36.5
|
|
2425
|
+ //var pressure string
|
|
2426
|
+ //pressure = "-"
|
|
2427
|
+ //floatPressure, _ := strconv.ParseFloat(pressure, 64)
|
|
2428
|
+ //record.ArterialPressure = floatPressure
|
2407
|
2429
|
}
|
2408
|
2430
|
err := service.CreateMonitor(&record)
|
2409
|
2431
|
key := strconv.FormatInt(adminUserInfo.Org.Id, 10) + ":" + strconv.FormatInt(patientID, 10) + ":" + strconv.FormatInt(recordDate.Unix(), 10) + ":monitor_records"
|
|
@@ -2551,6 +2573,21 @@ func (c *DialysisAPIController) PostSolution() {
|
2551
|
2573
|
pre_impulse := c.GetString("pre_impulse")
|
2552
|
2574
|
impulse, _ := strconv.ParseFloat(pre_impulse, 64)
|
2553
|
2575
|
admin_user_id, _ := c.GetInt64("admin_user_id")
|
|
2576
|
+
|
|
2577
|
+ is_water := c.GetString("is_water")
|
|
2578
|
+ var is_war int64
|
|
2579
|
+ if is_water == "是" {
|
|
2580
|
+ is_war = 1
|
|
2581
|
+ }
|
|
2582
|
+ if is_water == "否" {
|
|
2583
|
+ is_war = 2
|
|
2584
|
+ }
|
|
2585
|
+ if is_water == "请选择" {
|
|
2586
|
+ is_war = 0
|
|
2587
|
+ }
|
|
2588
|
+ drhy_water := c.GetString("drhy_water")
|
|
2589
|
+ dry_water_hour := c.GetString("dry_water_hour")
|
|
2590
|
+
|
2554
|
2591
|
if mode_id > 0 {
|
2555
|
2592
|
service.ModifyScheduleMode(mode_id, patient.ID, recordDate.Unix(), adminUserInfo.Org.Id)
|
2556
|
2593
|
}
|
|
@@ -2658,6 +2695,9 @@ func (c *DialysisAPIController) PostSolution() {
|
2658
|
2695
|
MaxUltrafiltrationRate: max_ultrafiltration_rate,
|
2659
|
2696
|
PreImpulse: impulse,
|
2660
|
2697
|
AdminUserId: admin_user_id,
|
|
2698
|
+ IsWater: is_war,
|
|
2699
|
+ DrhyWater: drhy_water,
|
|
2700
|
+ DryWaterHour: dry_water_hour,
|
2661
|
2701
|
}
|
2662
|
2702
|
|
2663
|
2703
|
_, dialysisPrescription := service.FindDialysisPrescriptionByReordDate(id, recordDate.Unix(), adminUserInfo.Org.Id)
|
|
@@ -6904,3 +6944,15 @@ func (this *DialysisAPIController) GetPatientSign() {
|
6904
|
6944
|
"dialysisOrder": dialysisOrder,
|
6905
|
6945
|
})
|
6906
|
6946
|
}
|
|
6947
|
+
|
|
6948
|
+func (this *DialysisAPIController) GetScheduleByPatient() {
|
|
6949
|
+
|
|
6950
|
+ patient_id, _ := this.GetInt64("patient_id")
|
|
6951
|
+ schedule_date, _ := this.GetInt64("schedule_date")
|
|
6952
|
+ orgid := this.GetMobileAdminUserInfo().Org.Id
|
|
6953
|
+ schedule, _ := service.GetScheduleByPatient(patient_id, schedule_date, orgid)
|
|
6954
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
6955
|
+ "schedule": schedule,
|
|
6956
|
+ })
|
|
6957
|
+
|
|
6958
|
+}
|