|
@@ -2221,6 +2221,13 @@ func (c *DialysisAPIController) PostDialysisPrescription() {
|
2221
|
2221
|
|
2222
|
2222
|
} else {
|
2223
|
2223
|
prescription.Creater = dialysisPrescription.Creater
|
|
2224
|
+ if adminUserInfo.Org.Id == 9882 {
|
|
2225
|
+ if appRole.UserType == 2 || appRole.UserType == 1 {
|
|
2226
|
+ prescription_doctor := adminUserInfo.AdminUser.Id
|
|
2227
|
+ prescription.PrescriptionDoctor = prescription_doctor
|
|
2228
|
+ prescription.Creater = prescription_doctor
|
|
2229
|
+ }
|
|
2230
|
+ }
|
2224
|
2231
|
}
|
2225
|
2232
|
|
2226
|
2233
|
prescription.ID = dialysisPrescription.ID
|
|
@@ -2587,6 +2594,13 @@ func (c *DialysisAPIController) Finish() {
|
2587
|
2594
|
tempassessmentAfterDislysis.DiastolicBloodPressure = endmonitorRecords.DiastolicBloodPressure
|
2588
|
2595
|
}
|
2589
|
2596
|
|
|
2597
|
+ if endmonitorRecords.ID > 0 && adminUserInfo.Org.Id == 10495 {
|
|
2598
|
+ tempassessmentAfterDislysis.SystolicBloodPressure = endmonitorRecords.SystolicBloodPressure
|
|
2599
|
+ tempassessmentAfterDislysis.DiastolicBloodPressure = endmonitorRecords.DiastolicBloodPressure
|
|
2600
|
+ tempassessmentAfterDislysis.Temperature = endmonitorRecords.Temperature
|
|
2601
|
+ tempassessmentAfterDislysis.BreathingRate = endmonitorRecords.BreathingRate
|
|
2602
|
+ }
|
|
2603
|
+
|
2590
|
2604
|
if lastAssessmentAfterDislysis != nil {
|
2591
|
2605
|
tempassessmentAfterDislysis.BloodPressureType = lastAssessmentAfterDislysis.BloodPressureType
|
2592
|
2606
|
|
|
@@ -2724,7 +2738,7 @@ func (c *DialysisAPIController) Finish() {
|
2724
|
2738
|
|
2725
|
2739
|
//下机完自动消毒,针对长沙南雅
|
2726
|
2740
|
if dialysisOrder.Stage == 1 {
|
2727
|
|
- if adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 3877 || adminUserInfo.Org.Id == 9538 {
|
|
2741
|
+ if adminUserInfo.Org.Id == 9671 || adminUserInfo.Org.Id == 10340 || adminUserInfo.Org.Id == 3877 || adminUserInfo.Org.Id == 9538 || adminUserInfo.Org.Id == 10121 {
|
2728
|
2742
|
//根据床位号获取设备型号
|
2729
|
2743
|
unitType, _ := service.GetUnitType(dialysisOrder.BedID, dialysisOrder.UserOrgId)
|
2730
|
2744
|
//查询使用消毒最后一条消毒记录
|
|
@@ -3240,6 +3254,7 @@ func (this *DialysisAPIController) StartDialysis() {
|
3240
|
3254
|
ultrafiltration_rate = math.Floor(prescription.TargetUltrafiltration / float64(totalMin) * 60 * 1000)
|
3241
|
3255
|
ultrafiltration_rate = ultrafiltration_rate / 1000
|
3242
|
3256
|
}
|
|
3257
|
+
|
3243
|
3258
|
}
|
3244
|
3259
|
}
|
3245
|
3260
|
|
|
@@ -3315,6 +3330,16 @@ func (this *DialysisAPIController) StartDialysis() {
|
3315
|
3330
|
record.Temperature = 36.5
|
3316
|
3331
|
}
|
3317
|
3332
|
|
|
3333
|
+ //诊断灵山圣康
|
|
3334
|
+ if adminUserInfo.Org.Id == 10375 {
|
|
3335
|
+ record.Conductivity = 13.8
|
|
3336
|
+ record.DialysateTemperature = 37
|
|
3337
|
+ record.DialysateFlow = 500
|
|
3338
|
+ record.BloodFlowVolume = 200
|
|
3339
|
+ record.BreathingRate = "18"
|
|
3340
|
+ record.SodiumConcentration = 140
|
|
3341
|
+ }
|
|
3342
|
+
|
3318
|
3343
|
err := service.CreateMonitor(&record)
|
3319
|
3344
|
finish := models.XtDialysisFinish{
|
3320
|
3345
|
IsFinish: 1,
|
|
@@ -3685,7 +3710,15 @@ func (c *DialysisAPIController) PostSolution() {
|
3685
|
3710
|
if dialysisPrescription.Creater == 0 {
|
3686
|
3711
|
prescription.Creater = adminUserInfo.AdminUser.Id
|
3687
|
3712
|
} else {
|
|
3713
|
+
|
3688
|
3714
|
prescription.Creater = dialysisPrescription.Creater
|
|
3715
|
+ if adminUserInfo.Org.Id == 9882 {
|
|
3716
|
+ if appRole.UserType == 2 || appRole.UserType == 1 {
|
|
3717
|
+ prescription.Creater = adminUserInfo.AdminUser.Id
|
|
3718
|
+ prescription.PrescriptionDoctor = adminUserInfo.AdminUser.Id
|
|
3719
|
+
|
|
3720
|
+ }
|
|
3721
|
+ }
|
3689
|
3722
|
}
|
3690
|
3723
|
|
3691
|
3724
|
if adminUserInfo.Org.Id == 10340 && prescription.AdminUserId == 0 {
|