Closed andreidubov closed 1 year ago
Hello @andreidubov!
Thank you for reporting this! I have create a PR (https://github.com/PantelisGeorgiadis/dcmjs-dimse/pull/48) that updated the Network
, Client
and Server
classes to pass dataset read, write and nameMap options. Please review, test and let me know so I can merge it.
Thank you very much, I tested it on my side and it works.
Hello,
Recently, I got the error like
First argument to DataView constructor must be an ArrayBuffer
when receiving or sending aC-Store
request indcmjs-dimse
. After investigating, I found out that in the received dataset there is aLUTData
(0028,3006) element, which lead to this error. The main problem locates indcmjs
(PR https://github.com/dcmjs-org/dcmjs/pull/343). But there is a workaround for this issue: we can overrideNameMap
(Additional DICOM tags to recognise when denaturalizing the dataset) when callingDicomMetaDictionary.denaturalizeDataset()
.dcmjs-dimse
has the ability to passnameMap
to theDataset.toFile()
function and it works good. But the issue is still present when sending aC-Store
request inNetwork._sendPDataTF() -> Dataset.getDenaturalizedDataset()
function.It would be nice to be able to configure a
nameMap
inDataset.getDenaturalizedDataset()
and also add it toClient.send()
fe. toopts
(pass toNetwork._sendPDataTF
).