Randomness‎ > ‎

Archive and MWL queries

posted Mar 23, 2015, 1:02 PM by Matt Granger   [ updated Mar 26, 2020, 12:24 PM ]
Below are some command line arguments you can run in order to manually perform a query of your DICOM archive or Worklist using the dcm4che tools "dcmqr" or "dcmmwl". It's a nice way to mess around with manual queries if you're in to that kind of thing.  Navigate to the \dcm4che-X.X.X.X\bin folder and then type one of the commands below:

Worklist Query
dcmmwl.bat -L CallingAeTitle CalledAeTitle@WorklistIP:WLport -q00100020=PatientIdToQuery

Archive Query
dcmqr.bat -L CallingAeTitle -noextneg CalledAeTitle@ArchiveIP:ArchivePort -q00100020=PatientIdToQuery –rStudyDescription

CallingAeTitle - Your workstation's AE title (be sure your WL or archive is setup to accept queries from this AE!)
CalledAeTitle - Your WL or Archive's AE title
WorklistIP - The IP address of your worklist server
WLport - The port of your worklist server
ArchiveIP - The IP address of your Archive server
ArchivePort - The port of your Archive server
PatientIdToQuery - The patient ID you want to query

You can query using all sorts of other info, search out the help docs on dcm4che's site and you can see the other instances in which it can be used.  Have fun!