C# .NET 的 HL7 对象模型

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/777933/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 00:45:57  来源:igfitidea点击:

HL7 object model for .NET

c#.nethl7object-model

提问by p.campbell

Searching for a library or framework that would provide an object model, parsing, validating, etc

搜索可以提供对象模型、解析、验证等的库或框架

The idea would be to be able to spin up a new object of type hl7 v2 or v3. Then perhaps call it message type ORU_R01 or ADT, or ORM.

这个想法是能够启动一个类型为 hl7 v2 或 v3 的新对象。然后也许将其称为消息类型 ORU_R01 或 ADT,或 ORM。

Wouldn't life be great if we were able to do something like this:

如果我们能够做这样的事情,生活会不会很棒:

HL7V2 myMessage = new HL7V2();
myMessage.Type = V2MsgTypes.ORU_R01;
myMessage.TryParse(someHL7_string);

if (myMessage.IsValid)
{
  //do some work
  //maybe access the PID segment
  if (myMessage.Patient.Names.FamilyName =="Johnson")
  {
    //do more work
  }
}

采纳答案by Harper Shelby

You want nHAPII used it on a project previously, and it worked great. The fact that it's open source saved my bacon too, as one of the input sources didn't precisely follow the HL7 spec, so I had to hack on the source a little bit to make nHAPI's parser allow those messages (as I couldn't change them).

你想要nHAPI我以前在一个项目中使用过它,而且效果很好。它是开源的这一事实也拯救了我的培根,因为其中一个输入源并没有完全遵循 HL7 规范,所以我不得不对源代码进行一些修改,以使 nHAPI 的解析器允许这些消息(因为我不能改变它们)。

回答by superdoc

Orion Helth has a toolkit called Symphonia which does something similar. There is also Chameleon toolset from Interfaceware which does the same.

Orion Helth 有一个名为 Symphonia 的工具包,可以做类似的事情。Interfaceware 的 Chameleon 工具集也有同样的作用。

回答by kartikq

I've used nHAPI too and it works great. However you might need to watch out for some quirky behavior w.r.t escaping special characters. I've also had to manually hack the HL7 string to update some fields that were inaccessible using the object model.

我也使用过 nHAPI,效果很好。但是,您可能需要注意转义特殊字符的一些古怪行为。我还必须手动破解 HL7 字符串以更新一些使用对象模型无法访问的字段。

回答by gap

I just stumbled across this product as well:

我也偶然发现了这个产品:

Managed Code Objects for Visual Studio .Net

Visual Studio .Net 的托管代码对象

From their web page:

从他们的网页:

A Visual Studio .Net HL7 Class Library DLL designed to allow HL7 software developers to provide HL7 integration for their existing solutions cheaply, quickly and reliably.

一个 Visual Studio .Net HL7 类库 DLL,旨在允许 HL7 软件开发人员廉价、快速和可靠地为其现有解决方案提供 HL7 集成。

回答by Parth mehta

Instead of using an API, try Mirth Connect, an open source tool that you can install on your server and integrate with .NET, databases, file directory etc.

与其使用 API,不如尝试Mirth Connect,这是一种开源工具,您可以将其安装在您的服务器上并与 .NET、数据库、文件目录等集成。

回答by chris.w.mclean

Chris Patterson has a library for HL7 2.x manipulation called Machete that is pretty good. https://github.com/phatboyg/Machete

Chris Patterson 有一个名为 Machete 的 HL7 2.x 操作库,非常好。 https://github.com/phatboyg/Machete

NHapi is ok but suffers from poor performance in my experience.

NHapi 还可以,但在我的经验中表现不佳。