-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added PersonName support to Value #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @jmlaka! Thank you for sending another contribution in.
A person name module can indeed be helpful for systems working such names semantically. More than once have I received cases in which the system didn't bother encoding each component properly.
However, it is important for the baseline implementation to be more flexible so as to avoid issues caused by less ordinary names that could hinder the process for bystanders. I wouldn't require ideographic/phonetic character groups to be supported in an initial phase, but I would not want the given and family names to be mandatory, especially when the standard imposes that any of them can be an empty string.
I invite you to continue working on this module so that it accepts person names in which any of the components may be empty. It might also be more usable to employ the builder pattern to construct a person name from scratch. Feel free to follow up if you have any questions or could use some guidance.
Other minor concerns inline with the code.
Please see |
- enables the `builder.into()` pattern
- include doctests for the most important functions
More idiomatic and clearer for the given context.
For consistency with the other methods
I took the liberty of doing some final touches on this pull request. A summary:
In any case, the module seems robust and well constructed. @jmlaka I am likely to merge this soon, but feel free to look over the extra commits in case you have any concerns or questions. |
Thanks for your insights @Enet4 ! Everything is fine with me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Hello Eduardo,
I don't know if this would be useful but I needed to handle Dicom PN.
It only uses borrowed values and family, given names are not optional but mandatory.
Removed one typo from a previous Doc test