Adding FHIR module into OpenMRS

Module: FHIR

Module Version: (0.9)

System Version: OpenMRS standalone 2.3.1

Issue or Question:


I’m a newbie trying to get FHIR interface on top of OpenMRS to work with our client Application. I loaded the FHIR module 0.9 into my local server based on OpenMRS standalone 2.3.1 using “Administration” Web interface of the server. I’m unable to get the FHIR REST API to work.

For example I try this command $curl -u admin:Admin123 -i ‘http://localhost:8081/openmrs-standalone/ws/rest/fhir/Patient?name=Am

I get below response: {“error”:{“message”:“Resource does not exist. Please check documentation for implemented resources and their paths”,“code”:"

Note that I’m able to access REST API for openMRS native resources through path /ws/rest/v1/ Any help is appreciated. I notice the latest version of FHIR module is 1.2 from the github page but I’m not sure how to import that into my openMRS server.

Did you succeed testing out this server?

I tried with this server. But I get same result. With this server also I can access openMRS native resources but not through FHIR API

For ex: This command works: I get the Patient result $curl -u admin:Admin123 -i ‘

Below command gives the error: $curl -u admin:Admin123 -i ‘

HTTP/1.1 404 Not Found Via: 1.1 (McAfee Web Gateway Date: Mon, 11 Jul 2016 11:50:26 GMT Server: Apache-Coyote/1.1 X-Cache: MISS from Set-Cookie: JSESSIONID=AC7A8C8EAC0CD823C23628574421A11E; Path=/openmrs/ Content-Type: application/json;charset=UTF-8 Content-Length: 6652 Proxy-Connection: Keep-Alive

{“error”:{“message”:“Resource does not exist. Please check documentation for implemented resources and their paths [null]”, “code”:“”,“detail”:"

In your url, remove “rest”. In other words, use something like:

Thanks a lot. It works now with the test server. But I still get error with my local server. Can you point me what versions I need to use to replicate this on my local server. Any documentation links on how to do this will be helpful.

Try using the 2.0.0-beta platform together with the snapshot version of the module.