HL7 object model for .NET [closed]

那年仲夏 提交于 2019-11-30 10:19:46

问题


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.

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
  }
}

回答1:


You want nHAPI I 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).




回答2:


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.




回答3:


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.

  • http://irwinj.blogspot.in/2008/10/mirth-is-open-source.html
  • http://codingheadache.com/?tag=mirth
  • http://mirthconnect.isarp.com



回答4:


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




回答5:


I just stumbled across this product as well:

Managed Code Objects for 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.




回答6:


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

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



来源:https://stackoverflow.com/questions/777933/hl7-object-model-for-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!