-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outgoing Messages #17
Comments
Hi! Well... It's kinda depending on the rest of your architecture. HL7Fuse was mostly build with receiving messages in mind, either through the network or through files. Of course it would be possible to write a new plugin that read the database and take it forward from there. You might be interested in taking a look at the NHaptiTools project https://github.com/dib0/NHapiTools. You can write the database handling and the creation of the HL7 message (using NHapi) and use the SimpleMLLPClient class to send the message to the system you'll need to communicate with. NHapiTools is used for this purpose in HL7Fuse as well. Hope that helps! |
Thanks, for such a quick turnaround. Just a follow-up will SuperSockets/NHapi be able to poll the database on an interval is something like that built-in or do I have to create that mechanism? |
SuperSockets and NHapi won't do that for you. SuperSockets (used as a basis for HL7Fuse) is used for event based communication. For example the fileServer (https://github.com/dib0/HL7Fuse/blob/master/HL7Fuse/FileServer.cs) is a bit out of character. Of course you can use that as a basis to create a polling mechanism for a database table and use HL7Fuse like that. NHapi and NHapiTools (as a addon on NHapi) are purely for creating and interpreting HL7 messages. So if you don't go the HL7Fuse way, you will have to build that part yourself. But if you are polling a database, take a look at the HL7Fuse FileServerr implementation it might be enough to use that as a basis and create the database polling that suits your need. |
I wanted to query a database and then transform the data to a ADT message and send it out. I saw a lot about receiving messages in the documentation, but I'm not sure exactly where to plug-in to send out messages that is not already in native HL7 format.
The text was updated successfully, but these errors were encountered: