FHIR Chat · HAPI libraries · implementers

Stream: implementers

Topic: HAPI libraries


view this post on Zulip sumalathadasarim (Mar 03 2020 at 21:23):

We are using these below libraries for our implementation of FHIR mapping canonical data model

<dependency>
        <groupId>ca.uhn.hapi.fhir</groupId>
        <artifactId>hapi-fhir-base</artifactId>
        <version>4.0.3</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/ca.uhn.hapi.fhir/hapi-fhir-structures-r4 -->
    <dependency>
        <groupId>ca.uhn.hapi.fhir</groupId>
        <artifactId>hapi-fhir-structures-r4</artifactId>
        <version>4.0.3</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/ca.uhn.hapi.fhir/org.hl7.fhir.utilities -->
    <dependency>
        <groupId>ca.uhn.hapi.fhir</groupId>
        <artifactId>org.hl7.fhir.utilities</artifactId>
        <version>4.0.3</version>
    </dependency>

Does these support US core profiles or do we need to use any other libraries?

view this post on Zulip Lloyd McKenzie (Mar 03 2020 at 21:30):

There are no US-core-specific libraries. HAPI supports generic FHIR - which means that it can support any arbitrary FHIR profile - though it won't enforce them unless either the instance or additional code tells it to and the profiles are available to the instance performing the validation.

view this post on Zulip sumalathadasarim (Mar 03 2020 at 21:52):

Lloyd McKenzie said:

There are no US-core-specific libraries. HAPI supports generic FHIR - which means that it can support any arbitrary FHIR profile - though it won't enforce them unless either the instance or additional code tells it to and the profiles are available to the instance performing the validation.

Which libraries we need to use if we need the US core profiles?

view this post on Zulip Lloyd McKenzie (Mar 03 2020 at 21:53):

No libraries. But HAPI will need the NPM package that defines the US Core structure definitions, value sets, etc.

view this post on Zulip sumalathadasarim (Mar 03 2020 at 22:15):

Lloyd McKenzie said:

No libraries. But HAPI will need the NPM package that defines the US Core structure definitions, value sets, etc.

Thank you!

view this post on Zulip James Agnew (Mar 03 2020 at 22:21):

Those version numbers are also wrong.. there is no HAPI FHIR 4.0.3, you want 4.3.0. You also don't need the utilities library, it'll be automatically pulled in as a transitive dependency

view this post on Zulip James Agnew (Mar 03 2020 at 22:21):

sorry, 4.2.0 is the latest version, not 4.3.0


Last updated: Apr 12 2022 at 19:14 UTC