HAPI Bulk API operations issues on local HAPI instance

698 views
Skip to first unread message

akakl...@gmail.com

unread,
Nov 13, 2019, 7:10:42 AM11/13/19
to HAPI FHIR
Hello!
I've found, that $export operation doesn't work on HAPI local instance.

 - upload data  https://drive.google.com/open?id=19O32q_ZmavcIkxANt8YkzSd3_lHoqyhC  (this is bundle for jmeter. Tu upload via POSTMAN  just  replace ${PATIENT_ID}  with any id , e.g.123 )
- run link
  "output": [
    {
      "type""Observation",
    },
    {
      "type""Observation",
    }, ...ETC
  
}
- observe results https://drive.google.com/open?id=1BywdWsw5EdnZpEAdmTf-39wrAVcwmpGr Result : No data filtered by status = registered

Tell please, if something has to be configured additionally for proper filters work. Or it's a bug?

Thank you !


 

James Agnew

unread,
Nov 13, 2019, 8:39:20 AM11/13/19
to akakl...@gmail.com, HAPI FHIR
I don't know for sure that this is the issue, but that second "?" in your URL isn't valid in a URL. You'll need to percent-encode that.

Cheers,
James

--
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/b6fe6d2f-d4b1-4f36-8a4d-2bf9d21e22f5%40googlegroups.com.

akakl...@gmail.com

unread,
Nov 13, 2019, 10:49:18 AM11/13/19
to HAPI FHIR

akakl...@gmail.com

unread,
Nov 13, 2019, 11:52:32 AM11/13/19
to HAPI FHIR
Hi, James !
I've found, also, that   $export operation doesn’t export just uploaded data

SteSteps to reproduce

o   Upload data to server

o   Run $export

o   Get link from header

o   Observe data (e.g. 2000 entries of “DocumentReference”)

o   Upload new datd to server (e.g. + 500 entries of “DocumentReference”)

o   Run $export

o   Get link from header  ( job ID remains the same)

o   Observe data 

o   Result 2000 entries od Document reference )


Don't you kow , probably it's needed to configure server to refresh export jobs on every$export request ?

Artem Sopin

unread,
Nov 13, 2019, 3:01:58 PM11/13/19
to HAPI FHIR
James,

It seems like there is a bug in $export method. What I can see is that Anton has tried to

a) load  2000 resources
b) do $export (got back 2000 resources)
c) load additional 500 resources  
d) do $export again

and it seems like he gets back X resources instead of 2000+500 resources. 

So $export works correctly only for the first time. It sounds like there some cash not cleared up. 

Is there any workaround (including some DB table clean up) so HAPI FHIR Server would do the operation from scratch and counted all 2500 resources? 

gans...@gmail.com

unread,
Nov 15, 2019, 4:02:30 AM11/15/19
to HAPI FHIR
Hello, 

When I used $export  - application always returns the same JobID. And therefore results of export are always the same

it shows error that server can not do such an operation. It seems that it is not implemented. 

In this case how can I re-export data (delete previous export results)?

Thanks,
Andrew



среда, 13 ноября 2019 г., 16:39:20 UTC+3 пользователь James Agnew написал:
To unsubscribe from this group and stop receiving emails from it, send an email to hapi...@googlegroups.com.

James Agnew

unread,
Nov 15, 2019, 8:21:22 AM11/15/19
to Andrew Guselnikov, HAPI FHIR
The bulk export currently has a cache on export results that is (I believe) 1 hour, and we don't yet provide any mechanism for overriding it. Agree that would be a useful enhancement.

Cheers,
James

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/beef4281-82bc-4f4d-8ef0-01ad2c43cc0a%40googlegroups.com.

gans...@gmail.com

unread,
Nov 20, 2019, 7:29:20 AM11/20/19
to HAPI FHIR
Hello James, 

Thank you for your answer.

One more question - could you please clarify what happen after one export operation is complete? When I invoke this operation second time(with no changes in FHIR server - no any new resources), I found that there is no resources exported 

The only JSON I have got

{
  "transactionTime" : "2019-11-20T12:19:29.776+00:00",
  "request" : "/$export?_outputFormat=application%2Ffhir%2Bndjson"
}

Is it correct behavior? 

Thanks,
Andrew

пятница, 15 ноября 2019 г., 16:21:22 UTC+3 пользователь James Agnew написал:
Reply all
Reply to author
Forward
0 new messages