Description
Reject duplicate entries within either scope list.
Recorded permissions are metadata with a declared scope, purpose, audience, and withdrawal status. Boolean consistency checks can expose gaps without establishing valid authorization.
Reject duplicate entries within either scope list.
When to use this tool
Use Neonatal Record Consent Scope Intersection when you need to compare supplied permission or disclosure records.
How to use the tool and how it works
- Enter firstScopes, secondScopes, firstWithdrawn, secondWithdrawn. 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 shared, usable. Use the output convention below.
Reject duplicate entries within either scope list. Intersect them in firstScopes order; usable is that intersection unless either withdrawal flag is true, in which case it is empty.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstScopes | First Scopes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| secondScopes | Second Scopes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| firstWithdrawn | First Withdrawn | Required. Boolean. |
| secondWithdrawn | Second Withdrawn | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| shared | Shared | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| usable | Usable | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"input": {
"firstScopes": [
"research",
"audit"
],
"secondScopes": [
"research"
],
"firstWithdrawn": false,
"secondWithdrawn": false
},
"output": {
"shared": [
"research"
],
"usable": [
"research"
]
}
} Limitations and assumptions
- Scopes and withdrawal flags are supplied assertions; string intersection does not determine lawful consent or permitted data use.
- 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.
- Midwifery Study Mother Infant ID Scope
Test link equality and exact membership of purpose and audience in their approved lists; eligible requires all three and not revoked.