Skip to content

Main content

Agricultural Survey Option Code Version Tool

Check supplied survey option codes without coercing leading zeros.

Loading tool…

Description

Independently check allowed-code membership and exact equality of version with expectedVersion.

Farm data records connect field, event, sensor and source identifiers with observation and verification flags. Literal keys and supported-record shares help reconcile those records without authenticating a source, identifying a physical object or establishing measurement quality. Repeated IDs may need a different denominator from repeated rows.

Independently check allowed-code membership and exact equality of version with expectedVersion.

When to use this tool

Use Agricultural Survey Option Code Version when checking the stated agricultural source, identity or record-support convention.

How to use the tool and how it works

  1. Enter code, version, allowedCodes, expectedVersion. 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 codeKnown, versionMatches. Inspect codeKnown, versionMatches before interpreting the associated values.

Independently check allowed-code membership and exact equality of version with expectedVersion.1

Input fieldMeaning and unitsAccepted input
codeLiteral supplied code; no external registry lookup.Required. Text; maximum UTF-16 length 8192.
versionLiteral supplied version token; no semantic-version comparison unless explicitly stated.Required. Text; maximum UTF-16 length 8192.
allowedCodesAllowed CodesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
expectedVersionExpected VersionRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
codeKnownCode KnownRequired. Boolean.
versionMatchesVersion MatchesRequired. Boolean.
json
{
  "input": {
    "code": "02",
    "version": "v2",
    "allowedCodes": [
      "01",
      "02"
    ],
    "expectedVersion": "v2"
  },
  "output": {
    "codeKnown": true,
    "versionMatches": true
  }
}

Limitations and assumptions

  • A code may be known while its version differs; no survey schema or meaning is retrieved.
  • 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

Inspect original records, authoritative identifier schemes and calibrated measurements before merging data or drawing agricultural conclusions.

References

  1. Calculation and input contract: agroinformatics/agricultural-survey-option-code-version — tool.io

Similar or alternative tools