pynetdicom cannot query on series or image level

239 views
Skip to first unread message

Yuqian Liu

unread,
May 12, 2020, 1:29:29 PM5/12/20
to dcm4che
Hi,

How can pynetdicom query on series or image level? I got  a status 0xa900, "Dataset does not match SOP Class". It only works with "STUDY" level.

Is there some settings will block some querying AET?

Thanks
Yuqian

Gunter Zeilinger

unread,
May 13, 2020, 3:07:33 AM5/13/20
to dcm...@googlegroups.com
Guess you use default hierarchical query and did not include the Study Instance UID for queries on series level or  Study Instance UID and Series Instance UID for queries on image level.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
You received this message because you are subscribed to the Google Groups "dcm4che" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dcm4che+u...@googlegroups.com.

Yuqian Liu

unread,
May 13, 2020, 7:54:54 PM5/13/20
to dcm...@googlegroups.com
Thank you! This works.

Yuqian

You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/wkC6LUJxEGo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dcm4che/zrAXb02CVgFmg3PE4hI0SwZouqgD-mrhBg1LUNF-ovGybhbxVcLB0mZlFfZGL86s87svBFK2oL9rx6DXAdjDysMJS38GRuZUx0hcyB57vtQ%3D%40protonmail.com.

Yuqian Liu

unread,
Oct 13, 2020, 12:56:16 PM10/13/20
to dcm4che
Hi, 

How can I use pynetdicom to search all series by date? The followed code cannot get required series.

e = pynetdicom.AE()
ae.add_requested_context(pynetdicom.sop_class.
PatientRootQueryRetrieveInformationModelFind)

# Create our query dataset
ds = pydicom.dataset.Dataset()

# Query will match on these items
ds.StudyDate = studydate
ds.QueryRetrieveLevel = 'SERIES'
ds.Modality = 'MR'

# Query will additionally return these items
ds.add_new(0x0020000E, 'UI', '') # Series Instance UID
ds.add_new(0x0020000D, 'UI', '') # Study Instance UID
ds.add_new(0x00080031, 'TM', '') # Series Time
ds.add_new(0x0008103E, 'LO', '') # Series Description
ds.add_new(0x00200011, 'IS', '') # Series Number

# Initialize result
seriesdata = list()

# Associate with peer AE
assoc = ae.associate(ip,port,aet)

if assoc.is_established:
responses = assoc.send_c_find(ds, query_model='P')

Thanks
Yuqian 

Reply all
Reply to author
Forward
0 new messages