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
strformatted 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
alphabeticReturn the first (alphabetic) person name component as a unicode string
componentsReturns up to three decoded person name components as a
tupleofstr.family_nameReturn the first (family name) group of the alphabetic person name representation as a unicode string
given_nameReturn the second (given name) group of the alphabetic person name representation as a unicode string
ideographicReturn the second (ideographic) person name component as a unicode string
middle_nameReturn the third (middle name) group of the alphabetic person name representation as a unicode string
name_prefixReturn the fourth (name prefix) group of the alphabetic person name representation as a unicode string
name_suffixReturn the fifth (name suffix) group of the alphabetic person name representation as a unicode string
phoneticReturn the third (phonetic) person name component as a unicode string
alias of
PersonName