thegooglecodearchive / pydicom

Automatically exported from code.google.com/p/pydicom
0 stars 0 forks source link

Dict of Values to PersonName String #156

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add functionality to take a dict of values and create a PersonName String.

Looking at the code for PersonName I see functionality to parse the PN 
(PersonName) String to its component attributes: 
https://code.google.com/p/pydicom/source/browse/source/dicom/valuerep.py#303.

but there code to go in the opposite direction? ie to go from the components 
family_name, given_name, etc. to the PN String.

{'given_name':'first', 'family_name':'last'} --> 'last^first'

Original issue reported on code.google.com by agrothberg on 9 Nov 2014 at 8:55