Description
Find inconsistent literal linkage roles in supplied records without establishing identity or relationships.
Pregnancy and birth research records distinguish observed and estimated values, dating anchors, day coordinates, time precision, clock offsets, and source permissions. A notation conversion or interval comparison does not determine a clinical date or validate consent. The supplied reference convention and uncertainty need to remain visible.
Find inconsistent literal linkage roles in supplied records without establishing identity or relationships.
When to use this tool
Use Maternal Infant Link Role Conflict when you need this supplied research age, date, interval, clock, provenance, or record-rule calculation.
How to use the tool and how it works
- Enter personIds, roles, allowedRoles. 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 unknownRolePositions, conflictingIds. Use the output convention below.
Require aligned personIds and roles. Return zero-based unknownRolePositions absent from allowedRoles and conflictingIds for IDs associated with more than one distinct role, preserving first ID appearance order.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| personIds | Person Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| roles | Roles | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| allowedRoles | Allowed Roles | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| unknownRolePositions | Unknown Role Positions | Required. Array of safe integer; maximum items 256. |
| conflictingIds | Conflicting Ids | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"input": {
"personIds": [
"P1",
"P2",
"P1"
],
"roles": [
"maternal",
"infant",
"infant"
],
"allowedRoles": [
"maternal",
"infant"
]
},
"output": {
"unknownRolePositions": [],
"conflictingIds": [
"P1"
]
}
} Limitations and assumptions
- Identical duplicate roles are not conflicts and an allowed multi-role relationship can still be flagged. The check does not establish person identity, family linkage, consent, clinical role validity, or data-access authorization.
- 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
Use verified dates and sources together with the intended research or clinical assessment process. Check dating anchors, clock conventions, uncertainty, and whether a supplied reporting rule is appropriate for the question.
References
Similar or alternative tools
- Maternity Data Mother Infant Link Scope
Check both supplied record linkage scopes and withdrawal flags.
- Birth Record Fixed Offset Date Carry
Translate supplied day/minute records between explicit fixed UTC offsets.