Creates a new record in the REDCap Image Submission EDC project by collecting imaging metadata from a Flywheel session.
When triggered on a session (or an acquisition within a session), the gear:
record_id for the session based on existing records in the REDCap project.record_id in the session’s custom info on Flywheel.redcap-image-form-creator-PASS or redcap-image-form-creator-FAIL.If required fields are missing from the Flywheel data, the gear fails with a descriptive error and tags the session as failed.
| Input | Base | Description |
|---|---|---|
api-key |
api-key | Flywheel API key with read/write access to sessions and acquisitions. |
Gear configs are defined in manifest.json.
| Parameter | Type | Default | Description |
|---|---|---|---|
dry_run |
boolean | false |
Collect data without modifying REDCap or Flywheel. |
parameter_path |
string | /redcap/aws/image-submission-edc |
AWS SSM parameter path for REDCap API credentials. |
The gear writes to the Image Submission EDC REDCap project. Connection credentials are read from AWS SSM Parameter Store at the configured parameter_path.
| Scenario | Behavior |
|---|---|
| Missing required imaging metadata | Gear fails, session tagged FAIL |
| Unable to generate unique record_id | Gear fails, session tagged FAIL |
| Dry run mode | Data collected and logged, no modifications made |