Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Do not use the blue keys on this terminal.


devel / comp.protocols.dicom / Re: DS with VM>1 : how to handle empty values ?

SubjectAuthor
* DS with VM>1 : how to handle empty values ?guiot...@gmail.com
`- Re: DS with VM>1 : how to handle empty values ?Hervé Guillemet

1
DS with VM>1 : how to handle empty values ?

<1eedc0b9-5833-4d8d-90e4-9eb24bc7a6bdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=421&group=comp.protocols.dicom#421

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:ad4:5a03:0:b0:456:5533:4ab1 with SMTP id ei3-20020ad45a03000000b0045655334ab1mr14372023qvb.24.1652693438459;
Mon, 16 May 2022 02:30:38 -0700 (PDT)
X-Received: by 2002:a05:620a:29ce:b0:6a0:e9a:f7a2 with SMTP id
s14-20020a05620a29ce00b006a00e9af7a2mr7168967qkp.479.1652693438262; Mon, 16
May 2022 02:30:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 16 May 2022 02:30:38 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=193.191.131.34; posting-account=ZWzKCQoAAADGl251sIFSnldJzFPWDhiz
NNTP-Posting-Host: 193.191.131.34
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1eedc0b9-5833-4d8d-90e4-9eb24bc7a6bdn@googlegroups.com>
Subject: DS with VM>1 : how to handle empty values ?
From: guiothomas@gmail.com (guiot...@gmail.com)
Injection-Date: Mon, 16 May 2022 09:30:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2522
 by: guiot...@gmail.com - Mon, 16 May 2022 09:30 UTC

Hi,

I have a private tag of VR DS with a VM>1. The last value is actually empty.. So the DS appears as such:
"1.0\0.0\0.0\0.0\0.0\1.0\0.0\0.0\0.0\0.0\1.0\0.0\0.0\0.0\0.0\1.0\"

it's not clear to me whether the last backslash is meant to represent a true empty last value, or if it's wrongly used as a padding character.

I've searched the standard and google, to try to find whether you can have an empty value in a DS, and how it should be encoded. I have not found information about that, so I assume by default that the value above is correct : you can indeed have empty values in a multiple-valued DS tag. I could have this for instance : "1.0\\\\0.0"

Why I'm asking is because one of our commercial apps is throwing an error while anonymizing the dataset. it's configured to keep the private tags intact, but bugs on this one.
Interestingly, when simply parsing the data, the app correctly reads this field as an array of number and a last empty element :
[1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, ]

but when it tries to rewrite it, it doesn't work because it's trying to cast a null value into a number, which throws the error.

So i'm trying to find the culprit : is the modality creating a malformed tag with a forbidden empty value in a multi-valued DS ?
or is the app not correctly handling an allowed empty value in a multi-valued DS tag ?

thanks
Thomas

Re: DS with VM>1 : how to handle empty values ?

<bc99295c-b47e-4a25-80eb-adad9123804dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=422&group=comp.protocols.dicom#422

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:622a:110f:b0:2f3:c9f1:ada4 with SMTP id e15-20020a05622a110f00b002f3c9f1ada4mr18137634qty.197.1652764240169;
Mon, 16 May 2022 22:10:40 -0700 (PDT)
X-Received: by 2002:ac8:59d3:0:b0:2f3:d7ee:2b54 with SMTP id
f19-20020ac859d3000000b002f3d7ee2b54mr18733603qtf.290.1652764240034; Mon, 16
May 2022 22:10:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 16 May 2022 22:10:39 -0700 (PDT)
In-Reply-To: <1eedc0b9-5833-4d8d-90e4-9eb24bc7a6bdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:cb04:cf:6e00:6d9:f5ff:fef7:76fe;
posting-account=9zxpKwoAAAAK0emwNpNFa5b9_tA2RobK
NNTP-Posting-Host: 2a01:cb04:cf:6e00:6d9:f5ff:fef7:76fe
References: <1eedc0b9-5833-4d8d-90e4-9eb24bc7a6bdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bc99295c-b47e-4a25-80eb-adad9123804dn@googlegroups.com>
Subject: Re: DS with VM>1 : how to handle empty values ?
From: hg@apteryx.fr (Hervé Guillemet)
Injection-Date: Tue, 17 May 2022 05:10:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1549
 by: Hervé Guillemet - Tue, 17 May 2022 05:10 UTC

This situation is uncommon and I'm not sure there exist any numeric multiple-valued standard data element that is allowed to contain empty values.
But technically, at the encoding level, it is your app that is buggy and that should be able to write the empty (null) value.

Hervé

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor