Possible bug when changing casings in PatientID using Explorer2

When using the Orthanc Explorer dialog to change the PatientID, I get an error when I only try to change the casing of some character of the Patient ID:

Error while modifying study tags: another patient with the same PatientID already exists. You should use the Change patient function instead.

More severe: If you follow this advice and use “Change patient” instead, it seems to allow this procedure, but the data seems to be deleted in the end. It allows this despite the fact that there is no other Patient with this ID (but this patient - if you ignore casing)

I have Orthanc version 1.12.6, Orthanc Explorer2 version 1.7.1

Hi,

Please provide a step by step procedure to reproduce this issue.

Thx,

Alain

  • Modify Patient/Study Tags
  • Change e.g. Phantom to PHANTOM
  • error stating patient already exists
  • try Change Patient instead (tested with 'keeping original UIDs)
    -finishes without error; search for PatientID (or date, anything..), no results, data is gone

Hi @dominik

Thanks for the details.

I have finally fixed this issue in this commit.

This will be available in the next OE2 release.

Alain