pydicom.datadict.add_private_dict_entries

pydicom.datadict.add_private_dict_entries(private_creator: str, new_entries_dict: Dict[int, Tuple[str, str, str, str]]) None[source]

Update pydicom’s private DICOM tag dictionary with new entries.

New in version 1.3.

Parameters
  • private_creator (str) – The private creator for all entries in new_entries_dict.

  • new_entries_dict (dict) – dict of form {tag: (VR, VM, description, is_retired), ...} where parameters are as described in add_private_dict_entry().

Raises

ValueError – If one of the entries is a non-private tag.

See also

add_private_dict_entry

Function to add a single entry to the private tag dictionary.

Examples

>>> new_dict_items = {
...        0x00410001: ('UL', '1', "Test One"),
...        0x00410002: ('DS', '3', "Test Two", '3'),
... }
>>> add_private_dict_entries("ACME LTD 1.2", new_dict_items)
>>> add_private_dict_entry("ACME LTD 1.3", 0x00410001, "US", "Test Three")