4 ms·
For those who need a flexible data model for representing human names the HL7 V3 RIM works pretty well and allows for handling the vast majority of cases covere
by nradov 11y ago
For those who need a flexible data model for representing human names the HL7 V3 RIM works pretty well and allows for handling the vast majority of cases covered in this blog post.
http://www.hl7.org/implement/standards/product_brief.cfm?product_id=186 http://www.hl7.org/implement/standards/product_brief.cfm?pro...
Basically every person can have zero or more names, each of which is tagged with zero or more types indicating its purpose. Each name can contain zero or more parts (prefix, suffix, family, given) in any order. And any name or name part can also be NULL (distinct from blank) with a specific qualifier to indicate why it is NULL.
- mdaniel 11y agoThat sounds like an infinite amount of fun to try and format for output :-)
- nradov 11y agoThe data model doesn't dictate output format, that's up to the application presentation layer. For internationalized applications the output format will likely be different for every locale.
- Scarblac 11y agoThat sound like it's so flexible that the moment you want to actually use it for anything (like show a list of people to someone), you still have to make assumptions (like "everybody has a name") again. It just delays the assuming.
- nradov 11y agoYou're going to have at least some non-NULL attributes for every person even if you don't have a name. It would be foolish to design an application that shows a list of people just by name; you need to include some other attributes as well.