Description
For aligned choices, disclosed, and required arrays, return zero-based indices of selected undisclosed items and required unselected items.
Recorded permissions are metadata with a declared scope, purpose, audience, and withdrawal status. Boolean consistency checks can expose gaps without establishing valid authorization.
For aligned choices, disclosed, and required arrays, return zero-based indices of selected undisclosed items and required unselected items.
When to use this tool
Use Naturopathy Consent Disclosure Choice Mask when you need to compare supplied permission or disclosure records.
How to use the tool and how it works
- Enter choices, disclosed, required. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read undisclosedSelections, missingRequired, complete. Inspect complete before interpreting the associated values.
For aligned choices, disclosed, and required arrays, return zero-based indices of selected undisclosed items and required unselected items. Complete is true only when both lists are empty.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| choices | Choices | Required. Array of boolean; maximum items 256. |
| disclosed | Disclosed | Required. Array of boolean; maximum items 256. |
| required | Required | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| undisclosedSelections | Undisclosed Selections | Required. Array of safe integer; maximum items 256. |
| missingRequired | Missing Required | Required. Array of safe integer; maximum items 256. |
| complete | Complete | Required. Boolean. |
{
"input": {
"choices": [
true,
false
],
"disclosed": [
false,
true
],
"required": [
false,
true
]
},
"output": {
"undisclosedSelections": [
0
],
"missingRequired": [
1
],
"complete": false
}
} Limitations and assumptions
- Boolean consistency is not proof of informed consent, adequate disclosure, or legal permission.
- 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 original consent record and applicable policy with the responsible professional before relying on a permission flag.
References
Similar or alternative tools
- Maternity Link Consent Purpose Flag
Check requestedPurpose against recordedPurposes.
- Neonatal Record Consent Scope Intersection
Reject duplicate entries within either scope list.