Non-unique UID instance replacement

Hello all,

I am running into an issue where a RT planning system is exporting the
same series instance UID even if the data was modified. I need to
replace the version that is currently in Orthanc. Is the best way to
do this to query Orthanc before sending and delete the pre-existing
instance prior to export?

Alternatively, is there a flag or setting in Orthanc to replace
instances if they exist?

Thanks,

Adit

Hello,

I am running into an issue where a RT planning system is exporting
the
same series instance UID even if the data was modified. I need to
replace the version that is currently in Orthanc. Is the best way to
do this to query Orthanc before sending and delete the pre-existing
instance prior to export?

Yes, I believe so. I attach a log of a session where we can observe
that Orthanc does not overwrite existing data as long as it computes an
identical identifier[1].

The story would be different if the data that was modified which you
mention includes the PatientID tag, the StudyInstanceUID tag or the
SOPInstanceUID tag (or the SeriesInstanceUID, though you mentioned
explicitly that it was identical). In this case the data is duplicated
as you can see later in the attached log.

Alternatively, is there a flag or setting in Orthanc to replace
instances if they exist?

Not that I know of.
This issue[2] is somewhat related.

[1] Orthanc identifiers — Orthanc Book documentation
[2] https://bitbucket.org/sjodogne/orthanc/issues/55

id-reuse.log (2.7 KB)