Stream: hapi
Topic: hapi-fhir-jpaserver-starter ValueSet $expand
Mauricio Burgos Herrera (Oct 26 2021 at 15:23):
Hello!
I'm using the hapi-fhir-jpaserver-starter (hapiproject/hapi:v5.5.1) server and I have loaded the ICD 10 CM CodeSystem and created a ValueSet that contains the whole system.
When I try to $expand the ValueSet with just the url query param I get back an error saying:
Expansion of ValueSet produced too many codes (maximum 1,000) - Operation aborted!
When doing the $expand operation with a count=10
I get the same error but this time with the maximum value changed:
Expansion of ValueSet produced too many codes (maximum 10) - Operation aborted!
Looking at the logs I see that a scheduler thread runs a few minutes afterwards hapi-fhir-jpa-scheduler-clustered-3
and starts pre-expanding the ValueSet.
After this the $expand queries work as expected.
- Is there a way to control this process? What is the expected behaviour, how does the scheduler decides what ValueSets to pre-expand?
- Right now I'm just using h2 and lucine, would this change if I use Postgres and Elasticsearch?
Thanks in advance! :)
Last updated: Apr 12 2022 at 19:14 UTC