Description
Check requestedPurpose against recordedPurposes.
Recorded permissions are metadata with a declared scope, purpose, audience, and withdrawal status. Boolean consistency checks can expose gaps without establishing valid authorization.
Check requestedPurpose against recordedPurposes.
When to use this tool
Use Maternity Link Consent Purpose Flag when you need to compare supplied permission or disclosure records.
How to use the tool and how it works
- Enter requestedPurpose, recordedPurposes, consentKnown, consentGranted. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read purposeRecorded, permittedUnderFlags, unresolved. Inspect purposeRecorded, permittedUnderFlags, unresolved before interpreting the associated values.
Check requestedPurpose against recordedPurposes. permittedUnderFlags requires consentKnown, consentGranted, and purpose membership; unresolved is the inverse of consentKnown.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| requestedPurpose | Requested Purpose | Required. Text; maximum UTF-16 length 8192. |
| recordedPurposes | Recorded Purposes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| consentKnown | Consent Known | Required. Boolean. |
| consentGranted | Consent Granted | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| purposeRecorded | Purpose Recorded | Required. Boolean. |
| permittedUnderFlags | Permitted Under Flags | Required. Boolean. |
| unresolved | Unresolved | Required. Boolean. |
{
"input": {
"requestedPurpose": "research",
"recordedPurposes": [
"care"
],
"consentKnown": true,
"consentGranted": true
},
"output": {
"purposeRecorded": false,
"permittedUnderFlags": false,
"unresolved": false
}
} Limitations and assumptions
- An arithmetic permission flag is not a legal determination or independent consent verification.
- 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
- 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.
- Neonatal Record Consent Scope Intersection
Reject duplicate entries within either scope list.