pydicom.valuerep.PersonNameUnicode

pydicom.valuerep.PersonNameUnicode[source]

Methods

__init__(val[, encodings, original_string, ...])

Create a new PersonName.

decode([encodings])

Return the patient name decoded by the given encodings.

encode([encodings])

Return the patient name decoded by the given encodings.

family_comma_given()

Return the name as "Family, Given".

formatted(format_str)

Return the name as a str formatted using format_str.

from_named_components([family_name, ...])

Construct a PersonName from explicit named components.

from_named_components_veterinary([...])

Construct a PersonName from explicit named components following the veterinary usage convention.

Attributes

alphabetic

Return the first (alphabetic) person name component as a unicode string

components

Returns up to three decoded person name components as a tuple of str.

family_name

Return the first (family name) group of the alphabetic person name representation as a unicode string

given_name

Return the second (given name) group of the alphabetic person name representation as a unicode string

ideographic

Return the second (ideographic) person name component as a unicode string

middle_name

Return the third (middle name) group of the alphabetic person name representation as a unicode string

name_prefix

Return the fourth (name prefix) group of the alphabetic person name representation as a unicode string

name_suffix

Return the fifth (name suffix) group of the alphabetic person name representation as a unicode string

phonetic

Return the third (phonetic) person name component as a unicode string

alias of PersonName