Call to Weasis with accessionNumber and Patientid

80 views
Skip to first unread message

AKS

unread,
Apr 17, 2025, 4:22:14 AMApr 17
to dcm4che


How can I solve this?
e.g. 
weasis://?$dicom:rs --url "http://10.100.1.3:8080/dcm4chee-arc/aets/DCM4CHEE/rs" --query-ext "&includedefaults=false" -r accessionNumber=57221 patientID=64343

it launches with images belonging to that accessionNumber with different PatientID
or launches with images belonging to that  PatientID with different accessionNumber

How can i validate the patientID and the accessionNumber as a combination?

Nicolas Roduit

unread,
Apr 17, 2025, 7:55:03 AMApr 17
to dcm4che
You should try with:  -r accessionNumber=57221 -r patientID=64343

Ajay Sabherwal

unread,
Apr 18, 2025, 12:12:10 AMApr 18
to dcm...@googlegroups.com

This also I tried.  I took the accession number of one study and patientid of another. 
I tried the way you suggested...
With -r in both...

Both studies opened.

So it is working as an either clause.

I want to know how to make it work as an and clause.   So if the patientid and accession number do not match , it should throw an error


--
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/zDYF5s19N0w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dcm4che/6dd06ee2-645f-4ac8-8ca9-c79c5c6e8005n%40googlegroups.com.

Nicolas Roduit

unread,
Apr 26, 2025, 1:21:58 PMApr 26
to dcm4che
Yes, this is not possible. AccessionNumber is an alternative to StudyInstanceUID which should be unique for a DICOM query. AccessionNumber should only refer to studies from the same patient.

The “-r” parameter can have combinations with the patient query level (e.g. exams of a certain period or modality type), see this page.

Ajay Sabherwal

unread,
Jun 18, 2025, 11:01:00 AMJun 18
to dcm...@googlegroups.com
I urgently need this solution... anyway you can do this. Should only open with the combination being valid

 Thanks & Regards

 

Ajay K. Sabherwal


Ajay Sabherwal

unread,
Jun 18, 2025, 11:26:49 AMJun 18
to dcm...@googlegroups.com
You used to have this feature earlier.

weasis://[host]:[port]/viewer?patientID=12345&accessionNumber=ABC123


Will this still work if from the browser I am querying this url to a dcm4chee5 light archive?

 Thanks & Regards

 

Ajay K. Sabherwal

Nicolas Roduit

unread,
Jun 19, 2025, 4:21:22 PMJun 19
to dcm4che
To my knowledge, the combination of accession number and patient has never existed.

Each accession number must correspond to one or more studies of the same patient, according to the DICOM standard. If this is not the case, the StudyInstanceUID must be used to guarantee access to a study.

Ajay Sabherwal

unread,
Jun 19, 2025, 4:48:01 PMJun 19
to dcm...@googlegroups.com

Thanks for answering.  But I would like to differ with you.  In one institution the accession no. Would be unique and I agree with this....
But what if I upload a CD from another institution PACS.  or transfer online.  What would you do in such a case.  The accession number may not be unique in such a case. 
Moreover as regards STUDYUID, it will be unique across institutions is an assumption.  But many modalities do not configure to accept this from the ducom worklist, instead generate their own.  In this case the RIS /HIS does not know of it . It has knowledge only of patientid and accession no. 

So kindly evaluate.
In any case I cannot think of a usecase  for an "either" scenario if both are passed. As it would be wrong to pass .  Hence I believe the practice should be satisfaction of all the parameters and not satisfaction of either of the parameters


Reply all
Reply to author
Forward
0 new messages