nhapi

Unable to Parse Multiple IN1 Segment in HL7 using HAPI TERSER

狂风中的少年 提交于 2019-12-14 02:03:29
问题 I am receiving HL7 messages version 2.5.1. MSH|.. PID|.. PV1|.. ORC|.. IN1|1|... IN1|2|.... So in the above example IN1 is repeating, however when i try to Parse the second IN1 segment with TERSER it throws an exception "Can't create repetition #1 of Structure IN1 - this Structure is non-repeating" . This is what i have tried so far string insurance = terser.Get("/.INSURANCE/.IN1(0)-1"); // Works fine string insurance = terser.Get("/.INSURANCE/.IN1(1)-1"); // Throws exception string insurance

OBR Repitions on HL7 ORM_o01 nHapi

吃可爱长大的小学妹 提交于 2019-12-08 05:52:04
问题 Hi I am trying to parse HL7 ORM_o01 Messages but I get an error stating that I cannot get OBR repititions. I'm parsing using HL7 2.3 and this format according to the standard does allow OBR repitions. Below is the HL7 message I'm trying to parse using nHapi . Is there any way to remove the repitition limit? MSH|^~\&|TEST|LAB|FFLEX|TEST|20030723120318||ORM^O01|163|T|2.3||||NE|NE PID||36996-13|36996-13||WHITE^TEST^W^^|SMITH|19441215|F|NONE||1540 ECONSTITUTION^^LONG BEACH^CA^90001^^^||(480)795

Parsing an HL7 without a priori messageType knowledge

╄→尐↘猪︶ㄣ 提交于 2019-12-06 05:13:44
问题 In NHapi, how can we parse a message if we don't know what messageType (MSH#9) it is? var parser = new NHapi.Base.Parser.PipeParser(); IMessage parsedMessage = parser.Parse(SampleMessage); parsedMessage is a NHapi.Base.Model.GenericMessage.V25 at runtime and I can't seem to read in the MSH header to read the MessageType field and then re-parse(?) the message as that message type. I'm frustrated by the lack of documentation and examples. Perhaps I'm very far off base. I am very new to HL7, but

Parsing an HL7 without a priori messageType knowledge

谁说我不能喝 提交于 2019-12-04 09:52:16
In NHapi, how can we parse a message if we don't know what messageType (MSH#9) it is? var parser = new NHapi.Base.Parser.PipeParser(); IMessage parsedMessage = parser.Parse(SampleMessage); parsedMessage is a NHapi.Base.Model.GenericMessage.V25 at runtime and I can't seem to read in the MSH header to read the MessageType field and then re-parse(?) the message as that message type. I'm frustrated by the lack of documentation and examples. Perhaps I'm very far off base. I am very new to HL7, but I thought I was doing well understanding the HL7 spec until I tried using NHapi. Mike Stonis