# Changing names in database

**URL:** <https://discourse.slicer.org/t/changing-names-in-database/13061>\
**Category:** Support\
**Created:** [August 18, 2020, 12:09am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061 "2020-08-18T00:09:43Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 18, 2020, 12:09am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/1 "2020-08-18T00:09:43Z")

</div>

Hi guys,  
In the DICOM db, I get some ??? instead of the patient name. Is there a way to amend this?  
TIA  
Dr. Avri Lev

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 18, 2020, 12:11am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/2 "2020-08-18T00:11:14Z")

</div>

Support for international characters was limited in Slicer-4.10. Slicer-4.11 (Slicer Preview Release) has full unicode support, so special characters should show up correctly.

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 18, 2020, 3:45am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/3 "2020-08-18T03:45:26Z")

</div>

Well, the only issue, that it doesn’t…

 ![Screenshot 2020-08-18 064450.png](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/1/91fa230c62ebb6700d3635a28c76d69c1bd15b9f.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 18, 2020, 4:37am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/4 "2020-08-18T04:37:49Z")

</div>

Could you send the content of “Operating system” line in application log (menu: Help / Report a bug)?

It should be something like this:

```auto
[DEBUG][Qt] 18.08.2020 00:32:49 [] (unknown:0) - Operating system .........: Windows / Personal / (Build 18363, Code Page 65001) - 64-bit

```

How the data set was created?

Can you share a sample data set of a phantom (not a patient), with similar characters in the patient name?

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 18, 2020, 7:49am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/5 "2020-08-18T07:49:15Z")

</div>

I guess this is what you want:

[DEBUG][Qt] 18.08.2020 10:47:37 [] (unknown:0) - Operating system …: Windows / Professional / (Build 19041, Code Page 65001) - 64-bit

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 18, 2020, 1:08pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/6 "2020-08-18T13:08:37Z")

</div>

Thank you, this looks good.

How the data set was created?

Can you share a sample data set of a phantom (not a patient’s), with similar characters in the patient name?

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 19, 2020, 4:41am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/7 "2020-08-19T04:41:39Z")

</div>

Hi, I wouldn’t know how to do what you’ve asked from me…

Sorry.

Best,

Dr. Avri Lev

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 19, 2020, 4:44am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/8 "2020-08-19T04:44:46Z")

</div>

How the data set was created? Acquired on a clinical scanner? Was it anonymized?

Can you acquire a data set of a phantom (e.g., calibration object, but if the scanner can acquire an empty image then that’s fine, too, you don’t need to put anything in the bore), enter patient name that has similar characters that you have problem with displaying, and share that data set, so that we can investigate if the created image is valid and if it is, why Slicer does not display the characters properly?

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 19, 2020, 7:08am UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/9 "2020-08-19T07:08:51Z")

</div>

The data are taken from a CT scan. I have the dicoms in a library on my PC.

Where can I get a phantom data?

Best,

Dr. Avri Lev

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 19, 2020, 12:51pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/10 "2020-08-19T12:51:27Z")

</div>

A “phantom” is just any object that you out into the scanner. Do you still have access to the scanner so that you can acquire image of any object (or just the empty bore) with the same protocol and similar patient names that are used in your existing images? We could use these test images to investigate why some characters in the name do not appear correctly. Normally we could use anonymized patient images for such investigation but anonymization would remove the patient name, so it is not a good solution in this case.

Note that you don’t have to see the patient name if you import them one by one and save as nrrd image with the appropriate name. You can write a script that automates this, if doing manually would be too tedious.

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 22, 2020, 2:02pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/11 "2020-08-22T14:02:04Z")

</div>

Hi Andras Lasso,

I did some digging on the subject.

It seams that the metadata associated with each DICOM file is to blame For the phenomena.

The issue resides in the field “Patient Name” and only there, since this is the field where you put the patient name by the receptionist who’s responsible for checking in the patient. The app cannot read other fonts besides Latin ones, hence it’s not adhering to the UTF-8 protocol.

i.e. the examination date is written in a number format, so Windows can read it and format it accordingly in my language. (see photos attached).

Now, the only thing to do here, is to let us, users, the possibility to be able to edit that field (Patient Name), directly in 3D Slicer, because it is impossible to make these changes for every single DICOM file (hundreds of them…) .

I know that 3D Slicer is open source and I think also that the app can be manipulate through coding - hence developers can change the behavior of the app.

Best,

Dr. Avri Lev

 ![DICOM metadata.png](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/5/25d803119364a1263c1948696002c46568422f66.png)

 ![DB 3D Slicer.png](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/9/59723e81ae832388cb8d59cb91ceeea1dba17772.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 22, 2020, 5:17pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/12 "2020-08-22T17:17:17Z")

</div>

Did you try the dicom patcher module?

[https://slicer.readthedocs.io/en/latest/user\_guide/modules/dicompatcher.html](https://slicer.readthedocs.io/en/latest/user_guide/modules/dicompatcher.html)

Extending it with extra name editing fearures would very feasible, and a good project that any python programmer could take on.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 22, 2020, 6:37pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/13 "2020-08-22T18:37:09Z")

</div>

Slicer can read patient name with various encodings:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/e/3e81372640b3b8ebdf77f7cc18e8683ecf44bbb8.png)

There is a good chance that there is something wrong with the DICOM file encoding, but of course it is possible that the DICOM file is valid and DCMTK toolkit does not interpret it correctly. We need an example file to verify. You can create an example data set by creating a patient in the dental imaging software (with non-Latin characters in the patient name) and acquire an image of anything.

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 22, 2020, 7:23pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/14 "2020-08-22T19:23:49Z")

</div>

I can’t find that module on 3d slicer…

Can you guide me through, please?

Avri

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 22, 2020, 7:30pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/15 "2020-08-22T19:30:03Z")

</div>

I really don’t understand what you guys referring to by “. We need an example file to verify. You can create an example data set by creating a patient in the dental imaging software (with non-Latin characters in the patient name) and acquire an image of anything.”

What kind of file? I’m really confused now.

Also I cannot fine the DICOM Patcher module within 3D Slicer ( in the Slicer extension section)…

Thanks,

Dr. Avri Lev

---

<div class="post-metadata">

**Author:** ![avrilev](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@avrilev](https://discourse.slicer.org/u/avrilev)\
**Post date:** [August 22, 2020, 7:53pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/16 "2020-08-22T19:53:01Z")

</div>

I found the module. Thank you guys, everything back to normal. 😊

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 22, 2020, 7:53pm UTC](https://discourse.slicer.org/t/changing-names-in-database/13061/17 "2020-08-22T19:53:24Z")

</div>

We can only fix those problems that we can reproduce on our own computers. With DICOM images that we have, we don’t have any patient name encoding issues. Therefore, if you want us to investigate this issue then you need to send us a DICOM image file that you have problem with. We don’t want to handle files that have patient health information in it, so send us a DICOM image file that does not belong to a real patient (but it contains a fake patient name with non-latin characters in it).
