-
Notifications
You must be signed in to change notification settings - Fork 163
Description
Hi,
I was trying to import HL7 message using Nhapi v28 based dlls but i was getting error while trying to access PID segment fields such as Address (XAD datatype) and telephone numbers (XTN datatype). I did debug the Nhapi v28 model code that is available on github and compared it with V25 code which was working fine and found some difference in the way constructors of type XAD and XTN are built.
XTN.cs file has constructor which initiliazes properties required for accessing the telephone number. See below property
data[0] = new XTN(message,"Telephone Number");
i'm guessing this was causing the stack overflow exception while trying to parse telephone number from HL7 message as above statement itself calling constructor of XTN repetitively. IN V25 it was
data[0] = new ST(message,"Telephone Number");
because of which it was working without any issue. Same is the case with XAD.cs which has below field in it's constructor
data[11] = new XAD(message,"Address Validity Range"); causing stackoverflow exception
as compared to XAD.cs of V25
data[11] = new DR(message,"Address Validity Range");
Is this the know issue or i'm missing something here?
Could anyone please help me in this case?
Thanks.