Description
Top-code a supplied recorded age at an explicit threshold.
Emergency records distinguish event clocks, retrospective entry times, equipment dates, encounter identifiers and recorded triage or laboratory states. A supplied time gap is not a verified performance measure, and a recorded seal expiry does not establish equipment readiness. Simulation duty fractions and role labels describe training records rather than emergency-care instructions.
Top-code a supplied recorded age at an explicit threshold.
When to use this tool
Use Emergency Deidentified Age Top Code when you already have recordedAgeYears, suppliedTopCodeYears and need to top-code a supplied recorded age at an explicit threshold.
How to use the tool and how it works
- Enter recordedAgeYears, suppliedTopCodeYears. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read displayAge, topCoded. Inspect topCoded before interpreting the associated values.
Require recordedAgeYears and threshold>=0; at or above threshold return threshold+ and topCoded=true, otherwise the numeric age spelling and false.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| recordedAgeYears | Recorded Age Years | Required. Finite number; minimum 0. |
| suppliedTopCodeYears | Supplied Top Code Years | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| displayAge | Display Age | Required. Text; maximum UTF-16 length 8192. |
| topCoded | True at equality or above the supplied threshold; this affects the display only. | Required. Boolean. |
{
"input": {
"recordedAgeYears": 95,
"suppliedTopCodeYears": 90
},
"output": {
"displayAge": "90+",
"topCoded": true
}
} Limitations and assumptions
- Fractional ages and thresholds are accepted. This changes display only and does not anonymize the underlying record or establish disclosure compliance.
- 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
Review the actual event, equipment and laboratory records with verified timing and the complete clinical workflow. Treat local flags and interval arithmetic as record checks; they do not supply triage, response protocols, safe staffing or an assessment of a real emergency.
References
Similar or alternative tools
- Household Roster Reference Date Mask
Choose a roster reference date or supplied date-display mask.
- Justice Record Publication Precision Label
Label a justice record's supplied date and location precision.