FHIR Chat · Search by phone number · implementers

Stream: implementers

Topic: Search by phone number


view this post on Zulip Thomas (Sep 06 2019 at 09:00):

Hi everybody,

I'm new with FHIR R4 API and I need some help to search patients related to phone number.
Currently, I store phone numbers with national indicators (example : +41612345678)

When I request for patients with a simple number (without national indicator)", everything is fine :
Example :
- base/fhir/Patient?phone=0612345678

But when I use the same search with this indicator, I've fetch no results :
- base/fhir/Patient?phone=+41612345678

Any ideas ?

Thanks :+1:

view this post on Zulip Jose Costa Teixeira (Sep 06 2019 at 09:28):

not sure how that plus sign is going to be interpreted. did you try without it, or escaping it to %2B?

view this post on Zulip Jose Costa Teixeira (Sep 06 2019 at 09:30):

not sure how this is encoded in a GET but it may be that the + is being converted into a space which could explain this issue

view this post on Zulip Jose Costa Teixeira (Sep 06 2019 at 09:30):

@Thomas

view this post on Zulip Thomas (Sep 06 2019 at 12:03):

Hi @Jose Costa Teixeira ,

Thanks for your reply. I've fixed it by replacing it with a %2B

Example :
- base/fhir/Patient?phone=%2B41612345678

Thanks again :+1:


Last updated: Apr 12 2022 at 19:14 UTC