Latest Microsoft .Net Technologies Blogs

Parse HL7 EDI Message using C# and NHAPI

NHAPI provides core components for parsing/encoding HL7 messages.In my case I will use NHapi.Model.V231 for parsing.I will be using below message to parse int his blog. MSH|^~\&|ADL Messaging|ADL|Receiving App|Receiving facility|201907160346||ORU^R01|20190716033149_CM796136|T|2.3.1|||AL|||||PID|||||SURNAME^FIRSTNAME^^^||189912310000|M|||^^^^|||||||||||||||||||PV1|||Hsp^Hospital Ltd|||||||||||||||||||||||||||||||||||||||||ORC|RE|PatientId|0019T637146||CM||||201907160346|||||||||||OBR|1|CM796136|0019T637146|FBCX^FULL BLOOD COUNT^WinPath||201907151657|201907151030|||||||||^||||||||TDL|F||||||||||||||||||||NTE|1||Morning hours 6-10am : 166-507 nmol/L..br\Afternoon hours 4-8pm : 73.8-291 nmol/L.NTE|1||Morning1 hours 6-10am : 166-507 nmol/L..br\Afternoon hours 4-8pm : 73.8-291 nmol/L.OBX|1|NM|HBGL^HAEMOGLOBIN (g/L)^WinPath^HAEMATOLOGY^1^0||122|g/L|130 -…

Send Mail using Windows Service C#

Step 1 Open Visual Studio and create a new project. Under Windows Desktop select Windows Service and provide a proper name and click on the OK button. Step 2Rename the service1 class to a proper name. In this case I am using “SentEmail”. Click on “Click here to switch to code view”. Here is the…