Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 21st, 2008, 07:17 AM
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default HL7 development in C# .Net

Hi,
I want to develop an application to send and receive the HL7 message using C# .Net technology?
Is there any tool available for this which will expose the API to send and receive the messages?
Has anyone worked on the the same and what will be the approch to follow?

Thanks,
Rahul
 
Old April 21st, 2008, 07:36 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I am unfamiliar of any API's that allow you to do this. When I had to deal with HL7 files I wrote a simple parser that striped out all of the clincial data and then sent it to our SQL Server and related it to the patient. I did the same thing (in reverse order of course) when I had to generate an HL7 file to be sent off to the lab.

In so far as sending and recieving messages, I had a secure VPN tunnel set up between our office and the lab. When they created files that needed added to our system, they had a process that would access the tunnel then drop all of the files into a directory on a server. I had a windows service that watched this directory and was also responsible for parsing the data. We had a similar process for sending them our files.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old April 21st, 2008, 07:38 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well that depends greatly on which version of HL7 you are talking about.

I'm going to assume you mean HL7 v3 - this version is just XML, so obviously you can use .Net to create and edit HL7.

What transport mechanisms are you using? If you are using web endpoints then you can obviously use the HttpWebRequest classes to send and receive the XML.

If you have specific problems or I've assumed something you are not doing then please elaborate.

/- Sam Judson : Wrox Technical Editor -/
 
Old April 21st, 2008, 07:49 AM
Registered User
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I am using HL7 version 2.1 to 2.5
I have found one open source tool for message generation and parsing. It's NHAPI. But it does not support message communication.
Actually different labs will send their HL7 files either using HTTP, FTP or TCP/IP communication protocol and on my server I need to parse that messages and store in database.
Also I will need to send the acknoweldgement to the message sender application.
The messages can be standard or can be customized like user can add custom tags to their messages.

Thanks,
Rahul
 
Old July 2nd, 2008, 08:48 AM
Registered User
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rahul,
Your last post describes exactly what I am doing. I am trying to keep things simple, and at present I am only interested in parsing some HL7 messages and sticking the info in the DB. Conversely I want to build a HL7 message using C# classes, serialize and send.

So I have had a look at NHAPI. Looks very useful.
I'd be interested if you have any further details or examples that you could give me, as by the sounds of things, you have been working with a similar solution for some time now.

Thanks,
Cathal.


 
Old August 6th, 2008, 08:07 PM
Registered User
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to MrSmoofy Send a message via AIM to MrSmoofy Send a message via MSN to MrSmoofy Send a message via Yahoo to MrSmoofy
Default

I to am working on an integration between a product I'm working on and another product written by a third part. The client wants the two product to talk via HL7 the third party product already does it, I need to figure out how/understand how to create/send hl7 I'm not talking about the actual network part but the data of the messages and steps. Anyone have some good links for this?

 
Old August 7th, 2008, 05:40 AM
Registered User
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by MrSmoofy
 I to am working on an integration between a product I'm working on and another product written by a third part. The client wants the two product to talk via HL7 the third party product already does it, I need to figure out how/understand how to create/send hl7 I'm not talking about the actual network part but the data of the messages and steps. Anyone have some good links for this?

http://nhapi.sourceforge.net/home.php

I've been using this since my last post, and I am finding it very useful.
I recommend you take some HL7 text (e.g. a sample from the 3rd party product you mention) and use NHapi to parse it. And then using the debugger, look into the object and see how it is populated. This will give u a good idea of how to populate and send your own messages from scratch.

Cathal.


 
Old September 4th, 2008, 08:30 AM
Registered User
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've been looking at the NHapi code and I've run into one little problem. We'll be processing mainly ADT_A04 messages, however, it seems that in the framework, only models v231 and below support it. Anyone know why this is? If I receive a 2.4 or 2.5 ADT_A04, would it be OK to use the 231 model to process it?

thanks!

 
Old September 25th, 2008, 04:43 AM
Registered User
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi all,
i really involve this topic, because i do master with communication standards for health.

pls tell me more about the benefit and the achievement of using HL7 standard for health in your country (if you have a statistic in your country so i many thanks)

i read more about HL7 message v2.3.1 but i don't understand why you need coding this report, for example:

MSH||STORE|MISSION|MINE|LAUREL|199801181007|securi ty|ADT|MSG00201|||<CR>
EVN|01|199801181005||<CR>
PID|||PATID1234567||Doe^John^B^II||19470701|M||C|3 71 MAIN AVE^SAN FRANCISCO^CA^94122-0619||45-681-2888||||||||<CR>
NK1||Doe^Linda^E||wife|<CR>
PV1|1|I|100^345^01||||00135^SMITH^WILLIAM^K|||SUR| ADM|<CR>

pls explain why need coding? and how can send or receive electronic health reports among the countries


thanks for your help
NguyenTrang
my blog: http//360.yahoo.com/nguyentrang_271182


 
Old August 17th, 2009, 01:10 PM
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default nHAPI example

Hi Cathal,

I am fairly new to .NET and would like a little help in coding a simple example of using nHAPI.

I have downloaded the assemblies and created a project. Added the reference to the assemblies in the Project tab.

But I have been unable to execute the code successfully. I keep getting the error of missing assmbly for the following:

PipeParser parser = new PipeParser();

Can you help?

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
HL7 Development edaniel@hermetechnz.com Biztalk 2 November 11th, 2013 05:57 AM
Biztalk and Hl7 tcronin@cmsstl.com Biztalk 5 July 31st, 2013 03:12 AM
HL7 integration with C# Sudheer C# 3 August 29th, 2012 02:42 PM
.NET Enterprise Development in VB.NET capt_alberta All Other Wrox Books 3 July 22nd, 2003 05:12 PM
.NET Enterprise Development in VB.NET Remoting burkert All Other Wrox Books 0 June 24th, 2003 09:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.