blairconrad / dicognito

A library and command line tool for anonymizing DICOM files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Same patient names anonymize differently when formatted differently

paulsbduncan opened this issue · comments

I had a study with multiple DICOM files. In some of the files the patient name was like 'LAST^FIRST^MIDDLE' and in others 'LAST^FIRST^MIDDLE^'. These are obviously the same patient name, but because of the trailing '^' dicognito assumed they were different and anonymized them differently.

Thanks for submitting this, @paulsbduncan! What would you expect the output to be,

  • 'ANONLAST^ANONFIRST^ANONMIDDLE' twice, or
  • 'ANONLAST^ANONFIRST^ANONMIDDLE' and 'ANONLAST^ANONFIRST^ANONMIDDLE^'?

Now that I'm thinking about it, we don't pay any attention to the original format anyhow. so I think you're going to get the first one!

Closed in #79. Released as part of 0.10.0.