Description
Test link equality and exact membership of purpose and audience in their approved lists; eligible requires all three and not revoked.
Recorded permissions are metadata with a declared scope, purpose, audience, and withdrawal status. Boolean consistency checks can expose gaps without establishing valid authorization.
Test link equality and exact membership of purpose and audience in their approved lists; eligible requires all three and not revoked.
When to use this tool
Use Midwifery Study Mother Infant ID Scope when you need to compare supplied permission or disclosure records.
How to use the tool and how it works
- Enter linkId, expectedLinkId, approvedPurposes, requestedPurpose, audience, approvedAudiences, revoked. 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 linkMatches, purposeMatches, audienceMatches, eligible. Inspect linkMatches, purposeMatches, audienceMatches, eligible before interpreting the associated values.
Require nonempty link and request identifiers. Test link equality and exact membership of purpose and audience in their approved lists; eligible requires all three and not revoked.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| linkId | Link Id | Required. Text; maximum UTF-16 length 8192. |
| expectedLinkId | Expected Link Id | Required. Text; maximum UTF-16 length 8192. |
| approvedPurposes | Approved Purposes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| requestedPurpose | Requested Purpose | Required. Text; maximum UTF-16 length 8192. |
| audience | Audience | Required. Text; maximum UTF-16 length 8192. |
| approvedAudiences | Approved Audiences | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| revoked | Revoked | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| linkMatches | Link Matches | Required. Boolean. |
| purposeMatches | Purpose Matches | Required. Boolean. |
| audienceMatches | Audience Matches | Required. Boolean. |
| eligible | Eligible | Required. Boolean. |
{
"input": {
"linkId": "L1",
"expectedLinkId": "L1",
"approvedPurposes": [
"audit"
],
"requestedPurpose": "audit",
"audience": "team",
"approvedAudiences": [
"team"
],
"revoked": false
},
"output": {
"linkMatches": true,
"purposeMatches": true,
"audienceMatches": true,
"eligible": true
}
} Limitations and assumptions
- The flags reflect supplied metadata rather than verified identity or a legal authorization decision.
- 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.