Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Line Tool to obtain FileID of inserted mincs using a lists of SeriesUID as STDIN #155

Merged
merged 3 commits into from Oct 28, 2016

Conversation

gluneau
Copy link
Contributor

@gluneau gluneau commented Sep 12, 2016

This tool will help figure out if the dicom files you have are inserted in loris.

Example of use:
for i in $(find -type f); do dcmdump $i | grep SeriesInstanceUID; done | sort | uniq | cut -d "[" -f2 | cut -d "]" -f1 | /data/ibis/bin/mri/tools/seriesuid2fileid

image

@paiva
Copy link

paiva commented Oct 14, 2016

@gluneau Tested it. Very good :)

my $queryT = "SELECT * FROM tarchive_series as t LEFT JOIN tarchive as a USING (TarchiveID) WHERE t.SeriesUID=?";
my $queryM = "SELECT * FROM mri_protocol_violated_scans as m WHERE m.SeriesUID=? OR (m.PatientName=? AND m.series_description=?)";
my $queryV = "SELECT * FROM mri_violations_log as v WHERE v.SeriesUID=?";
my $queryP = "SELECT (SELECT pf.`VALUE` FROM parameter_file AS pf WHERE pf.FileID=56788 AND pf.ParameterTypeID=182) AS xspace, (SELECT pf.`VALUE` FROM parameter_file AS pf WHERE pf.FileID=? AND pf.ParameterTypeID=171) AS zspace, IFNULL((SELECT pf.`VALUE` FROM parameter_file AS pf WHERE pf.FileID=? AND pf.ParameterTypeID=337), 1) as time";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded IDs; to be fixed

@paiva
Copy link

paiva commented Oct 28, 2016

@gluneau Ready to be tested?

@MounaSafiHarab MounaSafiHarab merged commit 2b62ac8 into aces:17.0-dev Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants