-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implicit base not picked up in FHIR Reference search #300
Comments
Be sure to uncomment corresponding tests in AbstractSearchReferenceTest
|
Signed-off-by: Albert Wang <xuwang@us.ibm.com>
We hit this again in the Connectathon 25. It'd be nice to nail this one. |
Inferno tests are not returning expected resources: |
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
- Added Integration Test Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
We found the following text from https://www.hl7.org/fhir/search.html#reference
This means that we should try to infer the resource type even in cases where the search parameter refers to multiple different types. Based on this text, it seems that omitting the resource type while searching a reference is really only an error if the target identifier exists in one or more of the target resource types that is being searched. For this issue (#300) lets just focus on adding the implicit types at the fhir-search layer. We'll handle "is there more than one matching resource type with this id" in #1553 |
Implicit base not picked up in FHIR Reference search #300
Implicit base not picked up in fhir-search... When executing the Search -> extractParameterValues with resolve(), the fhir-search module and persistence layer extracts only Patient/.
For example... consider
"code" : "patient"
, the extractParameterValues processes a JSON:and stores the value Patient/1-2-3-4.
The specification says the following are valid search query parameters:
Upon executing the request to
https://<SERVER>:443/<ROOT>/api/v4/MedicationRequest?patient=1-2-3-4
The request should return the resource body, however, we only support the specification #2.
The first behavior must be implemented, and the third behavior must be confirmed.
Note, the request with subject:Patient resource type works:
GET https://:443//api/v4/MedicationRequest?subject:Patient=1-2-3-4
URL: https://hl7.org/fhir/R4/search.html
In some cases, search parameters are defined with an implicitly limited scope. For example, Observation has an element subject, which is a reference to one of a number of types. This has a matching search parameter subject, which refers to any of the possible types. In addition to this, there is another search parameter patient, which also refers to Observation.subject, but is limited to only include references of type Patient. When using the patient search parameter, there is no need to specify ":Patient" as a modifier, or "Patient/" in the search value, as this must always be true.
The text was updated successfully, but these errors were encountered: