IMAGE-level queries with DICOM-QR
wardhendrix opened this issue · 2 comments
wardhendrix commented
- dicomtrolley version: 2.1.6
- Python version: 3.8
- Operating System: Ubuntu
Description
We would like to query our PACS on IMAGE-level (DICOM-QR protocol).
What I Did
DicomTrolley returns the following error (in debug mode) when querying with "PatientID", "AccessionNumber", and "StudyInstanceUID" as keys on IMAGE-level:
Find SCP Result: 0xA900 (Failure)
As a result, no items are returned from the PACS. Below follows a snippet of our script:
dicom_tags_criteria = {'PatientID': '1234', 'AccessionNumber': '1234', 'StudyInstanceUID': '1234'}
query = DICOMQuery(
include_fields=['PatientID', 'AccessionNumber', 'StudyInstanceUID', 'SeriesInstanceUID', 'SOPInstanceUID'],
query_level=QueryLevels.INSTANCE
)
for key, value in dicom_tags_criteria.items():
setattr(query, key, value)
results = self.trolley.find_studies(query)
sjoerdk commented
I will look at this tomorrow
sjoerdk commented
Like #35, this has been fixed by 50c9cda
The snippet in the description should work with
https://github.com/sjoerdk/dicomtrolley/releases/tag/v2.1.8