Skip to content

Main content

Maternal Infant Link Role Conflict Tool

Find inconsistent literal linkage roles in supplied records without establishing identity or relationships.

Loading tool…

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

  1. Enter personIds, roles, allowedRoles. Keep parallel arrays aligned. 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 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 fieldMeaning and unitsAccepted input
personIdsPerson IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
rolesRolesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
allowedRolesAllowed RolesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
unknownRolePositionsUnknown Role PositionsRequired. Array of safe integer; maximum items 256.
conflictingIdsConflicting IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
json
{
  "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

  1. Calculation and input contract: obstetrics/maternal-infant-link-role-conflict — tool.io

Similar or alternative tools