Questions tagged [nhapi]

NHapi is an HL7 2.x parser for the .NET Framework. NHapi is open-source, and enables .NET developers to programmatically create and modify HL7 messages.

NHapi (pronounced "n-happy") is an HL7 API. It's an open-source, object-oriented HL7 2.x parser for the .NET Framework.

NHapi allows Microsoft .NET developers to easily use an HL7 2.x object model. This object model allows for parsing and encoding HL7 2.x data to/from pipe-delimited or XML formats.

NHapi was ported from the original HAPI Java project.


Useful links


Related tags

47 questions
0
votes
1 answer

NHAPI C# 3.5 parsing orm_001 2.3

I am having trouble putting a structure on this message. It is an order message. When it casts it stays null so orm001 is always null. I used some other hl7 types and it went in ok. I and thinking it may be the OBR line but it still does the same…
Scott Wein
  • 5
  • 1
  • 4
0
votes
2 answers

NHapi using C#.net

I am using nHapi in c#.net to convert hl7 messages to xml format using the following code. My code: using System; using NuGet; using NHapi.Model; using NHapi.Model.V231; using NHapi.Model.V231.Message; using NHapi.Base.Parser; using…
Sayan Sen
  • 1,654
  • 3
  • 16
  • 26
0
votes
1 answer

NHAPI 2.5.1 VXU missing RXA segment

It appears that NHAPI VXU_V04 (Unsolicited Vaccination Record Update) class is missing support for the RXA segment (Pharmacy/Treatment Administration) for 2.5.1 version of HL7. Am I somehow choosing the wrong class for VXU? VXU_V04 vxu = new…
Gina Marano
  • 1,773
  • 4
  • 22
  • 42
0
votes
1 answer

NHAPI 2.5.1 xx.(0).Components values, how to use

I have figured out most (I think) of the values for PID and RAX using NHapi for hl7 2.5.1. What I am having difficulties on are the ones that (I am assuming) use components such as rxa.AdministeredCode.Components[5]. How do I set that value? I…
Gina Marano
  • 1,773
  • 4
  • 22
  • 42
0
votes
1 answer

How do I find the repeating fields value of a HL7 string in C#?

string input = @"MSH|^~\&|||||20171218104936.3464||ADT^A01^ADT_A01|56ca00f2-a99a-4593-b6cb-1c141c0ae0cb||2.3.1 EVN||20171218104936.3464 PID|||15197||Test^Dummy^HK||19770628000000.0000|O PV1||0"; In the string above, the name field (Test^Dummy^HK)…
0
votes
2 answers

NHapi: Add multiple ORDER/ORC segments

I am using NHapi to generate a HL7 message. This is the sample message I want to create: MSH|^~\&|EHR Application|EHR Facility|PH Application|PH…
Abhi
  • 107
  • 3
  • 13
0
votes
1 answer

nHapi GT1 segment for DFT_P03 returning empty collection

I am stumped on the following Sample message: MSH|^~\&|CWM|MySender|UNKNOWN|UNKNOWN|20160711080000||DFT^P03|976503|P|2.5| EVN|P03|20160711080000 PID||12345^^^RIS|||Test^Patient||192532325445|F|||27 Lotus street…
Crudler
  • 2,194
  • 3
  • 30
  • 57
0
votes
2 answers

nHapi v231 does not contain a SIU^S13 messageType

I am currently working on updating an existing HL7 integration that is build in NET 4.5.1 using the nHapi library version 2.3.1 Our integration partner has changed a couple of things and wishes to send us different messagesTypes of HL7: SIU^12,…
Memphis
  • 271
  • 1
  • 6
  • 16
0
votes
1 answer

Unable to Parse NTE if the segment order is changed

I got a HL7 message with NTE segment. The HL7 message type RDE_O11 and version 2.5. While passing message with NTE, NHAPI is not parsing it. So with the following…
Raajkumar
  • 857
  • 2
  • 13
  • 26
0
votes
2 answers

NHAPI ZPI Segment

We are planning to use NHAPI in our application as a PILOT run. I am in the process of verifying whether the current message can be parsed using NHAPI. So we got a segment named "ZPI – Additional Prescription Information Segment". Since I believe…
Raajkumar
  • 857
  • 2
  • 13
  • 26
0
votes
1 answer

How to create sending application in HL7 message end with double caret(^) via nHapi?

How can I create sending facility(ABCSite^^) in MSH segment as below? MSH|^~\&|AbcSite^^|XYZFacility|||201506211402||OMI^O23|20150621140223834684|D^T|2.4
raininuhn
  • 1
  • 2
0
votes
1 answer

How can I use hapi version safe or as generic?

I have this ugly code below for hl7 message seen here. The code runs for varied versions of HL7 listeners. For one system I receive in v2.3 but for the other one I get in v2.5 As you can notice the job is almost same for all versions. But the base…
Davut Gürbüz
  • 5,526
  • 4
  • 47
  • 83
0
votes
1 answer

How to decode the hl7 message in to a normal text

I am new to this HL7 messages and started working on them today. I hav gone though some of the tutorials and videos over web corepoint HL7Soup I have understood that there is certain format that the messages will be transformed across HIS. I want to…
Vivekh
  • 4,141
  • 11
  • 57
  • 102
0
votes
1 answer

HL7 NHapi API OML_O21 PatientName object properties

I am using NHapi API http://nhapi.codeplex.com/ for HL7 in .net applcation. Request from audience to provide an example on how to set objects properties like PatientName and PatientAddress example in OML_021 object how we can set PatientAddress. I…
0
votes
1 answer

Need to get field value by its name and name of its structure

How can I get value of Hl7 field specifying just name of structure and filed of Hl7 message? This line of code message.GetStructure("MSH") works well, while this does not: message.GetStructure("MSH.SendingFacility"). The name of field is known in a…
YMC
  • 4,925
  • 7
  • 53
  • 83