FHIR Chat · Using _summary and _elements together · implementers

Stream: implementers

Topic: Using _summary and _elements together


view this post on Zulip Michael Calderero (Apr 03 2020 at 12:39):

Hi All,

Can we use _summary and _elements together e.g. [baseurl]/Patient?_summary=true&_elements=identifier?

I tried this with various public FHIR servers and got the following results:

  1. HAPI FHIR - complains that these can't be used together
  2. Vonk - works and shows only id, meta and identifier
  3. test.fhir.org - works and shows only id and identifier
  4. Aegis WildFHIR - doesn't give an error but seems to return everything about the resource

Is this supposed to work? If yes then which one is honored, _summary or _elements?

view this post on Zulip John Moehrke (Apr 03 2020 at 12:45):

_elements will override _summary -- thus you will only get the elements you ask for (Or that is what I think would happen)

view this post on Zulip Lloyd McKenzie (Apr 03 2020 at 16:51):

@John Moehrke 's explanation is what would be reasonable to happen, but I don't believe this is explicitly declared anywhere - so it's possible some servers may behave differently.

view this post on Zulip Michele Mottini (Apr 03 2020 at 17:48):

Our server returns an error


Last updated: Apr 12 2022 at 19:14 UTC