Description
Find the closest available print size, retaining the first listed option on ties.
Older-adult care records combine preferences, respondent roles, assistance, handoffs, services and medication-list text. Recorded coverage hours differ from adequate care, and a textual medication match differs from clinical medication reconciliation. Consent and proxy authority are contextual questions that a supplied flag cannot settle.
Find the closest available print size, retaining the first listed option on ties.
When to use this tool
Use Older Adult Preferred Print Size when checking the stated older-adult record, assistance, coverage or care-log convention.
How to use the tool and how it works
- Enter preferredPoints, availablePoints. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read exactAvailable, closestPoints. Inspect exactAvailable before interpreting the associated values.
Require preferredPoints>0 and a nonempty list of positive available point sizes. Return exact membership and the available size with the smallest absolute difference; retain the first listed size on an exact tie.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| preferredPoints | Preferred Points | Required. Finite number; strictly above 0. |
| availablePoints | Available Points | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| exactAvailable | Exact Available | Required. Boolean. |
| closestPoints | Numerically closest listed point size; first-listed candidate wins an exact tie. | Required. Finite number. |
{
"input": {
"preferredPoints": 18,
"availablePoints": [
12,
16,
20
]
},
"output": {
"exactAvailable": false,
"closestPoints": 16
}
} Limitations and assumptions
- The numerical nearest size is not a readability, visual-acuity or accessibility recommendation.
- 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 verified source records and individual needs with qualified medical/care professionals; use appropriate legal and accessibility assessment for actual authority, services and care decisions.
References
Similar or alternative tools
- Geriatric Assessment Language Version Pair
Pair the language and version of a geriatric assessment.
- Older Adult Diary Entry Assistance Code
Label the assistance used to enter an older-adult diary record.