$extract in Facade server

31 views
Skip to first unread message

Onkar Jadhav

unread,
Feb 5, 2025, 9:35:16 AM2/5/25
to HAPI FHIR
Hello team
I am trying to create an $extract operation in plain/ facade server with the definition-based extraction technique and I want to create resources dynamically.
And I am not sure how can I achieve it 
Anyone here who can help me with this

Thanks in advance 

robert...@mac.com

unread,
Feb 18, 2026, 5:44:08 AM (4 days ago) Feb 18
to HAPI FHIR

Hello
We are adding the $extract operation to our facade too at the moment.

Assuming you use the plain server as described in the HAPI documentation, I suggest you check out https://github.com/hapifhir/hapi-fhir-jpaserver-starter 

The clinical-reasoning library used is https://github.com/cqframework/clinical-reasoning .
It seems clinical reasoning is quite strongly linked to getting data from a repository, so you probably need to write your own IRepository instance to use the ExtractProcessor from said library to resolve Questionnaire / QuestionnaireResponse and other resources. 

To register the operation, simply use the HAPI annotations for a new operation. After running the extraction, you get a transaction bundle which you could either process inside your extraction operation, or handle it seperately on your bundle-endpoint, depending on how you would like to proceed from there.

Hope this helps.

Best regards,
Robert
Reply all
Reply to author
Forward
0 new messages