Skip to content

Commit

Permalink
Merge pull request #16 from mohadesz/violated_scans_series_uid
Browse files Browse the repository at this point in the history
'SeriesUID' column for mri_protocol_violated_scans
  • Loading branch information
samirdas committed Oct 15, 2013
2 parents 765df92 + fdd3142 commit 20763df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uploadNeuroDB/NeuroDB/MRI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ sub identify_scan_db {
my $xspace = $${fileref}->getParameter('xspace');
my $yspace = $${fileref}->getParameter('yspace');
my $zspace = $${fileref}->getParameter('zspace');

my $seriesUID = $${fileref}->getParameter('SeriesUID');
my $slice_thickness = $${fileref}->getParameter('slice_thickness');
my $series_description = $${fileref}->getParameter('series_description');

Expand Down Expand Up @@ -519,8 +519,8 @@ sub insert_violated_scans {
my $query;
my $sth;

$sth = $${dbhr}->prepare("INSERT INTO mri_protocol_violated_scans (CandID,PSCID,time_run,series_description,minc_location,PatientName,TR_range,TE_range,TI_range,slice_thickness_range,xspace_range,yspace_range,zspace_range,xstep_range,ystep_range,zstep_range,time_range) VALUES (?,?,now(),?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
my $success = $sth->execute($candid,$pscid,$series_description,$minc_location,$patient_name,$tr,$te,$ti,$slice_thickness,$xspace,$yspace,$zspace,$xstep,$ystep,$zstep,$time);
$sth = $${dbhr}->prepare("INSERT INTO mri_protocol_violated_scans (CandID,PSCID,time_run,series_description,minc_location,PatientName,TR_range,TE_range,TI_range,slice_thickness_range,xspace_range,yspace_range,zspace_range,xstep_range,ystep_range,zstep_range,time_range,SeriesUID) VALUES (?,?,now(),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
my $success = $sth->execute($candid,$pscid,$series_description,$minc_location,$patient_name,$tr,$te,$ti,$slice_thickness,$xspace,$yspace,$zspace,$xstep,$ystep,$zstep,$time,$seriesUID);

}
# ------------------------------ MNI Header ----------------------------------
Expand Down

0 comments on commit 20763df

Please sign in to comment.