FHIR Chat · Spring Boot · hapi

Stream: hapi

Topic: Spring Boot


view this post on Zulip James Gilchrist (Nov 05 2020 at 14:43):

Is there any more documentation on spring boot? Does the test overlay page work with jars or does it have to be a war?

view this post on Zulip John Ravan (Nov 05 2020 at 15:13):

James Gilchrist said:

Is there any more documentation on spring boot? Does the test overlay page work with jars or does it have to be a war?

I know this may not answer your question, but here I have an implementation of the HAPI FHIR Validator within Spring Boot as a Rest API. It may not be documentation but I hope it can serve as an example? https://github.com/jtravan3/hapi-fhir-validator-api

view this post on Zulip James Gilchrist (Nov 05 2020 at 15:14):

Thanks, I'll look into it.

view this post on Zulip Jens Villadsen (Nov 05 2020 at 16:05):

@James Gilchrist If you need the overlay and server functionality and don't want to use the docker stuff the either use https://github.com/hapifhir/hapi-fhir-jpaserver-starter#using-jetty or https://github.com/hapifhir/hapi-fhir-jpaserver-starter#using-spring-boot

view this post on Zulip James Gilchrist (Nov 05 2020 at 16:06):

@John Ravan I see you are using a spring boot project, but it's not exactly a fhir project. Sure, you're using the libraries, but I was looking more for example on how to run the jpa server from the hapi-fhir-spring-boot-starter. The samples located here: https://github.com/jamesagnew/hapi-fhir/tree/master/hapi-fhir-spring-boot unfortunately only stub out the @SpringBoootApplication with no additional context.

view this post on Zulip James Gilchrist (Nov 05 2020 at 16:08):

@Jens Villadsen Yes I was reading through that. Curiously, do you know why using the hapi-fhir-spring-boot-starter isn't more documented? Seems like that would be a great launching point. Obviously the jpa-starter is fine too. I see it's just controlled based on the profiles.

view this post on Zulip Jens Villadsen (Nov 05 2020 at 16:09):

the starter project is an example of how to use the JPA server in various ways based on Spring Boot

view this post on Zulip Jens Villadsen (Nov 05 2020 at 16:09):

It wasn't until last month that Spring Boot was really introduced (by me mostly)

view this post on Zulip John Ravan (Nov 05 2020 at 16:10):

Oh yeah, mine is very very simple, and only uses the HAPI FHIR dependencies to do FHIR validation via Rest API calls. The lack of documentation is probably due to how much you can do with Spring Boot. It would be time-consuming to document a lot of those use cases. Both Spring Boot and HAPI Fhir are huge tool kits and combining them is generates even more possibilities.

view this post on Zulip Jens Villadsen (Nov 05 2020 at 16:11):

We could use more hands on starter project (PR's are welcome). I mostly use it as a stubbing 3.party FHIR servers

view this post on Zulip Jens Villadsen (Nov 05 2020 at 16:12):

(my last FHIR installation involves around 10 different FHIR servers with different profiles and resources) so my need is stubbing and easy configuration

view this post on Zulip James Gilchrist (Nov 05 2020 at 16:14):

Okay, much appreciated. I'll look into it further. For now I started with the jpa starter and boot profile.

view this post on Zulip Jens Villadsen (Nov 05 2020 at 16:14):

but the use cases for the starter project goes way beyond stubbing. its also used by technical clinical people for testing out profiling and setting up PoC's ...


Last updated: Apr 12 2022 at 19:14 UTC