FHIR Chat · asynchronous HAPI · implementers

Stream: implementers

Topic: asynchronous HAPI


view this post on Zulip 世界人 Sekaijin (Jan 15 2017 at 14:27):

Hi everybody.
Hapi Fhir implements asynchronous communication in messaging mode?
I work with apache camel and I wonder if it is opportune to create a camel connector for hapi-fhir.
It is very simple to make a camel-dataformat that uses parser hapi-fhir.
Similarly creating a camel connector that uses the hapi-fhir client does not pose any difficulty to send queries to the server.
But camel allows you to listen to a data source. In this case it is necessary that the source (hapi-fhir server) be cappable to send messages, or to generate events.
With such a connector it becomes possible to write things like:
from("jms:myqueue").bean(PatientBean.class).to("fhir:myserver");
or
from("fhir:myserver").bean(RegionalIdentityBuilder.class).to("rest:regionalIdentityServer/patient");

view this post on Zulip James Agnew (Jan 15 2017 at 14:29):

Hello,

I guess this depends on what you mean by asynchronous messaging mode. We don't currently have native support for the "messaging endpoint" as defined by FHIR, but in general if you're just looking to stand up a FHIR server using HAPI inside Camel and route incoming requests to it via Camel's infrastructure, I would assume this would work.

view this post on Zulip 世界人 Sekaijin (Jan 15 2017 at 14:43):

https://www.hl7.org/fhir/messaging.html
On some system we can do this:
The client opens a connection is subscribing to the patient creation events
When a patient is created on the server
The server generates an event and the client listen method is enabled
The client then receives the information from the patient created.

view this post on Zulip James Agnew (Jan 15 2017 at 16:12):

Hmm, so I guess if I'm understanding your question correctly the answer is: HAPI doesn't have any already built support for that, but certainly the library has all of the parts you'd need to build it in your application. I.e all the resources are there, and there's support for operations and everything else. If you're using Camel it would presumably be as simple as standing up a HAPI server with a $process-message operation, then routing the incoming requests into Camel for queuing and eventual processing.

view this post on Zulip 世界人 Sekaijin (Jan 16 2017 at 19:17):

Hi
Thank you for the answer.
I do not write an application but a client connector that plugs into a fhir server.

A + JYT


Last updated: Apr 12 2022 at 19:14 UTC