Method: Renalware::PD::APD::RegimeCalculations#calculated_daily_volume
- Defined in:
- app/models/renalware/pd/apd/regime_calculations.rb
#calculated_daily_volume ⇒ Object
The total volume of all bags for a day when they have PD.
17 18 19 20 21 22 23 24 |
# File 'app/models/renalware/pd/apd/regime_calculations.rb', line 17 def calculated_daily_volume vol = [ calculated_overnight_volume, effective_last_fill_volume, effective_additional_manual_exchange_volume ].compact.inject(0, :+) vol == 0 ? nil : vol end |