-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add phase encoding direction and echo number to files and MRI QC tabl…
…es (#8152) Phase encoding and echo number are now required to uniquely identify scans for some protocols.
- Loading branch information
Showing
6 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...tches/2022-08-10-add_PhaseEncodingDirection_and_EchoNumber_to_files_and_mri_qc_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-- --------------------------------------------------------------------------------------------- | ||
-- alter files table to add PhaseEncodingDirection and EchoNumber | ||
-- --------------------------------------------------------------------------------------------- | ||
ALTER TABLE files ADD COLUMN `PhaseEncodingDirection` VARCHAR(3) DEFAULT NULL; | ||
ALTER TABLE files ADD COLUMN `EchoNumber` VARCHAR(20) DEFAULT NULL; | ||
|
||
-- --------------------------------------------------------------------------------------------- | ||
-- alter files_qcstatus table to add PhaseEncodingDirection and EchoNumber | ||
-- --------------------------------------------------------------------------------------------- | ||
ALTER TABLE files_qcstatus ADD COLUMN `PhaseEncodingDirection` VARCHAR(3) DEFAULT NULL; | ||
ALTER TABLE files_qcstatus ADD COLUMN `EchoNumber` VARCHAR(20) DEFAULT NULL; | ||
|
||
-- --------------------------------------------------------------------------------------------- | ||
-- alter feedback_mri_comments table to add PhaseEncodingDirection and EchoNumber | ||
-- --------------------------------------------------------------------------------------------- | ||
ALTER TABLE feedback_mri_comments ADD COLUMN `PhaseEncodingDirection` VARCHAR(3) DEFAULT NULL; | ||
ALTER TABLE feedback_mri_comments ADD COLUMN `EchoNumber` VARCHAR(20) DEFAULT NULL; | ||
|
||
-- --------------------------------------------------------------------------------------------- | ||
-- alter mri_violations_log table to add PhaseEncodingDirection and EchoNumber | ||
-- --------------------------------------------------------------------------------------------- | ||
ALTER TABLE mri_violations_log ADD COLUMN `PhaseEncodingDirection` VARCHAR(3) DEFAULT NULL; | ||
ALTER TABLE mri_violations_log ADD COLUMN `EchoNumber` VARCHAR(20) DEFAULT NULL; | ||
|
||
-- --------------------------------------------------------------------------------------------- | ||
-- add an entry in parameter_type table to for the BIDS PhaseEncodingDirection parameter | ||
-- --------------------------------------------------------------------------------------------- | ||
INSERT INTO parameter_type (Name, Type, Description, SourceFrom) | ||
SELECT 'PhaseEncodingDirection', 'text', 'BIDS PhaseEncodingDirection (a.k.a. i, i-, j, j-, k, k-)', 'parameter_file' | ||
WHERE NOT EXISTS (SELECT * FROM parameter_type where Name='PhaseEncodingDirection'); |
6 changes: 6 additions & 0 deletions
6
SQL/New_patches/2022-08-11-fix_feedback_mri_comment_types_not_correctly_serialized.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-- --------------------------------------------------------------------------------------------- | ||
-- fix incorrectly serialized feedback | ||
-- --------------------------------------------------------------------------------------------- | ||
UPDATE feedback_mri_comment_types SET | ||
CommentStatusField='a:2:{s:5:"field";s:34:"Movement_artifacts_between_packets";s:6:"values";a:5:{i:0;s:0:"";i:1;s:4:"None";i:2;s:15:"Slight Movement";i:3;s:12:"Poor Quality";i:4;s:12:"Unacceptable";}}' | ||
WHERE CommentTypeID=4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters