HAPI-FHIR Simple Server with Spring Boot

2,597 views
Skip to first unread message

rbh

unread,
Apr 21, 2020, 2:24:32 PM4/21/20
to HAPI FHIR

Does there exist a barebones FHIRStarter project that is combination of a HAPI Simple Server and Spring Boot? 

I've tried starting from: https://github.com/jamesagnew/hapi-fhir/tree/master/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples, which includes a JPA/Spring Boot and a Jersey(JAX-RS)/Spring Boot server.  

My desire is to create a simple server that fronts a proprietary Oracle database and serves up the data as FHIR JSON on the fly. I'm not planning to persist the data (so I don't need a HAPI JPAServer) and when I try to use the Jersey server as a starting point, I run into trouble creating multiple searches in the provider (see e.g. https://groups.google.com/d/msg/hapi-fhir/gCNeR13JvTg/9QO1_XPCBgAJ)

I would like to use various Spring Boot features, such as the DataSources and run-time profiles. I like the way Spring is auto-configured and modularized in the FHIRStarter projects above, but have been unsuccessful in wrangling the POMs etc to become Spring Boot and Simple server.

Any help is appreciated.

doug.w...@athletechs.com

unread,
May 5, 2020, 3:53:52 PM5/5/20
to HAPI FHIR
Hi,

Did you make any progress on this?

I am trying to do do something similar but my requirements are to import / consume a FHIR Vital Record Death Record (VRDR) record via a post to a RESTful endpoint and save it to an existing PostgreSQL DB.  That is really the only requirement.  I may also want to export / produce that same record via a GET.

It is simple to create a RESTful server via Spring Boot as outlined her https://spring.io/guides/tutorials/rest/ but I am not sure what the actual signature of the methods should be.


Thanks!
Message has been deleted

Sam Habiel

unread,
May 6, 2020, 11:26:15 AM5/6/20
to bruno....@gmail.com, HAPI FHIR
Take a look over here: https://github.com/WorldVistA/FHIR-on-VistA.

It uses Spring Boot.

On Wed, May 6, 2020 at 10:32 AM <bruno....@gmail.com> wrote:
> --
> You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/37f92647-dbcc-4079-be34-f19e51e8d9b2%40googlegroups.com.
Message has been deleted

bruno....@gmail.com

unread,
May 6, 2020, 11:48:54 AM5/6/20
to HAPI FHIR
It is indeed simple to create a Spring Boot server and it is also simple to create a HAPI-FHIR Plain Server. It was just not that clean to make a combination from the hapi-fhir-spring-boot-samples. These include modules for every possible example and refer ultimately back to a massive parent pom.xml. I guess I was interested in trying to create a more stripped down version.

In the end I successfully implemented a HAPI-FHIR Plain Server just to get on with it.


On Tuesday, 5 May 2020 15:53:52 UTC-4, doug....@athletechs.com wrote:

NARASIMHA MURTHY

unread,
Jul 11, 2020, 7:59:05 PM7/11/20
to HAPI FHIR
Hi Bruno,

I am new to FHIR and I prefer to work on spring boot based projects.

I am looking for a Spring Boot FHIR JPA server. I am using the https://github.com/jamesagnew/hapi-fhir/tree/master/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples, which includes a JPA/Spring Boot. But unfortunately the POM.xml file refers to chain of multiple projects POM files.

Could you please share the location of spring boot project- (FHIR server) having a single POM.xml file with out referring to other projects POM files.
Thanks in advance.

pvnmur...@gmail.com

unread,
Jul 16, 2020, 10:44:55 AM7/16/20
to HAPI FHIR
Hi,

Bruno has shared with me the simple HAPI FHIR Plain server with spring boot, which is not a HAPI FHIR JPA server.

Please try this for HAPI FHIR Plain server with a simple POM.xml.

My requirement is to use HAPI FHIR JPA server. SO, I finally resorted to hapi fhir jpa starter project (not a spring boot project).

thanks,
Narasimha 

Reply all
Reply to author
Forward
0 new messages