Menu

#255 gdcmxml and UID

2.9
open
5
2017-07-26
2012-06-29
No

gdcmxml dumps UID such as:

<BulkData UID = "1.2.826.0.1.3680043.2.1143.8780394095929891706880913777806771164" />

I believe the correct output is more like:

<BulkData UUID="24b1de66-c203-01e1-cc4a-67c6697351ff"/>

As per standard PS 3.19-2011, we should have:
...
An identifier of this bulk data reference
formatted as a UUID using the
hexadecimal representation defined in
ITU-T Recommendation X.667,..
...

Eg:
http://www.itu.int/ITU-T/asn1/uuid.html

Discussion

  • Mathieu Malaterre

    Looks like on UNIX you need to call:

    uuid.h:void uuid_unparse(const uuid_t uu, char *out);

    Maybe we need to copy gdcm::UIDGenerator into gdcm::UUIDGenerator and use uuid API

     
  • Mathieu Malaterre

    • labels: Tools (gdcmconv, ...) --> Tools (gdcmconv, ...)
    • Group: 2.3 --> 2.5
     

Log in to post a comment.