protected override void FullyParse() { if (!string.IsNullOrEmpty(Value)) { var segments = Value.Split(Encoding.SegmentSeparator, StringSplitOptions.None).ToList(); segmentsInternal.Clear(); foreach (var segment in segments) { segmentsInternal.Add(Hl7Segment.Parse(segment, Encoding)); } } Value = null; IsParsed = true; }
public static Hl7Message operator +(Hl7Message message, string segment) { message += Hl7Segment.Parse(segment, message.Encoding); return(message); }