I have a json file that contains the necessary information for specifying the terminology for the segment editor, similar to this.
To use this file, I see that I can do something like:
terminologyFile = path_to_json_file
tlogic = slicer.modules.terminologies.logic()
terminologyName = tlogic.LoadTerminologyFromFile(terminologyFile)
However, if I have a different json file that contains the terminology specification as well as other additional fields, I cannot use the above method. Has anyone tried to parse and set the terminology correctly in this case?
So far I have tried using
tlogic.DeserializeTerminologyEntry, but I encounter errors in failing to get the terminology category.