FHIR Documentation - Patient search - error with model?

30 views
Skip to first unread message

Duncan Pullen

unread,
Jan 12, 2020, 6:42:12 PM1/12/20
to Cerner FHIR Developers
Hi Cerner team,

I think there is an error with the patient model for name:

"name": [
          {
            "id": "CI-4342009-0",
            "use": "official",
            "text": "SMART, NANCY",
            "family": "SMART",
            "given": [
              "NANCY"
            ],
            "period": {
              "start": "2016-06-22T20:43:05.000Z"
            }
          }
        ],

When parsing, I was given an error on family, as it was returning as array. Recommend update to the following:
"name": [ { "id": "CI-4342009-0", "use": "official", "text": "SMART, NANCY", "family": ["SMART"] "given": [ "NANCY" ], "period": { "start": "2016-06-22T20:43:05.000Z" } } ],

Michele Mottini

unread,
Jan 12, 2020, 8:06:43 PM1/12/20
to Cerner FHIR Developers
Which end point are you using? family is an array in DSTU2 but a single value in R4

  - Michele
  CareEvolution Inc

Duncan Pullen

unread,
Jan 13, 2020, 1:31:48 AM1/13/20
to Cerner FHIR Developers
Hi Michele,

I was on DSTU, for which the docs show as a single entry rather than an array.

Ta D

Benjamin Eichhorn (Cerner)

unread,
Jan 13, 2020, 9:02:35 AM1/13/20
to Cerner FHIR Developers
Hi Duncan,

Michele is correct, in DSTU2 the "family" field is an array. Please see https://www.hl7.org/fhir/dstu2/datatypes.html#HumanName. In R4 it is a single value, see https://www.hl7.org/fhir/r4/datatypes.html#HumanName.

I think you may have been looking at our documentation for R4 Patient (https://fhir.cerner.com/millennium/r4/individuals/patient/) rather than DSTU2 Patient (https://fhir.cerner.com/millennium/dstu2/individuals/patient/)

Thanks,
Ben (Cerner)

Duncan Pullen

unread,
Jan 13, 2020, 7:23:00 PM1/13/20
to Cerner FHIR Developers
Indeed, it appears it was user error. Thanks for the quick responses.
Reply all
Reply to author
Forward
0 new messages