Description
Return allowedByFlags for requestedRole listed and not revoked; serialize code and role as a JSON-array key.
Trial records can encode conditions, response keys, inclusion masks and blind-code mappings. Literal membership and balanced counts describe the supplied records; they do not establish valid randomization, effective blinding or clinical conclusions.
Return allowedByFlags for requestedRole listed and not revoked; serialize code and role as a JSON-array key.
When to use this tool
Use Blind Code Explicit Role Token when you need a specified experimental-record or allocation-index check.
How to use the tool and how it works
- Enter code, requestedRole, allowedRoles, revoked. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read allowedByFlags, key. Inspect allowedByFlags before interpreting the associated values.
Return allowedByFlags for requestedRole listed and not revoked; serialize code and role as a JSON-array key.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| code | Code | Required. Text; maximum UTF-16 length 8192. |
| requestedRole | Requested Role | Required. Text; maximum UTF-16 length 8192. |
| allowedRoles | Allowed Roles | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| revoked | Revoked | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| allowedByFlags | Allowed By Flags | Required. Boolean. |
| key | Key | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"code": "X1",
"requestedRole": "analyst",
"allowedRoles": [
"analyst"
],
"revoked": false
},
"output": {
"allowedByFlags": true,
"key": "[\"X1\",\"analyst\"]"
}
} Limitations and assumptions
- Flags and role membership are supplied. This does not implement access control, encryption, blinding protection or verified permission to reveal a code.
- 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
Review the complete experimental design, controlled mappings and source records. Validate actual randomization, permissions, missingness and analysis assumptions rather than inferring them from one token or count.
References
Similar or alternative tools
- Research Blind Code Mapping One Token
Look up token exactly and return label or an empty string with found false.
- Preference Consent Opt In State Transition
Accept opt-in, opt-out or unchanged action.