This gear coordinates the data quality checks for a given participant. It internally triggers the Form QC Checker gear to validate each visit.
This gear uses the AWS SSM parameter store, and expects that AWS credentials are available in environment variables (AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_DEFAULT_REGION) within the Flywheel runtime.
This gear can only be triggered by submission pipeline or finalization pipeline.
Gear configs are defined in manifest.json.
This gear manages QC metadata and tags on the visit files it coordinates, not on its own input file. See the QC Conventions reference for details on the data models and conventions used.
File Tag (submission pipeline only): When triggered by the submission pipeline, the gear name (e.g., "form-qc-coordinator") is added as a tag to the input visits file, indicating the file has been processed.
Visit File QC Reset: When re-triggering QC for a visit, the coordinator resets the QC metadata on the visit file using FileQCModel and removes existing gear status tags (e.g., form-qc-checker-PASS or form-qc-checker-FAIL) using the GearTags class. This ensures the downstream Form QC Checker starts with a clean state.
Note: The coordinator does not add QC results to its own input file. QC validation results are managed by the downstream Form QC Checker gear that it triggers for each visit.