Description
Compare the gap with the caller cutoff strictly or inclusively.
Epidemiological windows encode observation and classification rules on a timeline. Endpoint inclusion, late entry and supplied washout periods change counts, but a local timing flag does not establish infection, clinical risk or a validated case definition.
Compare the gap with the caller cutoff strictly or inclusively.
When to use this tool
Use Reinfection Washout Caller Gap when you need a supplied surveillance-time or risk-window calculation.
How to use the tool and how it works
- Enter previousDay, newDay, washoutDays, inclusive. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read gapDays, meetsWashout. Inspect meetsWashout before interpreting the associated values.
Require nonnegative integer washoutDays and newDay at least previousDay. Compare the gap with the caller cutoff strictly or inclusively.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| previousDay | Previous Day | Required. Safe integer. |
| newDay | New Day | Required. Safe integer. |
| washoutDays | Washout Days | Required. Safe integer; minimum 0. |
| inclusive | Inclusive | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| gapDays | Gap Days | Required. Safe integer. |
| meetsWashout | Meets Washout | Required. Boolean. |
{
"input": {
"previousDay": 10,
"newDay": 100,
"washoutDays": 90,
"inclusive": true
},
"output": {
"gapDays": 90,
"meetsWashout": true
}
} Limitations and assumptions
- The cutoff is supplied rather than an official disease-specific reinfection definition. Passing the time rule does not establish a new infection or clinical diagnosis.
- 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
Apply the appropriate study protocol or public-health definition to verified records. Resolve calendar, clock, follow-up and censoring conventions before interpreting timing as epidemiological evidence.
References
Similar or alternative tools
- Risk Window Halfopen Boundary
Test event at or after start and strictly before end, and flag exact equality with the excluded end.
- Risk Window Left Entry Offset
Return max(0,enteredAt-windowStart) and max(0,windowEnd-max(windowStart,enteredAt)).