FHIR Chat · HAPI JPA example server · hapi

Stream: hapi

Topic: HAPI JPA example server


view this post on Zulip Bowen Gong (Aug 19 2016 at 18:40):

Hi @James Agnew . I'm using the HAPI JPA example server (hapi-fhir-jpaserver-example). And I notice that there is no option for stu3 in the web interface. Is there any way to change the JPA example server to stu3 with some option in the code? Or the JPA server doesn't support stu3 for now?

view this post on Zulip Patrick Werner (Aug 24 2016 at 09:46):

@Bowen Gong have a look at the JPAServerDemo.class.

/*
         * We want to support FHIR DSTU2 format. This means that the server
         * will use the DSTU2 bundle format and other DSTU2 encoding changes.
         *
         * If you want to use DSTU1 instead, change the following line, and change the 2 occurrences of dstu2 in web.xml to dstu1
         */
        FhirVersionEnum fhirVersion = FhirVersionEnum.DSTU2;
        setFhirContext(new FhirContext(fhirVersion));

view this post on Zulip Patrick Werner (Aug 24 2016 at 09:46):

you should be able to switch the server to STU3

view this post on Zulip sujay raveendra (Sep 09 2016 at 00:28):

Do we have an equivalent Gradle Build file of POM.xml for HAPI JPA Example Server?
When we perform Gradle INIT (converting MAVEN to GRADLLE) end up getting "No mapping found for HTTP request" and the dispatcherServer never resolves

view this post on Zulip James Agnew (Sep 27 2016 at 20:50):

Hi Sujay,

HAPI's build is entirely Maven based, there is no Gradle example right now. It shouldn't be too hard to create a gradle project of course, since Gradle and Maven can share dependencies.

If by chance you get this working on Gradle, we would of course love a contribution! :)


Last updated: Apr 12 2022 at 19:14 UTC