is there a reason why dsr2xml discards the fractions of a second from content items of value type DATETIME and TIME? From my understanding, xs:time definitely allows fractions of a second.
When dumping the same DICOM SR instance with dcm2xml it keeps the milliseconds for these content items.
dsr2xml:
Code: Select all
...
<time>
<relationship>HAS ACQ CONTEXT</relationship>
<concept>
<value>Time</value>
<scheme>
<designator>99PNA</designator>
</scheme>
<meaning>Time sample</meaning>
</concept>
<value>09:47:29</value>
</time>
<datetime>
<relationship>HAS ACQ CONTEXT</relationship>
<concept>
<value>DateTime</value>
<scheme>
<designator>99PNA</designator>
</scheme>
<meaning>DateTime sample</meaning>
</concept>
<value>1971-01-16T09:47:29</value>
</datetime>
...
Code: Select all
...
<item card="4">
<element tag="0040,a010" vr="CS" vm="1" len="16" name="RelationshipType">HAS ACQ CONTEXT</element>
<element tag="0040,a040" vr="CS" vm="1" len="4" name="ValueType">TIME</element>
<sequence tag="0040,a043" vr="SQ" card="1" name="ConceptNameCodeSequence">
<item card="3">
<element tag="0008,0100" vr="SH" vm="1" len="4" name="CodeValue">Time</element>
<element tag="0008,0102" vr="SH" vm="1" len="6" name="CodingSchemeDesignator">99PNA</element>
<element tag="0008,0104" vr="LO" vm="1" len="12" name="CodeMeaning">Time sample</element>
</item>
</sequence>
<element tag="0040,a122" vr="TM" vm="1" len="10" name="Time">094729.333</element>
</item>
<item card="4">
<element tag="0040,a010" vr="CS" vm="1" len="16" name="RelationshipType">HAS ACQ CONTEXT</element>
<element tag="0040,a040" vr="CS" vm="1" len="8" name="ValueType">DATETIME</element>
<sequence tag="0040,a043" vr="SQ" card="1" name="ConceptNameCodeSequence">
<item card="3">
<element tag="0008,0100" vr="SH" vm="1" len="8" name="CodeValue">DateTime</element>
<element tag="0008,0102" vr="SH" vm="1" len="6" name="CodingSchemeDesignator">99PNA</element>
<element tag="0008,0104" vr="LO" vm="1" len="16" name="CodeMeaning">DateTime sample</element>
</item>
</sequence>
<element tag="0040,a120" vr="DT" vm="1" len="18" name="DateTime">19710116094729.333</element>
</item>
...
Patrick A. Nast