# Report a bug in function " DICOMUtils.loadPatientByPatientID(patientID); "

**URL:** <https://discourse.slicer.org/t/report-a-bug-in-function-dicomutils-loadpatientbypatientid-patientid/24074>\
**Category:** Development\
**Tags:** bug\
**Created:** [June 28, 2022, 7:55am UTC](https://discourse.slicer.org/t/report-a-bug-in-function-dicomutils-loadpatientbypatientid-patientid/24074 "2022-06-28T07:55:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhang\_ming](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/zhang_ming/32/15790_2.png) [@zhang\_ming](https://discourse.slicer.org/u/zhang_ming)\
**Post date:** [June 28, 2022, 7:55am UTC](https://discourse.slicer.org/t/report-a-bug-in-function-dicomutils-loadpatientbypatientid-patientid/24074/1 "2022-06-28T07:55:56Z")

</div>

DICOMUtils.loadPatientByPatientID(patientID); If the patientID use long string like : 2b89691a0744504491ef91d711d94918, it will failed. because I found the entry in sql database. but the 3d slicer python terminal report error : Patient not found by PatientID 2b89691a0744504491ef91d711d94918

---

<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:** [June 28, 2022, 12:29pm UTC](https://discourse.slicer.org/t/report-a-bug-in-function-dicomutils-loadpatientbypatientid-patientid/24074/2 "2022-06-28T12:29:04Z")

</div>

PatientID is not unique in dicom, so slicer assigns an arbitrary one.
