dicom_pseudonymizer.utils.format_tag

Utility for printing the tags in the original hex format.

This code was taken and adapted from https://github.com/KitwareMedical/dicom-anonymizer

Functions

hex_to_string(x)

Convert a tag number to it’s original hex string.

tag_to_hex_strings(tag)

Convert a tag tuple to a tuple of full hex number strings.