Closed jimOnAir closed 5 months ago
Thanks for proposing this. Since dicom-dimse is involved, perhaps @PantelisGeorgiadis could have a look?
Also we like to have tests for anything that changes core functions. As you know dicom parsing can be very fragile and we don't want unintended side effects now or in the future. Can you add a test and test data for the dcmjs-org/data repository?
Hello @jimOnAir! Very strange behavior! Have you tried to understand why KPacs is doing that? Maybe the internal DICOM dictionary is too old to know about these tags and, therefore, it converts them to UN? How do other clients behave when sending the same datasets?
Is there a chance the changes proposed by @andreidubov in https://github.com/PantelisGeorgiadis/dcmjs-dimse/issues/47 to fit your needs so we can avoid having this logic in the core library?
Thank you @pieper, I'll try to add tests later.
@PantelisGeorgiadis KPacs is too old to support the current standard. Version 1.6 was released in 2008. But since it is free, some organizations still using it.
https://github.com/PantelisGeorgiadis/dcmjs-dimse/issues/47 aims on sending parsed dataset over the network, but here we have an issue with dataset parsing.
Hello. @andreidubov thank you for your solution, it seems like it is way better than mine.
Hello. I have an issue with receiving images from KPacs with dcmjs-dimse library:
After some investigation I have found that KPacs replaces VR of some tags with UN. Original file:
File from KPacs:
VR is replaced for tags:
Therefore values for this tags are parsed as ArrayBuffer in Dataset and can't and next can't be saved to file.
I thought that actuall VR of tag can be obtained from DicomDictionary, but current value should be procceded based on UN encoding. I've tried this fix for files and it's working. Please review and let me know if something needs to be changed.