Trouble adding modality filter to worklist
I have some trouble adding the modality and accessionnumber tags as filters to the worklist. Furthermore I want to display the amount if images per study in the worklist as well.
The accessionnumber and # images show NaN. This is correct for the accessionnumber, since in my case a prefix is added in my DICOM files before the ''actual accession number''. For example: UMCA12345678. However, I have no idea why #images is shown as NaN. What DICOM tag is used to display # images?
I changed the following files to add these filters: worklistResult.html worklistStudy.html retrieveMetaData.js worklistResult.js getStudyMetaData.js
I'm currently trying to get the modality filter, the accession number and the #images up and running. The modality filter is shown blank; it does not even load.

It is important to know that there are two DICOM tags: modality (0008,0060), and modalities (0008,0061). My modalities tag is non-existent when I look at the dicom tags in orthanc, my modality tag is filled with the string "DX".
Is there more documentation available? And does anyone have tips on how to accomplish this?
Hi Martin,
Yes we are aware of these worklist issues but I don't have a good answer for you right now. I think the issues are related to Orthanc, though, since dcm4chee seems to work:

I'll see if we can get these bugs pushed up in our agenda.
Thanks for the report!
Erik
@swederik No problem! Thanks for the headsup. Is there any more information available about dcm4chee? Because I really need to make these filters work.
I was testing with the SIIM DCM4CHEE server, I haven't actually set it up myself, sorry.
Hi Martin,
Right now, we are using DicomWeb (QIDO) to query Orthanc to build the study list. We also noticed this problem, but haven't had a chance to try and fix it yet ourselves. The problem you're having is with the DICOMWeb plugin in Orthanc that does not return (or filter on) those DICOM tags; i.e. ModalitiesInStudy and NumberOfStudyRelatedInstances. It's already been reported on the Orthanc issue tracker here: (https://bitbucket.org/sjodogne/orthanc/issues/14/aggregate-fields-empty-for-qido-rs-study). It's possible that Orthanc might return those tags using another approach to query it, like the REST API or even through DIMSE.
Setting up DCM4CHEE isn't something I've done either, although I know that they are working on a new version of that server that has docker support, so perhaps that wouldn't be too hard; see here: (https://github.com/dcm4che/dcm4chee-arc-light/wiki/Running-on-Docker). If you want to try that and report back to us how it went, that would be awesome!
- Rob
Thanks for your references. I already switched projects (instead of using the cornerstone demo, I'm using the OHIF viewer package) so if it's possible I'm probably not switching to DCM4CHEE.
I'm still figuring out the code, implementation and their interactions of the OHIF viewer/Orthanc, but it would take me a lot of time to solve this issue myself. However I'm still going to try it this week.
I'm going to close this since the same issue is being discussed in https://github.com/OHIF/Viewers/issues/30