Description
Sum nonnegative inputs and outputs independently and subtract totalOutput from totalInput.
An inventory balance adds incoming amounts and subtracts outgoing amounts on one common basis. Signed residuals can reveal inconsistencies without identifying their cause.
Sum nonnegative inputs and outputs independently and subtract totalOutput from totalInput.
When to use this tool
Use Nonclinical Fluid Balance Term when you need to reconcile supplied amounts within a defined accounting window.
How to use the tool and how it works
- Enter inputs, outputs. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read totalInput, totalOutput, balance. Use the output convention below.
Sum nonnegative inputs and outputs independently and subtract totalOutput from totalInput.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| inputs | Inputs | Required. Array of finite number; maximum items 256. |
| outputs | Outputs | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| totalInput | Total Input | Required. Finite number. |
| totalOutput | Total Output | Required. Finite number. |
| balance | Balance | Required. Finite number. |
{
"input": {
"inputs": [
100,
50
],
"outputs": [
80,
20
]
},
"output": {
"totalInput": 150,
"totalOutput": 100,
"balance": 50
}
} Limitations and assumptions
- Use a common volume unit and observation window; omitted losses and measurement uncertainty are not estimated.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Compare against independent measurements and reconcile omitted flows, measurement errors, and timing differences.
References
Similar or alternative tools
- Dialysis Bench Dialysate Volume Term
Multiply flowPerMinute by activeMinutes for flowVolume, add primeVolume for totalInputVolume, and subtract recoveredVolume for unrecoveredVolume.
- Dialysis Inventory Container Fill Gap
Add deliveredVolumes to openingVolume, then subtract withdrawal.