Do you use or administer OpenEMR? Take the General Satisfaction Survey to help improve the product

Fhir API 401 unauthorized

Hello!

I am using postman to retrieve patients.
cannot get fhir to work.

I have changed the option in Administration/Globals/Connectors to “Smart on FHIR”
Restarted the web server with xampp.

Posting “localhost/openemr/apis/fhir/auth” and fetch a token.

Using that token for Get-request: “localhost/openemr/apis/fhir/patient”.
I am getting 401 unauthorized.

the URL “localhost/openemr/apis/api/patient” is working just fine.

please help!

Hi lurken Soderberg,

In Administration/Globals/Connectors, you should enable

Enable OpenEMR Standard FHIR REST API for FHIR API to work

Regards,