|
@@ -3047,7 +3047,7 @@ func (c *DialysisAPIController) Finish() {
|
3047
|
3047
|
|
3048
|
3048
|
}
|
3049
|
3049
|
|
3050
|
|
- 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 || adminUserInfo.Org.Id == 10432 || adminUserInfo.Org.Id == 10445 || adminUserInfo.Org.Id == 10223 || adminUserInfo.Org.Id == 9829 || adminUserInfo.Org.Id == 10432 || adminUserInfo.Org.Id == 10440 || adminUserInfo.Org.Id == 10469 || adminUserInfo.Org.Id == 10693 || adminUserInfo.Org.Id == 10702 {
|
|
3050
|
+ 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 || adminUserInfo.Org.Id == 10432 || adminUserInfo.Org.Id == 10445 || adminUserInfo.Org.Id == 10223 || adminUserInfo.Org.Id == 9829 || adminUserInfo.Org.Id == 10432 || adminUserInfo.Org.Id == 10440 || adminUserInfo.Org.Id == 10469 || adminUserInfo.Org.Id == 10693 || adminUserInfo.Org.Id == 10702 || adminUserInfo.Org.Id == 10735 {
|
3051
|
3051
|
evaluation, _ := service.MobileGetPredialysisEvaluationOne(adminUserInfo.Org.Id, id, recordDate.Unix())
|
3052
|
3052
|
|
3053
|
3053
|
if adminUserInfo.Org.Id != 10702 {
|
|
@@ -3189,6 +3189,12 @@ func (c *DialysisAPIController) Finish() {
|
3189
|
3189
|
tempassessmentAfterDislysis.Temperature = endmonitorRecords.Temperature
|
3190
|
3190
|
tempassessmentAfterDislysis.BreathingRate = endmonitorRecords.BreathingRate
|
3191
|
3191
|
}
|
|
3192
|
+ if endmonitorRecords.ID > 0 && adminUserInfo.Org.Id == 10735 {
|
|
3193
|
+ tempassessmentAfterDislysis.SystolicBloodPressure = endmonitorRecords.SystolicBloodPressure
|
|
3194
|
+ tempassessmentAfterDislysis.DiastolicBloodPressure = endmonitorRecords.DiastolicBloodPressure
|
|
3195
|
+ tempassessmentAfterDislysis.Temperature = endmonitorRecords.Temperature
|
|
3196
|
+ tempassessmentAfterDislysis.BreathingRate = endmonitorRecords.BreathingRate
|
|
3197
|
+ }
|
3192
|
3198
|
|
3193
|
3199
|
if endmonitorRecords.ID > 0 && adminUserInfo.Org.Id == 10598 {
|
3194
|
3200
|
tempassessmentAfterDislysis.SystolicBloodPressure = 0
|
|
@@ -4188,6 +4194,16 @@ func (this *DialysisAPIController) StartDialysis() {
|
4188
|
4194
|
record.BloodFlowVolume = prescription.BloodFlowVolume
|
4189
|
4195
|
}
|
4190
|
4196
|
|
|
4197
|
+ //胶州少海医院
|
|
4198
|
+ if adminUserInfo.Org.Id == 10735 {
|
|
4199
|
+ befor, _ := service.GetAssessmentBeforThrity(adminUserInfo.Org.Id, patientID, recordDate.Unix())
|
|
4200
|
+ dialysisPrescription, _ := service.GetDialysisPrescription(patientID, adminUserInfo.Org.Id, recordDate.Unix())
|
|
4201
|
+ record.BreathingRate = befor.BreathingRate
|
|
4202
|
+ record.BloodFlowVolume = dialysisPrescription.BloodFlowVolume
|
|
4203
|
+ record.Temperature = befor.Temperature
|
|
4204
|
+ record.PulseFrequency = befor.PulseFrequency
|
|
4205
|
+ }
|
|
4206
|
+
|
4191
|
4207
|
if adminUserInfo.Org.Id != 10683 {
|
4192
|
4208
|
err = service.CreateMonitor(&record)
|
4193
|
4209
|
}
|
|
@@ -5269,7 +5285,7 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
5269
|
5285
|
|
5270
|
5286
|
if adminInfo.Org.Id == 10206 {
|
5271
|
5287
|
ultrafiltration_rate = math.Floor(prescription.TargetUltrafiltration * 1000 / float64(totalMin) * 60 * 1000)
|
5272
|
|
- fmt.Println("ultrafiltration_rate------------------", ultrafiltration_rate)
|
|
5288
|
+
|
5273
|
5289
|
record.UltrafiltrationRate = ultrafiltration_rate / 1000
|
5274
|
5290
|
}
|
5275
|
5291
|
//if template.TemplateId == 47 {
|
|
@@ -5298,8 +5314,19 @@ func (this *DialysisAPIController) GetLastMonitorRecordTody() {
|
5298
|
5314
|
}
|
5299
|
5315
|
//胶州少海医院
|
5300
|
5316
|
if adminInfo.Org.Id == 10735 {
|
5301
|
|
- ultrafiltration_volume := math.Floor(float64(record.OperateTime+3600-fristrecord.OperateTime) / 3600 * ultrafiltration_rate)
|
5302
|
|
- record.UltrafiltrationVolume = ultrafiltration_volume / 2
|
|
5317
|
+
|
|
5318
|
+ lastMonitorRecordList, _ := service.GetLastMonitorRecordList(patientID, monitorDate, adminInfo.Org.Id)
|
|
5319
|
+ if lastMonitorRecordList.ID > 0 {
|
|
5320
|
+ record.UltrafiltrationRate = lastMonitorRecordList.UltrafiltrationRate
|
|
5321
|
+ ultrafiltration_volume := math.Floor(float64(record.OperateTime+1800-fristrecord.OperateTime) / 3600 * lastMonitorRecordList.UltrafiltrationRate)
|
|
5322
|
+
|
|
5323
|
+ record.UltrafiltrationVolume = ultrafiltration_volume
|
|
5324
|
+ } else {
|
|
5325
|
+ ultrafiltration_volume := math.Floor(float64(record.OperateTime+1800-fristrecord.OperateTime) / 3600 * ultrafiltration_rate)
|
|
5326
|
+
|
|
5327
|
+ record.UltrafiltrationVolume = ultrafiltration_volume
|
|
5328
|
+ }
|
|
5329
|
+
|
5303
|
5330
|
}
|
5304
|
5331
|
|
5305
|
5332
|
}
|