FHIR Chat · Chained parameters with multiple reference types? · implementers

Stream: implementers

Topic: Chained parameters with multiple reference types?


view this post on Zulip Ray Cai (Jan 04 2019 at 16:52):

Hi all,

In the FHIR spec(https://www.hl7.org/fhir/search.html#chaining), there is an example for chained parameters search:

GET [base]/DiagnosticReport?subject.name=peter
is a request to return all the lab reports that have a subject whose name includes "peter". Because the Diagnostic Report subject can be one of a set of different resources, it's necessary to limit the search to a particular type:
GET [base]/DiagnosticReport?subject:Patient.name=peter
This request returns all the lab reports that have a subject which is a patient, whose name includes "peter"

Does this mean that for GET [base]/DiagnosticReport?subject.name=peter
1. the server should fail the search since it does not limit the search to a particular reference type.
or
2. the server should process the search: there are four valid reference types for DiagnosticReport.subject - Patient, Group, Device or Location, only Patient and Location have "name" as a valid search parameter, so the server returns all reports that have a subject which is a patient or location, whose name includes "peter".

Thanks!

view this post on Zulip Lloyd McKenzie (Jan 05 2019 at 23:55):

#2 is what would be expected


Last updated: Apr 12 2022 at 19:14 UTC