Adding FHIR module into OpenMRS

Module: FHIR

Module Version: (0.9)

System Version: OpenMRS standalone 2.3.1

Issue or Question:

Hi,

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”:"org.openmrs.module.webservices.rest.web.v1_0.controller.UnknownResourceControl

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? http://uat01.openmrs.org:8080/openmrs/module/fhir/client.form

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 ‘http://uat01.openmrs.org:8080/openmrs/ws/rest/v1/patient?q=John

Below command gives the error: $curl -u admin:Admin123 -i ‘http://uat01.openmrs.org:8080/openmrs/ws/rest/fhir/Patient?name=John

HTTP/1.1 404 Not Found Via: 1.1 192.91.66.131 (McAfee Web Gateway 7.4.2.9.0.19261) Date: Mon, 11 Jul 2016 11:50:26 GMT Server: Apache-Coyote/1.1 X-Cache: MISS from 192.91.66.131 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”:“org.openmrs.module.webservices.rest.web.v1_0.controller.UnknownResourceController:39”,“detail”:"org.openmrs.module.webservices.rest.web.response.UnknownResourceE

In your url, remove “rest”. In other words, use something like: http://uat01.openmrs.org:8080/openmrs/ws/fhir/Patient?name=John

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.