kamalasv / orthanc

Automatically exported from code.google.com/p/orthanc
GNU General Public License v3.0
0 stars 0 forks source link

Anonymization doesn't regenerate SOPInstanceUIDs #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi -

I just pushed a study from Osirix to an Orthnac server, anonymized it, then did 
a query/retrieve to get it back. I then exported the dicom headers from the 
first image in the original and anonymized studies and did a diff. The results 
are almost exactly what I wanted with one exception - the SOPInstanceUIDs are 
identical in both studies.  The Study and Series instance UIDs are different.

This seems to me to be a bug. I can see why this might be a reasonable thing to 
do if you're worried about (say) reformatted images that have a reference to 
the original SOPInstanceUID and you don't want to break the relationship. But 
wouldn't you want to remap the SOPInstanceUIDs in the general case because 
these might be used as primary keys in a PACS database? 

I haven't looked at the code yet - I'll do that this weekend unless someone can 
clarify the issues for me. Thanks.

Sean

Original issue reported on code.google.com by sdo...@gmail.com on 19 Jun 2015 at 12:37

GoogleCodeExporter commented 9 years ago
Dear Sean,

I have tried and reproduced your issue, without success.

Whenever I anonymize a study, all the SOPInstanceUIDs are regenerated and are 
different from that of the original study, as you expect.

Would it be possible for you to give the precise steps that are needed to 
reproduce the problem? The ideal would be an integration test that could be 
added to the following repository:
https://bitbucket.org/sjodogne/orthanc-tests/src/30ecc857fa076d8c815c4f36f529c7b
c9937a89e/Tests/Tests.py?at=default

Thanks,
Sébastien-

Original comment by s.jodo...@gmail.com on 23 Jun 2015 at 12:22