Skip to content

Main content

Correction Reason Presence Flag Tool

Check an explicit record correction flag and supplied reason presence under a declared whitespace policy.

Loading tool…

Description

Test reasonText length directly when whitespaceCounts or its trimmed length otherwise.

Laboratory study records distinguish observations, sample identities, personnel, and supporting sources. Missingness and duplication depend on record scope; a metadata check cannot establish scientific validity or regulatory acceptance.

Test reasonText length directly when whitespaceCounts or its trimmed length otherwise.

When to use this tool

Use Correction Reason Presence Flag when you need a laboratory-record consistency or source-support check.

How to use the tool and how it works

  1. Enter correctionMade, reasonText, whitespaceCounts. 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 reasonPresent, requiredReasonMissing. Inspect reasonPresent, requiredReasonMissing before interpreting the associated values.

Test reasonText length directly when whitespaceCounts or its trimmed length otherwise. Return reasonPresent and requiredReasonMissing only when correctionMade with no qualifying reason.1

Input fieldMeaning and unitsAccepted input
correctionMadeCorrection MadeRequired. Boolean.
reasonTextReason TextRequired. Text; maximum UTF-16 length 8192.
whitespaceCountsWhitespace CountsRequired. Boolean.
Output fieldInterpretationReturned shape
reasonPresentReason PresentRequired. Boolean.
requiredReasonMissingRequired Reason MissingRequired. Boolean.
json
{
  "input": {
    "correctionMade": true,
    "reasonText": " ",
    "whitespaceCounts": false
  },
  "output": {
    "reasonPresent": false,
    "requiredReasonMissing": true
  }
}

Limitations and assumptions

  • Presence is a supplied lexical policy, not adequacy, truthfulness, attribution, authorization, or a compliant correction record.
  • 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 controlled study records and audit trail for the complete evidentiary chain. Resolve duplicate identifiers, sampling units, and authorization rules before drawing study-level conclusions.

References

  1. Calculation and input contract: glp/correction-reason-presence-flag — tool.io

Similar or alternative tools