Skip to content

Main content

Research Form Source Gap Tool

Calculate research form source gap from explicit caller-supplied inputs.

Loading tool…

Description

Compare unique form fields with source values and verification flags.

Clinical research distinguishes supplied protocol metadata, participant/event records, allocation bookkeeping and an analysis target. A local count, permission flag or denominator choice can help reconcile records without establishing valid consent, randomization, regulatory compliance or a reliable treatment-effect estimate.

Compare unique form fields with source values and verification flags.

When to use this tool

Use Research Form Source Gap when checking the stated clinical-research record, allocation, timing, analysis or evidence-basis convention.

How to use the tool and how it works

  1. Enter fieldIds, formValues, sourceValues, sourceVerified. 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 fields, valueMismatches, verifiedMatches. Use the output convention below.

Compare unique form fields with source values and verification flags. Require aligned arrays and unique fieldIds; count fields, literal value mismatches and matches whose sourceVerified flag is true.1

Input fieldMeaning and unitsAccepted input
fieldIdsField IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
formValuesForm ValuesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
sourceValuesSource ValuesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
sourceVerifiedSupplied source-verification flags; the tool does not authenticate records.Required. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
fieldsFieldsRequired. Safe integer.
valueMismatchesValue MismatchesRequired. Safe integer.
verifiedMatchesVerified MatchesRequired. Safe integer.
json
{
  "input": {
    "fieldIds": [
      "a",
      "b"
    ],
    "formValues": [
      "1",
      "2"
    ],
    "sourceValues": [
      "1",
      "3"
    ],
    "sourceVerified": [
      true,
      true
    ]
  },
  "output": {
    "fields": 2,
    "valueMismatches": 1,
    "verifiedMatches": 1
  }
}

Limitations and assumptions

  • Supplied matches and verification flags do not authenticate source documents, validate clinical data or establish regulatory compliance.
  • 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 the complete approved protocol, authenticated source records and qualified clinical/statistical oversight for actual trial design, conduct and interpretation.

References

  1. Calculation and input contract: clinical-research/research-form-source-gap — tool.io

Similar or alternative tools