11.33 Limits and a validation plan
qc-data is a broad screening and documentation system, not a substitute for source-data verification, protocol review, assay QC, model validation or independent programming.
Important limits
- Rules depend on configured mappings, scales and thresholds.
- Plausible but incorrect values may pass.
- Rare valid designs can warn.
- Statistical outlier rules lose power in sparse/stratified data.
- Generated
$INPUT/$DATAsuggestions do not validate model code. - A catalogue version can change; pin nlmx and archive
--list-checks/settings. - Row filters can exclude defects from the analyzed subset.
- Finding caps/report page limits can hide detail from a presentation surface.
Validation for software-accuracy work
Because this project aims to reproduce established pharmacometric software while improving speed, validate qc-data against frozen test cases with expected check IDs, statuses, line numbers and counts. Include clean cases, one-defect cases, interacting defects, boundary values and deliberately unsupported formats.
Compare behavior with NONMEM/NM-TRAN where the question is readability, but do not assume identical diagnostics: qc-data intentionally asks higher-level questions that NONMEM may not. Record whether an acceptance criterion is exact ID/status agreement, line-level agreement or justified difference.
Release suite
- Freeze fixtures and hashes.
- Pin settings and executable identity.
- Record the expected 99-check catalogue for this version.
- Test every check with positive and negative cases where feasible.
- Verify output schemas, checksums and exit codes.
- Repeat across supported platforms.
- Measure speed only after correctness acceptance.
Common mistakes
- Validating only the clean dataset.
- Comparing headline verdicts but not line-level evidence.
- Mixing catalogue changes with numerical performance changes.
- Claiming NONMEM equivalence for checks NONMEM does not perform.
Checklist
- State the validated version and envelope.
- Preserve failures and edge cases as first-class fixtures.
- Define exact versus tolerance/semantic acceptance.
- Separate accuracy, completeness and speed claims.
Further reading
See validation boundary, tolerance-based tests, publication/regulatory QC, and the planned Chapter 42.