Write XML and binary="hidden"

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
canonrad
Posts: 8
Joined: Thu, 2006-03-09, 22:35
Location: USA
Contact:

Write XML and binary="hidden"

#1 Post by canonrad »

I am trying to debug find queries returned from Conquest. The queries come back normally. but I can't get the value strings and when I write the query as xml I get binary="hidden" for the value. I assume this is due to the lack of a Specific Character Set element. If I add a SpecificCharacterSet element to the response manually will I be able to extract the values?

<data-set xfer="1.2.840.10008.1.2.1" name="LittleEndianExplicit">
<element tag="0008,0020" vr="UN" vm="1" len="8" name="StudyDate"
binary="hidden"></element>
<element tag="0008,0030" vr="UN" vm="1" len="14" name="StudyTime"
binary="hidden"></element>
<element tag="0008,0052" vr="UN" vm="1" len="6" name="QueryRetrieveLevel"
binary="hidden"></element>
<element tag="0008,0061" vr="UN" vm="1" len="2" name="ModalitiesInStudy"
binary="hidden"></element>
<element tag="0008,1030" vr="UN" vm="1" len="30" name="StudyDescription"
binary="hidden"></element>
<element tag="0010,0010" vr="UN" vm="1" len="20" name="PatientsName"
binary="hidden"></element>
<element tag="0010,0020" vr="UN" vm="1" len="10" name="PatientID"
binary="hidden"></element>
<element tag="0020,000d" vr="UN" vm="1" len="56" name="StudyInstanceUID"
binary="hidden"></element>
<element tag="0020,0010" vr="UN" vm="1" len="2" name="StudyID"
binary="hidden"></
element>
</data-set>

Lance
http://osirixmac.com

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

I assume this is due to the lack of a Specific Character Set element.
No, by default the value of binary data elements is not written to the XML document. This behaviour can be changed using option --write-binary-data (+Wb).

Anyway, since all standard attributes in your dump have the value representation UN you should probably first solve this problem!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest