# Inconsistencies between CTK and 3D Slicer when dealing with missing Patient information

**URL:** <https://discourse.slicer.org/t/inconsistencies-between-ctk-and-3d-slicer-when-dealing-with-missing-patient-information/31030>\
**Category:** Support\
**Created:** [August 7, 2023, 4:40pm UTC](https://discourse.slicer.org/t/inconsistencies-between-ctk-and-3d-slicer-when-dealing-with-missing-patient-information/31030 "2023-08-07T16:40:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CertisPoette](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/certispoette/32/66462_2.png) [@CertisPoette](https://discourse.slicer.org/u/CertisPoette)\
**Post date:** [August 7, 2023, 4:40pm UTC](https://discourse.slicer.org/t/inconsistencies-between-ctk-and-3d-slicer-when-dealing-with-missing-patient-information/31030/1 "2023-08-07T16:40:10Z")

</div>

Dear All,

In our application, while working on managing missing patient information, we noticed inconsistencies between CTK and 3D Slicer default values.

The default value in 3D slicer will be:  
Patient name : “No name”  
Patient ID : "Patient- + study instance UID

Whereas for CTK :  
Patient name : empty  
Patient ID : study instance UID

The inconsistency is noticeable if you import in the DICOM database dicoms without a patient name and ID. Then if you load a volume, the name and ID in the subject hierachy tree are different from the DICOM database list of imported files.

Would it be possible to homogenize the patient information default values between CTK and 3D Slicer?

My opinion would be to modify the default value in CTK because the missing patient name generates a blank in the DICOM database list of imported files (not obvious for the user).

Best regards,

Christopher

---

<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 7, 2023, 4:45pm UTC](https://discourse.slicer.org/t/inconsistencies-between-ctk-and-3d-slicer-when-dealing-with-missing-patient-information/31030/2 "2023-08-07T16:45:47Z")

</div>

Slicer uses CTK, too. If you want your code to behave the same way as Slicer then you can have a look at Slicer’s source code and do exactly the same.

---

<div class="post-metadata">

**Author:** ![CertisPoette](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/certispoette/32/66462_2.png) [@CertisPoette](https://discourse.slicer.org/u/CertisPoette)\
**Post date:** [August 10, 2023, 2:04pm UTC](https://discourse.slicer.org/t/inconsistencies-between-ctk-and-3d-slicer-when-dealing-with-missing-patient-information/31030/3 "2023-08-10T14:04:40Z")

</div>

Thank you for your reply!

In our application (Certis Solution), we use both CTK and Slicer 3D. Certis Solution already behaves like slicer for default values in case of missing information. The only difference noticeable is while importing files in the DICOM database and it is made through CTK which have different default values as Slicer or Certis Solution.

The difference is noticeable in Slicer and consequently in our application. For example, if you import DICOM with missing patient name/ID, the patient name line will be blank in the DICOM database (see screen shots taken from Slicer-5.2.2). This blank line gives the feeling that the import failed if the user does not pay attention…

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/3/33113c7ae7f5e7cda116c4f0574b985af057a6cf.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/a/4a567bb44b4386a203f4fc04f7a36928b0bf922b.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 12, 2023, 4:57pm UTC](https://discourse.slicer.org/t/inconsistencies-between-ctk-and-3d-slicer-when-dealing-with-missing-patient-information/31030/4 "2023-08-12T16:57:47Z")

</div>

The other application that uses CTK can be updated to not just use the default behavior but use the CTK DICOM classes the same way as Slicer does.
