Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Not able to search resource identifier exactly. #301

Closed
rhinozD opened this issue Apr 27, 2021 · 2 comments · Fixed by awslabs/fhir-works-on-aws-search-es#65
Closed

Not able to search resource identifier exactly. #301

rhinozD opened this issue Apr 27, 2021 · 2 comments · Fixed by awslabs/fhir-works-on-aws-search-es#65
Labels
bug Something isn't working

Comments

@rhinozD
Copy link

rhinozD commented Apr 27, 2021

Hi FHIR Works Team,
I tried to:
GET /Patient?identifier=testuser01@gmail.com
and there is only one patient with identifier = testuser01@gmail.com.
I expect it to return one result, but it returns many more.

Is this a bug?
Deployed fhir-works-on-aws-deployment version: v2.6.0

@carvantes carvantes added the bug Something isn't working label Apr 28, 2021
@carvantes
Copy link
Contributor

Hi,

Thanks for the detailed report. We have identified the issue and are working on fixing it.

Turns out that the identifier param was resulting in text search queries instead of exact text matching.
e.g. testuser01@gmail.com was analyzed into words before searching: testuser0,gmail.com. This ended up matching unwanted records with a gmail.com address

@carvantes
Copy link
Contributor

We just released fhir-works-on-aws-search-es@2.5.1 that includes the above fix.

We'll be updating the deployment package later this week as well, but you can upgrade to the latest fhir-works-on-aws-search-es if you need the fix asap.

@rhinozD rhinozD closed this as completed Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants