How to get status of HAPI processing

68 views
Skip to first unread message

Peter Micuch

unread,
Feb 2, 2023, 12:39:45 PM2/2/23
to HAPI FHIR
Hi there,

I am uploading big set of profiles into fresh instance of HAPI and afterwards I am trying to upload some resources that do reference those profiles. However I am getting responses that resources could not be created as some profiles are not know (some extensions missing). If after profiles upload I wait longer (do not have exact time, but i.e. 30 minutes to be sure), then all my data uploads without issues.

Is there a way to check if Hapi has finished all processing already, or if there is anything in the queue to be processed?

Thanks,
Peter

Paul Jones

unread,
Feb 2, 2023, 12:48:16 PM2/2/23
to Peter Micuch, HAPI FHIR
Hi Peter,

I have seen cases where the validation support mechanism fails to reference a new profile on the first presentation, then succeeds on subsequent submissions.

Is your case different?


--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/a7a59331-95bd-4598-b9dd-3282b29689a1n%40googlegroups.com.


--

Paul Jones

Senior Developer

About Objects

240-388-5113
paul....@aboutobjects.com

Peter Micuch

unread,
Feb 2, 2023, 12:56:04 PM2/2/23
to Paul Jones, HAPI FHIR
Hi Paul,

it is as you wrote, but also if you wait for long enough, it does not fail and that is interesting. Therefore I thought there might be web API that would return 200 when all processing is finished.

Peter

James Agnew

unread,
Feb 2, 2023, 2:23:16 PM2/2/23
to Paul Jones, Peter Micuch, HAPI FHIR
For what it's worth, there are 2 things that could be happening here:

1. There is an in-memory cache that stores profile lookups. I'd guess this is possibly the thing you are running in to - If you have looked up a profile recently, the failed lookup is cached for 60 seconds and even if you upload that profile it won't be used until the cache expires 60 seconds later.

2. Large CodeSystems and ValueSets will spawn a background job to perform indexing. We don't currently provide any API to querying the status of those jobs - Technically you could look in the BT2_JOB_INSTANCE table for it, but there isn't a FHIR API for it. Hopefully this will be added in the future.

Cheers,
James

Reply all
Reply to author
Forward
0 new messages