GoogleCloudPlatform / mllp

The MLLP (Short for "Minimal Lower Layer Protocol") adapter is a component that runs on GKE (https://cloud.google.com/kubernetes-engine/), receives HL7v2 messages via MLLP/TCP, and forwards messages received to Cloud HL7v2 API.
Apache License 2.0
68 stars 29 forks source link

Inbound and Outbound Configuration #33

Open CMorton737 opened 2 years ago

CMorton737 commented 2 years ago

Hey,

Is it possible for a single mllp adapter to be configured for both inbound and outbound flow?

I have been able to set up an instance of the mllp-adapter for client -> hl7v2 API traffic, and vice versa, but I haven't quite been able to both flows working on a single instance of the mllp-adapter.

Just want to confirm that it's possible before spending more time on it.

Thanks

IDispose commented 1 year ago

@CMorton737 I am able to successfully configure a single adapter to send and receive messages. However, it appears the sore used for receiving and sending messages should be the same.

Initially I had configured the adapter to land incoming messages in a store id inbound. Created another store in the same dataset with id outbound. My idea was to store messages sent to the adapter be routed to inbound and messages I need to send out will be created in outbound with a pub/sub subscription. This keeps the inbound and outbound messages separate. That did not work.

After configuring to use the same store for both INBOUND and OUTBOUND, the adapter works as both a receiver and a sender.