Skip to content

Main content

Consent Scope Intersection Size Tool

Count distinct exact tokens shared by two explicitly supplied consent-scope lists without interpreting legal validity.

Loading tool…

Description

Return the number of distinct scope labels shared by two consent lists.

Consent, privacy and retention records encode supplied purposes, audiences, withdrawal status and timing rules. Literal membership or a true local predicate can organize these assertions while valid informed consent, adequate de-identification and lawful processing require separate contextual assessment.

Return the number of distinct scope labels shared by two consent lists.

When to use this tool

Use Consent Scope Intersection Size when checking the stated permission, withdrawal, retention or disclosure-record convention.

How to use the tool and how it works

  1. Enter firstScopes, secondScopes. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read sharedScopeCount. Use the output convention below.

Return the number of distinct scope labels shared by two consent lists. Count their literal set intersection.1

Input fieldMeaning and unitsAccepted input
firstScopesFirst ScopesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
secondScopesSecond ScopesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
sharedScopeCountShared Scope CountRequired. Safe integer.
json
{
  "input": {
    "firstScopes": [
      "a",
      "b",
      "b"
    ],
    "secondScopes": [
      "b",
      "c"
    ]
  },
  "output": {
    "sharedScopeCount": 1
  }
}

Limitations and assumptions

  • Literal overlap does not establish consent validity, semantic subsumption, recontact rights or lawful 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 original permissions, participant choices and applicable organizational/legal requirements with the responsible professionals before actual use, disclosure or deletion.

References

  1. Calculation and input contract: bioethics/consent-scope-intersection-size — tool.io

Similar or alternative tools