Hello,
I am using HAPI-FHIR v8.0.0 through JPA-SERVER-STARTER.
In case there is large ValueSet and I request the $expand operation for it I might get this error in case it was not yet pre-expanded:
HAPI-0831: Expansion of ValueSet produced too many codes (maximum 1,000) - Operation aborted! .... Performing in-memory expansion without parameters. Current status: NOT_EXPANDED | The ValueSet is waiting to be picked up and pre-expanded by a scheduled task."
I would like to somehow check whether all ValueSets has been expanded already.
What I could possibly do is to try to call the expand on every ValueSet and wait until all of them return 200.
My question is whether there is any simpler way to check if there are any unexpanded ValueSets at the moment?
The information seems to be in DB in TRM_VALUESET.EXPANSION_STATUS I am wondering whether it is exposed or not in a way where I could call an API to check whether all of them are in EXPANDED status.
Thanks!