Stream: implementers
Topic: HumanName.given and .family optional
Olivia Bellamou-Huet (Jul 14 2021 at 14:59):
What was the rationale for having the fields .given and .family of HumanName optional? We encountered some Patient resources only having the .text field filled. Is there a reason why a name would neither have given nor family?
Cooper Thompson (Jul 14 2021 at 15:38):
Some patients only have single names, like Pele, Madonna, Prince, Bjork, etc.
Cooper Thompson (Jul 14 2021 at 15:39):
Also, see #5 and #20 on https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
Lloyd McKenzie (Jul 14 2021 at 15:46):
Simple answer - some systems only store name as a single string, most typically when dealing with provider names.
Olivia Bellamou-Huet (Jul 15 2021 at 13:05):
Then why did we need HumanName.given and .family if we could simply use .text for all kinds of names?
Mareike Przysucha (Jul 15 2021 at 13:09):
Because some systems distinguish between given and family, in order to address the person correctly. E.g. there is a German tennis player called Tatjana Maria. Tatjana is the given, Maria the family name. If you don't know that, you could ask for the family name. If you know it, you know that you should address her as Mrs Maria.
Lloyd McKenzie (Jul 15 2021 at 14:12):
Lots of systems rely on separation of given and family for sorting and matching purposes. As well, the order in which the order of given vs. family can vary. So ideally you'll have both - the discrete values for matching and sorting and the combined string for display.
Cooper Thompson (Jul 15 2021 at 14:24):
Also, may jurisdictions use extensions to add locale-specific name properties. So family/given is just the "80%" starter set of discrete name properties. There are so many other name properties that vary by realm that they mostly land in extension space.
Last updated: Apr 12 2022 at 19:14 UTC