.net 的 hl7 组件
我有一个内置于 .net 的 Windows 服务,它必须构建一些 hl7,通过 tcp/ip 发送它,接收一个 ack。有没有免费的库可以做到这一点。我可能可以自己处理 tcp/ip 部分,但如果我能找到一个好的库,它至少具有所有解析逻辑,可以为我提供一个表示消息的类实例,这将节省我很多工作。
I havea windows service built in .net which must build some hl7, send it off over tcp/ip, receive an ack. Are there any free libraries for doing this. I could probably handle the tcp/ip part myself, but if I can find a good library that at least has all the parsing logic to just deliver me a class instance representing the message that would save me a lot of work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您偶然查看过 NHapi 吗? ...以及另一个有用的链接 - 使用 C# 发送 HL7 消息
by chance have you looked at NHapi? ...and another userful link -- Using C# to Send A HL7 Message
关于编码头痛的帖子很短。这是另一个博客,其中包含您可以使用的有关 nHapi 的更多信息。从.Net的角度来看,您可以使用Biztalk,它有一些Hl7支持或使用nHapi(这是一个开源产品)。
http://www.dib0.nl/component/tag/nhapi
The post on Coding Headache is quite short. Here's another blog with some more information on nHapi that you could use. From a .Net perspective you could use Biztalk, that has some Hl7 support or use nHapi (that is an open source product).
http://www.dib0.nl/component/tag/nhapi
如果您只发送几种不同的消息类型,那么一个简单的解决方案是自己构建 hl7;如果您有来自目标系统的示例消息,则尤其如此。
您可以根据示例消息创建模板,其中包含需要在运行时添加的信息的占位符。
您可以简单地使用 tcpip 发送消息。
If you are sending just a few different message types, then a simple solution would be to build up the hl7 yourself; this is especially true if you have example messages, from your destination systems.
You can create templates from your sample messages, with place holders for information that needs to be added at runtime.
You can simply send your messages using tcpip.
我建议看看 Mirth。例如,设置 SOAP 侦听器并通过它发送 XML。在 Mirth 中定义所需的 HL7 转换并让它发送 HL7 消息。您永远不会在 .Net 中找到与 Mirth 提供的内容相匹配的任何内容。而且,是的,它是免费使用的,并且掌握起来并不困难。
I would recommend taking a look at Mirth. Setup e.g. a SOAP listener and send XML thru that. Define the HL7 transformations you need in Mirth and have it send the HL7 messages. You'll never find anything in .Net that matches what Mirth provides. And, yes it is free to use and not that difficult to master.