hl7hapinhapi

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 there are no segment defined to parse it, is it possible to use Zxx segment?

Regards,

Raaj


Solution

  • Have a look at how the following unit test parses a message with a custom Z segment:

    https://github.com/duaneedwards/nHapi/blob/master/NHapi20/NHapi.NUnit/CustomZSegmentTest.cs

    You'll have to poke around the code / classes to see how it works and there will be a bit of setup, this won't just work with the message you have as is.