Description
Audit supplied administrative exposure-record gaps under explicit day-end/allowance conventions without inferring medicine use.
Drug-utilization research often reconstructs exposure from dispensing dates, supplied coverage windows, coding systems, and eligibility records. Day counts depend on endpoint and stockpiling policies. Observed records, assumed exposure, and actual medication consumption are different quantities.
Audit supplied administrative exposure-record gaps under explicit day-end/allowance conventions without inferring medicine use.
When to use this tool
Use Drug Exposure Gap Allowance when you need this explicit exposure-record, date-window, reporting-base, or evidence-support calculation.
How to use the tool and how it works
- Enter previousEnd, nextStart, suppliedGapAllowance, inclusiveEnd. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read uncoveredDays, beyondAllowance. Use the output convention below.
For nonnegative integer suppliedGapAllowance return uncoveredDays=max(0,nextStart-previousEnd minus one if inclusiveEnd) and beyondAllowance=uncoveredDays-suppliedGapAllowance.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| previousEnd | Previous End | Required. Safe integer. |
| nextStart | Next Start | Required. Safe integer. |
| suppliedGapAllowance | Supplied Gap Allowance | Required. Safe integer; minimum 0. |
| inclusiveEnd | Inclusive End | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| uncoveredDays | Uncovered Days | Required. Safe integer. |
| beyondAllowance | Signed uncoveredDays minus suppliedGapAllowance; may be negative. | Required. Safe integer. |
{
"input": {
"previousEnd": 10,
"nextStart": 15,
"suppliedGapAllowance": 2,
"inclusiveEnd": true
},
"output": {
"uncoveredDays": 4,
"beyondAllowance": 2
}
} Limitations and assumptions
- BeyondAllowance can be negative when the gap is within the allowance. Endpoints and allowance are supplied rather than derived from dispensing, consumption, or a validated exposure definition.
- 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. Signed zero is exported as zero.
Alternative or Complementary methods
Choose a documented exposure and eligibility definition for the study before combining records. Verify the coding version, observation windows, endpoint convention, and the evidence for assumptions about carried supply.
References
Similar or alternative tools
- Drug Code Vintage Gap
Compare supplied deidentified vocabulary vintage years without resolving a drug code.
- Drug Study Washout Unknown Base
Audit supplied study washout classifications without selecting a washout duration or eligibility criterion.