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
1
vote
1 answer

c# how to add multiple RDT segments on NHapi using HL7 version 2.5.1

I'm working with nHapi v2.5.0.6 and I'm trying to create multiple RDT segments for HL7 v2.5.1. The segments should look like this: RDT|555444222111|Adam||19600614|M| RDT|555444222112|Adam2||19600615|F| RDT|555444222113|Adam3||19600616|M| But the…
roncansan
  • 2,310
  • 6
  • 27
  • 34
1
vote
1 answer

What are the mandatory segments in the REF I12 HL7 message?

I am using NHapi(.NET, c#) terser to generate a REF I12 message with an attachment. Please help me with the following questions : What segments are mandatory in REF I12 ? Can an OBX segment be present in a REF message without the OBR segment ?
Jose Francis
  • 950
  • 13
  • 28
1
vote
1 answer

NHAPI PID 13.1 Segment home phone is not able to get created

Please Help me on this : I have stuct on this line.I'm not getting pid 13.1 Which is a Home Phone-Telephone number.Please tell me how to get this segment created. I'm using : NHAPI V231 adtA04.PID.GetPhoneNumberHome(0).PhoneNumber.Value =…
gupta123
  • 11
  • 2
1
vote
0 answers

Seems like NHapi does not fully support hl7 v2.3 repetitive segments

We use NHapi 2.4 to parse hl7 ver. 2.3. The problem I faced is NHapi cannot parse hl7 repetitive segments properly in case such segments split by another hl7 segment. When I feed hl7 with IN1 constitutive repetitive segments to Nhapi it works…
YMC
  • 4,925
  • 7
  • 53
  • 83
1
vote
2 answers

Validate HL7 with C# and nHapi for .NET

I'm looking to validate an HL7 2.3 standard message using C# and .NET version of nHapi project: https://github.com/duaneedwards/nHapi I've downloaded the dll's and added to my project both NHapi.Base.dll and NHapi.Model.V23.dll. I know I should…
ohadinho
  • 6,894
  • 16
  • 71
  • 124
1
vote
1 answer

nHapi Patient Referral Message (REF_I12) PID Segment not being parsed

I have an issue where the nHapi PipeParser does not appear to be parsing the PID segment of an REF_I12 (Patient Referral) message. If I use the exact same PID segment in a different message (ADT_A01), the PID Segment is parsed. I'm using HL7 version…
Morné
  • 43
  • 8
1
vote
1 answer

nhapi - Modifiy a segment value

Env : Visual Studio 2013, Winform / C# / Framework 4.5, nHapi DLL 2.4.0.9, HL7 Version 2.3 I'm building a little windows application that read HL7 messages and send them to an Interface system. Everything is working just fine but I would like to…
R. Martin
  • 87
  • 6
1
vote
1 answer

error when add multiple OBX segments to NHapi.Model.V25.Group.VXU_V04_ORDER

I am working on creating HL7 VXU V04 type message using NHapi V2.5. Below is the required message outcome( from NIST site:http://hl7v2-iz-testing.nist.gov/mu-immunization/) The issue I am running into is how to create four OBX…
1
vote
1 answer

How to create HL7 ACK messages in nHAPI

I have created an HL7 response message(ADR_19) by using nHAPI in C#. How can I add an ACK message in the response HL7 message?
Seraj
  • 11
  • 1
  • 3
1
vote
2 answers

How do i access the information in an hl7 message parsed with nHapi

I am learning how to use nHapi. As many have pointed out, there's not much documentation. Following this doc I've been able to parse a message using the library. But I can't figure out how to access that message using an object model (which is what…
bernie2436
  • 22,841
  • 49
  • 151
  • 244
0
votes
1 answer

NHapi incomplete messages encoded partially and without error?

In NHapi, I'm attempting to create a pipe-encoded ORM. When I parser.Encode() my populated message, only some of the segments are printed. Notably among the missing segments is MSH! I don't know for sure, but I believe that the encoder is skipping…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
0
votes
0 answers

How to assign ORC field to OBR field in nHapi

I am using nHapi v2.4 to build HL7 message. I would like to copy the Ordering provider from ORC segment to Ordering provider in OBR segment. I am trying to do it in the following way but it doesn't work: // I have created objects in the following…
0
votes
2 answers

NHapi PipeParser throws exception in Azure Function

I have a .net core 3.1 Azure Function which is using the latest version of NHApi (3.0.4). The following lines of code throws an exception when running locally: var pipeParser = new PipeParser(); var messageObject =…
auburg
  • 1,373
  • 2
  • 12
  • 22
0
votes
1 answer

Add non-standard segments with nhapi

My system has to generate an xml in which the node ORM_O01.ORDER_DETAIL must contain the node ORM_O01.OBRRQDRQ1RXOODSODT_SUPPGRP, because it has to communicate with Mirth. I am using the nhapi library version 2.5, in which this node does not contain…
Javier
  • 13
  • 2
0
votes
0 answers

Problems to Get Data using Tesers on nHapi hl7

Hello again dear community, i am using " Tersers " to get data from an hl7 v2 messeage, its a ADT_A08 messeage. Well the thing is that, im trying to get the PatientName with this: string test = terser.Get("PID-5-1"); and that return me nothing,…