Description
Compare taskVersion and trainedVersion literally, return taskDay-trainingDay, and flag trainingAfterTask for a negative difference.
Good manufacturing practice records connect materials, actions, people, and source evidence. A local check can expose missing or inconsistent metadata, but it cannot authenticate a record or replace quality-system review.
Compare taskVersion and trainedVersion literally, return taskDay-trainingDay, and flag trainingAfterTask for a negative difference.
When to use this tool
Use GMP Task Training Version Date Gap when you need a literal manufacturing-record or source-support diagnostic.
How to use the tool and how it works
- Enter taskVersion, trainedVersion, trainingDay, taskDay. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read sameVersion, daysSinceTraining, trainingAfterTask. Inspect sameVersion, trainingAfterTask before interpreting the associated values.
Compare taskVersion and trainedVersion literally, return taskDay-trainingDay, and flag trainingAfterTask for a negative difference.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| taskVersion | Task Version | Required. Text; maximum UTF-16 length 8192. |
| trainedVersion | Trained Version | Required. Text; maximum UTF-16 length 8192. |
| trainingDay | Training Day | Required. Safe integer. |
| taskDay | Task Day | Required. Safe integer. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| sameVersion | Same Version | Required. Boolean. |
| daysSinceTraining | Days Since Training | Required. Safe integer. |
| trainingAfterTask | Training After Task | Required. Boolean. |
{
"input": {
"taskVersion": "v2",
"trainedVersion": "v1",
"trainingDay": 100,
"taskDay": 130
},
"output": {
"sameVersion": false,
"daysSinceTraining": 30,
"trainingAfterTask": false
}
} Limitations and assumptions
- Time uses supplied numeric day coordinates; no effective document version, training content, worker competence, or authorized task execution is verified.
- 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.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use the controlled record system to verify identity, provenance, approvals, and complete audit history. Treat local flags as prompts for investigation rather than release or compliance decisions.
References
Similar or alternative tools
- GMP Training Effective Date Overlap
Test effectiveDay inclusively within that window, compare requiredRole with trainedRoles, and return positive distance from the window or zero inside.
- Training Version Effective Gap
Compare trainedVersion with taskVersion literally, return trainingDay-effectiveDay and taskDay-trainingDay.