Closed zigh-code closed 2 years ago
@zigh-code do you could you provide some more information? sample hl7, hl7v2 version, perhaps even a unit test or code example?
I'm using the last version of the package. The version of Hl7 in my case is 2.5 (string data),
If I try for the TQ1 segment, it work
But when I try with ODS, there is an issue
Data Test:
string omdText = "MSH|^~\\&|EDITE|TEST|TEST|TEST|20210519141200||OMD^O03^OMD_O03|202105191412001|P|2.5|||||FRA|8859/1\r" +
"PID|1|465 306 5961||407623|Wood^Patrick^^^MR||19700101|1|||High Street^^Oxford^^Ox1 4DP~George St ^^Oxford^^Ox1 5AP|||||||\r" +
"ORC|NW|1254481^EDITEUR|||||^^^20210519143000||20210519143000|611014333^PRESCRIPTEUR^TEST1^^^^^^EDITEUR^^^^ADELI~10002129790^PRESCRIPTEUR^TEST1 ^^^^^^EDITEUR ^^^^RPPS~1027^PRESCRIPTEUR^TEST1^^^^^^EDITEUR^^^^EI||||||||||||||||||||\r" +
"TQ1|1||||||20210519143000|\r" +
"ODS|R||SANSSEL^Sans sel^EDITEUR|";
@zigh-code thanks for the extra info, will take a look when I can.
@zigh-code sorry for the long delay in getting back to you, I think I found the issue, its related to how java and dotnet use regex slightly differently so basically a bug in the port.
I will hopefully have a PR for this in the coming days.
@zigh-code I have put up a PR to fix this and included a unit test to prove it works. https://github.com/nHapiNET/nHapi/pull/340/files#diff-df1d6e800460c0e8224b40b0c6417ef59b0ab102f231d72a4f38e635921cbe4aR239 is the fix
@zigh-code this fix will go out in the next release, hoping to get a few more changes in first though
@zigh-code this change is in the latest 3.2.0
version.
Describe the bug
Cannot get ODS segments in ORDER_DIET group using terser, when I write a full path
Screenshots
Sample HL7 /.ORDER_DIET(0)/DIET/ODS(0)-1