Description
Check a social-contact frequency code against allowed codes and a separate missing token.
Aging research distinguishes participant and informant identities, calendar-month coordinates, time-use exposure and event/censoring status. Proxy responses and missing codes carry different meanings from direct observations. Local record summaries do not establish lifespan, legal status, accessibility or appropriate care.
Check a social-contact frequency code against allowed codes and a separate missing token.
When to use this tool
Use Social Contact Tie Frequency Code when checking the stated aging-study record, timing, censoring or support convention.
How to use the tool and how it works
- Enter responseCode, allowedCodes, missingCode. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read recognized, missing. Inspect recognized, missing before interpreting the associated values.
Require missingCode absent from allowedCodes. Return recognized for literal allowed-code membership and missing for equality with the missing token.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| responseCode | Response Code | Required. Text; maximum UTF-16 length 8192. |
| allowedCodes | Allowed Codes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| missingCode | Missing Code | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| recognized | Recognized | Required. Boolean. |
| missing | Missing | Required. Boolean. |
{
"input": {
"responseCode": "weekly",
"allowedCodes": [
"daily",
"weekly"
],
"missingCode": "NA"
},
"output": {
"recognized": true,
"missing": false
}
} Limitations and assumptions
- An unrecognized response need not be missing; no social-contact frequency, validated coding scheme or health interpretation is inferred.
- 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.
Alternative or Complementary methods
Use verified original records and suitable complete research methods; involve qualified health, accessibility or legal professionals for actual care or rights decisions.
References
Similar or alternative tools
- Aging Panel Death Date Precision Code
Attach a declared precision code to a recorded death date.
- Older Adult Survey Proxy Flag
Flag a participant/respondent mismatch and whether that difference lacks a proxy declaration.