FHIR Chat · Limit exposed (rest) API to the specific resource · implementers

Stream: implementers

Topic: Limit exposed (rest) API to the specific resource


view this post on Zulip Marek Gocał (Jan 16 2022 at 11:16):

Hi, I'm new to the HAPI FHIR, and I'd like to create JPA App that exposes some subset of the FHIR obiects (e.g. Observations & Patients), and keep everything else not available (also in terms on unnecessary db tables, swagger interface etc.). How can I achieve that ? As a reference project I'm using https://github.com/hapifhir/hapi-fhir-jpaserver-starter.

view this post on Zulip Lloyd McKenzie (Jan 16 2022 at 16:57):

It might be best to ask on #hapi

view this post on Zulip Jens Villadsen (Jan 16 2022 at 20:58):

@Marek Gocał you can control which resources and what methods that are exposed by looking at the ResourceProviders that are constructed as beans. Look at e.g. https://hapifhir.io/hapi-fhir/apidocs/hapi-fhir-jpaserver-base/src-html/ca/uhn/fhir/jpa/config/BaseJavaConfigR4.html


Last updated: Apr 12 2022 at 19:14 UTC