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
When you attempt to get subcomponent 1 and there is no subcomponent delimiter, the value is truncated to just the first character. For example, given the HL7 segment:
NME|foo^bar|
performing the following operation:
segment.getComponent(1,2,1)
returns b as opposed to bar.
If the segment is instead:
NME|foo^bar&|
then you get bar as expected.
This is a bit of a corner case since any subcomponent other than the first would require the subcomponent delimiter.
This example may not technically comply with the HL7 standard (I don't actually know), but I have seen large vendors send the first example and they are not willing to change.
The text was updated successfully, but these errors were encountered:
When you attempt to get subcomponent 1 and there is no subcomponent delimiter, the value is truncated to just the first character. For example, given the HL7 segment:
performing the following operation:
returns
b
as opposed tobar
.If the segment is instead:
then you get
bar
as expected.This is a bit of a corner case since any subcomponent other than the first would require the subcomponent delimiter.
This example may not technically comply with the HL7 standard (I don't actually know), but I have seen large vendors send the first example and they are not willing to change.
The text was updated successfully, but these errors were encountered: