FHIR Chat · Hapi-tinder-plugin · hapi

Stream: hapi

Topic: Hapi-tinder-plugin


view this post on Zulip Gaurav Vaishnav (Jan 25 2022 at 05:18):

hi all,
can anyone explain what is the use of hapi-tinder-plugin and how its works for hapi jpa server

<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-tinder-plugin</artifactId>
<version>5.6.0</version>

<execution>
<id>build_r4</id>
<goals>
<goal>generate-jparest-server</goal>
</goals>
<configuration>
<version>r4</version>
<configPackageBase>ca.uhn.fhir.jpa.config</configPackageBase>
<packageBase>ca.uhn.fhir.jpa.rp.r4</packageBase>
<targetResourceSpringBeansFile>hapi-fhir-server-resourceproviders-r4.xml</targetResourceSpringBeansFile>
<baseResourceNames></baseResourceNames>
<excludeResourceNames>
</excludeResourceNames>
</configuration>
</execution>

view this post on Zulip James Agnew (Jan 25 2022 at 11:32):

That plugin generates the resource provider classes used by the JPA server.

I expect eventually it will go away. For a long time the only way to have search parameters in a resource provider class was to statically compile them in. Then we added the ability to add them programatically to the server (which we needed in order to support custom search parameters via the SearchParameter resource). So now we support both ways. Continuing to maintain the code generated RPs doesn't add much at this point.

view this post on Zulip Gaurav Vaishnav (Jan 27 2022 at 04:02):

Hi @James Agnew thank you for the response, can you please explain me furthermore like from with package this plugin is fetching or building the rp classes or how this plugin actually works because I want to develop a terminology server for that I need to remove some resources, I am new to hapi so need some guidance

view this post on Zulip James Agnew (Jan 27 2022 at 11:06):

The plugin is a part of the HAPI FHIR internal build process - you don't need to use it in order to use the library.

If you want to disable certain resource types, look at the JPA Starter Project's supported_resource_types config property.


Last updated: Apr 12 2022 at 19:14 UTC