iHub-PTI / ihub-core

GNU Affero General Public License v3.0
1 stars 0 forks source link

Improve GET /doctors search. #22

Open rubenlop88 opened 4 years ago

rubenlop88 commented 4 years ago

According to the standard a FHIR implementation can implement "full-text" search using the _conent query param. Hapi FHIR doesn't work as expected. We should study the standard and Hapi FHIR more to provide the best solution we can.

rubenlop88 commented 3 years ago

It turns out, HAPI FHIR does support "full-text" search using the _content query param. The problem was that index files where not being persisted after a redeployment of the server. We could use a Docker volume or an Elasticsearch server to fix this.

rubenlop88 commented 3 years ago

The current _content query param still doesn't work as expected. It only matches full words, not partial ones. For example, it matches "Lopez" but not "Lop" or "Lo". Also, if the value of _content is "Lopez" it wont match resources that contain "López" with an accent.

I think those features can be configured in the FHIR server, or in an Elasticsearch used by the FHIR server.