cobra_db.dataset_mod

Module Contents

Classes

DatasetMod

A functional class to replace the tags with keywords and viceversa in the output

class cobra_db.dataset_mod.DatasetMod[source]

A functional class to replace the tags with keywords and viceversa in the output of pydicom.dataset.Dataset.to_json_dict

static tag_for_keyword_wrapper(keyword: str) str[source]

wrapper to get strings instead of ints

static keyword_for_tag_wrapper(tag: str) str[source]

Ignore translation of Repeating Groups. See https://pydicom.github.io/pydicom/dev/old/working_with_overlays.html

static _replace_dict(d: dict, replace_func: Callable) dict[source]

d: a posibly nested dict where all tag keys are converted into keywords

static tags_to_keywords(d: dict) dict[source]
static keywords_to_tags(d: dict) dict[source]