Stream: implementers
Topic: Hapi fhir custom resource
Neeraj Kumar (Feb 01 2021 at 17:49):
I am using hapi fhir starter project and modifying it according to the need.
https://github.com/hapifhir/hapi-fhir-jpaserver-starter
Facing issue when firing the create operation for custom resource and getting 'NullPointerException'.
'ISearchParamRegistry' is responsible for registering the search params for custom resource. It has a method which returns the active search params for all the resources and It gets initialized at the project load time.
searchParamRegistry.getActiveSearchParams();
This piece of code returns a unmodifiable map.
So, after registering my custom resource to FhirContext, How can I register active search params for this resource to 'ISearchParamRegistry'?
Because of this missing custom resource search params, I am getting NullPointerException when trying to create custom resource.
Lloyd McKenzie (Feb 01 2021 at 18:48):
You might raise this on the #hapi stream
Last updated: Apr 12 2022 at 19:14 UTC