Skip to content
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

AND does not work #25

Open
der-brecher opened this issue Jan 4, 2024 · 1 comment
Open

AND does not work #25

der-brecher opened this issue Jan 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@der-brecher
Copy link

Description du problème

According to FHIR documentation a conjunction of values on a certain field can be expressed as /=&=. But Annuaire Santé seems to translates it into an OR.

Fichier•s concerné•s

I noticed the issue on PractitionerRole::name - I did not check other fields.

Sample:
GET https://gateway.api.esante.gouv.fr/fhir/PractitionerRole?name%3Aexact=Am%C3%A9lie&name%3Aexact=AGIER&_include=PractitionerRole%3Apractitioner
This requests tries to implement a fuzzy search on the whole name by requesting the PractitionerRoles with matching names containing the exact words "Amélie" and "Agier".

The results are:

  • Amélie GIANNOTTA-MAGNIER
  • Amélie ALBRECHT
  • Amélie BASEYA
  • Amélie BASEYA
  • Amélie POURCHET
  • Amélie DEMONT
  • ...

Placing the query as an explicit OR gives the very same results:
GET https://gateway.api.esante.gouv.fr/fhir/PractitionerRole?name%3Aexact=Am%C3%A9lie%2CAGIER&_include=PractitionerRole%3Apractitioner

Solution proposée

Please fix.

@der-brecher der-brecher added the documentation Improvements or additions to documentation label Jan 4, 2024
@mchaabaoui
Copy link
Collaborator

Thank you for reporting this.
I've confirmed this is a bug in our API and have created a task in the project task tracker for fixing it.
In the meantime, you may be able to work around this bug with a search that includes a family name and a given name, for example :

GET [base]//fhir/v1/PractitionerRole?name:exact=Am%C3%A9lie&family:exact=AGIE

@mchaabaoui mchaabaoui added bug Something isn't working and removed documentation Improvements or additions to documentation labels Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants