Description
Return inspection due day, overdue days and grace flag.
Anesthesia-related research and training records require explicit clocks, missingness flags, exclusions and measurement references. These tools reconcile benign records, simulations or bench data; an acceptable local overlap or composition sum does not establish clinical adequacy or safe patient care. Censored observations provide bounds rather than observed event times.
Return inspection due day, overdue days and grace flag.
When to use this tool
Use Anesthesia Equipment Inspection Window when checking the stated benign record, simulation, timing or bench-measurement convention.
How to use the tool and how it works
- Enter lastInspectionDay, currentDay, intervalDays, graceDays. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read dueDay, overdueDays, withinGrace. Inspect withinGrace before interpreting the associated values.
Return inspection due day, overdue days and grace flag. Require ordered whole current/last-inspection days, intervalDays >= 1 and graceDays >= 0; due = last+interval, overdue floors current-due at zero, withinGrace includes due+grace equality.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| lastInspectionDay | Last Inspection Day | Required. Safe integer. |
| currentDay | Current Day | Required. Safe integer. |
| intervalDays | Interval Days | Required. Safe integer; minimum 1. |
| graceDays | Grace Days | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| dueDay | Due Day | Required. Safe integer. |
| overdueDays | Overdue Days | Required. Safe integer. |
| withinGrace | currentDay<=dueDay+graceDays; equality is included. | Required. Boolean. |
{
"input": {
"lastInspectionDay": 100,
"currentDay": 135,
"intervalDays": 30,
"graceDays": 7
},
"output": {
"dueDay": 130,
"overdueDays": 5,
"withinGrace": true
}
} Limitations and assumptions
- Grace and interval are supplied administrative rules, not proof of safe equipment, actual inspection or lawful clinical use.
- 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
Use verified source records and appropriate complete analysis for research or quality review; seek qualified medical and engineering assessment for actual clinical care or equipment decisions.
References
Similar or alternative tools
- Anesthesia Event Marker Index
Return nearest waveform event-sample index and time error.
- Anesthesia Log Clock Origin Flag
Return elapsed log time only when origin is known.