# Changing terminology files at runtime

**URL:** https://discourse.slicer.org/t/changing-terminology-files-at-runtime/22405
**Category:** Support
**Tags:** dicom, python, module
**Created:** [March 9, 2022, 1:30pm UTC](https://discourse.slicer.org/t/changing-terminology-files-at-runtime/22405 "2022-03-09T13:30:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![marcosrdac](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/marcosrdac/32/14611_2.png) [@marcosrdac](https://discourse.slicer.org/u/marcosrdac)
#### Post date: [March 9, 2022, 1:30pm UTC](https://discourse.slicer.org/t/changing-terminology-files-at-runtime/22405/1 "2022-03-09T13:30:17Z")

</div>

Hello everyone.

I need to change the set of segmentation terminology entries I am able to select in the segment editor (when I double click the color of a segment in the segments table) depending on the context I am working on.

For example, I want to have a method that only allows bone categories to appear when I am changing my segment color, but then I want to run segmentation of different tissues at another scale in other context, then I would change the categories appearing to another set, by running a different method (hopefully in Python).

I tried creating different `*.term.json` files and put them in `share/$SLICER_APP/qt-loadable-modules/Terminologies` but I have no clue how to change between them when using Slicer. I read the documentation on the Terminologies module and also tried understanding the code, but still I was not able to do so.

Do you have any tips on how to do that?

Also, does Slicer read every terminology file in that `Terminologies` folder, or only a specific filename?

Thank you beforehand for your attention.

---

<div class="post-metadata">

### Author: ![marcosrdac](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/marcosrdac/32/14611_2.png) [@marcosrdac](https://discourse.slicer.org/u/marcosrdac)
#### Post date: [March 11, 2022, 11:55am UTC](https://discourse.slicer.org/t/changing-terminology-files-at-runtime/22405/2 "2022-03-11T11:55:15Z")

</div>

I ended up discovering how to use terminology categories and storing every entry in the same JSON file. I did not see the left arrow to open the category filter there before I made this post.
