Hello, I am currently wondering if there could be a GET/patients endpoint that uses FN and LN? This is currently the only option and it would be useful to have a search by FN and LN without requiring the DOB.
GET /patients?LName=smi
Patient search improvement
Re: Patient search improvement
Hello aearl23,
Both Patients GET (multiple) and Patients GET Simple allow you to request patients by FName and LName. All parameters are optional for both endpoints, so Birthdate is not required - although it is recommended to ensure uniqueness when looking for a specific patient by name.
Thanks!
Re: Patient search improvement
What is the required syntax for such ra equest?
I am trying a request formatted as : curl -i https://api.opendental.com/api/v1/patie ... FName={PHI} -H "Authorization: {key}/{key}"
and get this message : "You are missing an Authorization header."'FName' is not recognized as an internal or external command,
operable program or batch file.
I am trying a request formatted as : curl -i https://api.opendental.com/api/v1/patie ... FName={PHI} -H "Authorization: {key}/{key}"
and get this message : "You are missing an Authorization header."'FName' is not recognized as an internal or external command,
operable program or batch file.
Re: Patient search improvement
Hello aearl23,aearl23 wrote: ↑Wed Feb 12, 2025 4:01 pmWhat is the required syntax for such ra equest?
I am trying a request formatted as : curl -i https://api.opendental.com/api/v1/patie ... FName={PHI} -H "Authorization: {key}/{key}"
and get this message : "You are missing an Authorization header."'FName' is not recognized as an internal or external command,
operable program or batch file.
For syntax questions, I suggest reading curl documentation.
The error message "You are missing an Authorization header" suggests that your request is not properly including the required authentication.
The 'FName' is not recognized message suggests an issue with how the request is being formatted or executed in your command line environment. This is not related to the API itself but rather to how your request is being constructed or processed by your system. If I had to guess, your enviornment may require you to escape special characters or doesn't interperet {PHI} correctly.
Here's an example that worked fine in my environment:
Code: Select all
curl https://api.opendental.com/api/v1/patients?LName=Smith -H Authorization:"ODFHIR NFF6i0KrXrxDkZHt/VzkmZEaUWOjnQX2z" -H content-type:application/json
Re: Patient search improvement
I am trying to do a request such as: curl https://api.opendental.com/api/v1/patie ... Nname=John where the last name and first name are used together. Is this possible?
Re: Patient search improvement
Hello aearl23,aearl23 wrote: ↑Wed Feb 19, 2025 5:27 pmI am trying to do a request such as: curl https://api.opendental.com/api/v1/patie ... Nname=John where the last name and first name are used together. Is this possible?
Your request example uses the param 'FNname' and should use 'FName'. The following example worked for me:
Code: Select all
curl "https://api.opendental.com/api/v1/patients?LName=Smith&FName=John" -H "Authorization: ODFHIR NFF6i0KrXrxDkZHt/VzkmZEaUWOjnQX2z" -H "Content-Type: application/json"