FHIR searching patient by birthdatedate not supported?

This forum is for programmers who have questions about the source code.
Post Reply
bravegag
Posts: 49
Joined: Fri May 24, 2019 3:37 pm

FHIR searching patient by birthdatedate not supported?

Post by bravegag » Fri Jun 07, 2019 2:02 am

Hello,

I find this in the Patient search criteria section of the capability statement:

Code: Select all

{
  "documentation": "The patient's birthdate. This corresponds to patient.Birthdate.",
  "name": "birthdatedate",
  "type": "date"
},
Searching patients by given and family name works:

Code: Select all

https://api.opendental.com/fhir/patient?given=candi&family=copay
However, searching patients with the additional `birthdatedate` criteria doesn't work:

Code: Select all

https://api.opendental.com/fhir/patient?given=candi&family=copay&birthdatedate=1990-03-08
I get the following error:

Code: Select all

{"issue":[{"severity":"error","code":"not-supported","details":{"text":"The parameter 'birthdatedate' is not supported."}}]}
I find the patient search by given and family names only a bit weak, it would be best with the `birthdatedate` on top.

Is this an issue that would be solved by upgrading to 19.x? but 19 is in beta ...

TIA,
Best regards,
Giovanni

bravegag
Posts: 49
Joined: Fri May 24, 2019 3:37 pm

Re: FHIR searching patient by birthdatedate not supported?

Post by bravegag » Fri Jun 07, 2019 2:06 am

Oh never mind, I tested it like this (using parameter name `birthdate` instead of `birthdatedate`) and it works:

Code: Select all

https://api.opendental.com/fhir/patient?given=candi&family=copay&birthdate=1990-03-08
It seems that the capability statement parameter name wasn't correct.

Best!
Giovanni

lukemiletta
Posts: 5
Joined: Wed Jun 20, 2018 7:47 am

Re: FHIR searching patient by birthdatedate not supported?

Post by lukemiletta » Sun Jun 09, 2019 7:39 am

Thanks for letting us know. I will fix the capability statement to reflect the actual parameter.

Post Reply