Hi,
Just comparing the HL7 spec to the output from Graham Grieve’s reference implementation server this evening.
The JSON spec for HumanName says:
{
“resourceType” : “HumanName”,
// from Element: extension
“use” : “”, // usual | official | temp | nickname | anonymous | old | maiden
“text” : “”, // Text representation of the full name
“family” : “”, // Family name (often called ‘Surname’)
“given” : [""], // Given names (not always ‘first’). Includes middle names
“prefix” : [""], // Parts that come before the name
“suffix” : [""], // Parts that come after the name
“period” : { Period } // Time period when name was/is in use
}
Whereas test output from Graham’s server says:
“name” : [{“use” : “official”,“family” : [“Donald”],“given” : [“Duck”,“D”]}]
In other words family is being returned as an array, whereas it is a string in the documentation.
Any ideas which one is ‘correct’? I’m expecting the spec is correct and the implementation is accidentally returning an array of 1 object…
Best wishes,
Andrew