# How can one check if Slicer's DICOM database already exists?

**URL:** <https://discourse.slicer.org/t/how-can-one-check-if-slicers-dicom-database-already-exists/30159>\
**Category:** Development\
**Created:** [June 20, 2023, 4:53pm UTC](https://discourse.slicer.org/t/how-can-one-check-if-slicers-dicom-database-already-exists/30159 "2023-06-20T16:53:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [June 21, 2023, 12:21am UTC](https://discourse.slicer.org/t/how-can-one-check-if-slicers-dicom-database-already-exists/30159/4 "2023-06-21T00:21:08Z")

</div>

I’m not sure where you are calling this code in TCIABrowser. If it is part of setup you will want to define the DICOM module as a dependency for TCIABrowser if it is becoming a new dependency. That will make sure it loads first and then your module.

The DICOM module may also do additional setup after the startupCompleted signal so you may have to delay your usage of it as well as part of code executed after the startupCompleted signal. See the following thread below:

> [@Module executable file](https://discourse.slicer.org/t/module-executable-file/17128/9):
>
> It is possible you are trying to access it too early. Maybe do some of the setup in the module widget’s setup function. Or connect a slot to the startupCompleted signal and do it there. To connect: slicer.app.connect("startupCompleted()", self.onStartupCompleted)

---

_[View the full topic](https://discourse.slicer.org/t/how-can-one-check-if-slicers-dicom-database-already-exists/30159)._
