Stream: hapi
Topic: FHIR Restful server in Spring boot
Subramanya Kudithipudi (Oct 10 2019 at 12:35):
Hi,
I'm trying to implement FHIR Restful server in my existing sample Spring boot application.
I have used example from https://github.com/FirelyTeam/fhirstarters/tree/master/java/hapi-fhirstarters-simple-server.
-
Created @WebServlet(urlPatterns= {"/fhir/*"}, displayName="FHIR Server")
public class ExampleFhirServlet extends RestfulServer -
Created patient provider resource class as mentioned in the example.
When I try http://localhost:8080/fhir/Patient/1 in the browser this is downloading the file instead of rendering in the browser. Also the result is in XML how do I change it to JSON format.
I tried with example project and that works fine.
How do I get this fixed in the spring boot application? Any help would be appreciated.
Thanks
Last updated: Apr 12 2022 at 19:14 UTC