You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The datatype for OBX-5 is specified in OBX-2, the first commit fixes an issue when the specified datatype from OBX-2 could not be constructed for OBX-5 because the required constructors were missing.
fixes#62, fixes#85, fixes#133
XAD, XON, XTN datatypes for hl7 v2.7.1 up to 2.8.1 have incorrect recursive datatypes leading to StackOverflowException.
The second commit fixes this by correcting those datatypes.
fixes#86, fixes#109
The OBX-5 datatype for hl7 v2.1 is incorrectly set to ST when it should be Varies. The last commit fixes this.
fixes#45
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
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
Is this the know issue or i'm missing something here?
Could anyone please help me in this case?
Thanks.
The text was updated successfully, but these errors were encountered: