pydicom.valuerep.MultiString(val: str, valtype: Callable[[str], _T] | None = None, validation_mode: int | None = None) _T | MutableSequence[_T][source]

Split a string by delimiters if there are any

  • val (str) – The string to split up.

  • valtype (type or callable, optional) – Default str, but can be e.g. UID to overwrite to a specific type.

  • validation_mode (int) – Defines if values are validated and how validation errors are handled.


The split value as valtype or a list of valtype.

Return type:

valtype or MultiValue of valtype