Description
Compute supplied diary episode duration and wake delay with an explicit censor flag.
Research records distinguish observed, missing, inapplicable, and unverified entries. Those categories affect which denominator or weight a summary uses. A completeness or timing calculation describes the supplied records without assigning a clinical score or interpreting a condition.
Compute supplied diary episode duration and wake delay with an explicit censor flag.
When to use this tool
Use it for morning stiffness diary duration term when the required inputs and conventions are already available.
How to use the tool and how it works
- Enter wakeMinute, onsetMinute, endMinute, censored. Use the stated units and boundary conventions.
- Run the calculation. Correct any input error before interpreting a result.
- Read observedMinutes, wakeDelayMinutes, exact. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.
Require wakeMinute <= onsetMinute <= endMinute, then return episode minutes and wake-to-onset delay. Set exact to the inverse of the supplied censored flag.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| wakeMinute | Wake Minute | Required. Finite number. |
| onsetMinute | Onset Minute | Required. Finite number. |
| endMinute | End Minute | Required. Finite number. |
| censored | Censored | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| observedMinutes | Observed Minutes | Required. Finite number. |
| wakeDelayMinutes | Wake Delay Minutes | Required. Finite number. |
| exact | Exact | Required. Boolean. |
{
"input": {
"wakeMinute": 360,
"onsetMinute": 370,
"endMinute": 410,
"censored": false
},
"output": {
"observedMinutes": 40,
"wakeDelayMinutes": 10,
"exact": true
}
} Limitations and assumptions
- Censoring changes the exactness label but does not derive alternative duration bounds. Times must already share a consistent minute axis, including any overnight normalization.
- The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
- Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.
Alternative or Complementary methods
For morning stiffness diary duration term, check the source records and the supplied rule before comparing the result with another method. Use an appropriately validated measurement or analysis method for clinical interpretation.
References
Similar or alternative tools
- Stiffness Duration Partial Time Bound
Bound a supplied diary duration while respecting that end cannot precede start; no symptom severity interpretation.
- Pain Diary Scale Step
Express a supplied diary response difference in explicit scale steps without validated severity interpretation.