FHIR Chat · Handling multiples of same general search parameter · implementers

Stream: implementers

Topic: Handling multiples of same general search parameter


view this post on Zulip Troy Biesterfeld (Feb 14 2022 at 16:47):

Is there an expected behavior when general parameters that seem to be intended to be specified once on a search are specified multiple times?

For example:
GET [base]/Measure?_sort=_lastUpdated&_sort=status
GET [base]/Measure?_count=1&_count=1000
GET [base]/Measure?_summary=text&_summary=count
GET [base]/Measure?_elements=status&_elements=name
GET [base]/Measure?_total=none&_total=accurate

Options:
1) Return error as invalid search
2) Use the value of the first occurrence of the parameter
3) Do a union of the parameter values (which in cases doesn't make sense)

I haven't found any search examples that specify these parameters multiple times, so am curious what the expected behavior should be if it does happen.

view this post on Zulip Lloyd McKenzie (Feb 14 2022 at 18:07):

@Troy Biesterfeld Agree this is underspecified. Can you submit a change request so we can talk about and update the spec to reflect an answer?

view this post on Zulip Troy Biesterfeld (Feb 14 2022 at 19:23):

Change request opened: https://jira.hl7.org/browse/FHIR-36030


Last updated: Apr 12 2022 at 19:14 UTC