knopkem / dicomweb-proxy

A proxy to translate between dicomweb and traditional dicom dimse services (PACS communication)
Other
71 stars 20 forks source link

How to fetch data only by searched study? #131

Closed dekardkrr closed 1 year ago

dekardkrr commented 1 year ago

Hello everyone! I installed this application and its really wondeefull work was done! But i have not problem but discomfortlying feature. When I enter some text for found out some study? the first action is loading all metadata from server. And for me Its really big problem, because the size of all data getting from server about 20 Mb. If some another user try to get data from another computer the server is freezing. Please help me how to resolve this issue for getting only one study from server?

knopkem commented 1 year ago

Hi, not sure I understood everything correctly, but I suspect that what you are looking for is this behavior:

For this there is a setting in config/default.json 'qidoMinChars' (default 0). Setting this to e.g. 2 and your input is ignored until you type 2 letters (e.g. 'Do').

However, due to the latest update of the OHIF viewer, there was a problem with this (and I think this is also related to your problem). The new version now automatically prepends and appends the wildcard character: *. So when you type D you actually send *D* to the backend, which might find quite a lot of results on your PACS. So I changed this now (stripping it off) and depending on the following config: qidoAppendWildcard (default to true), it would transform D to D* (or if turned off just D).

So make sure to pull the latest version and play with those 2 configs. Let me know if this fixes your issue. Cheers

dekardkrr commented 1 year ago

Thank you very mach. Your advice is what i was meaned. I`ve changed config by setting count of chars to 6 and service started to work correctly. Issue solved.