public BaseComponent(Hl7Encoding encoding) : base(encoding) { }
public Message(IEnumerable <SegmentCollection> segments, Hl7Encoding encoding) : base(encoding) =>
public SimpleComponent(string value, Hl7Encoding encoding) : base(encoding) => this.value = value;
public BaseField(Hl7Encoding encoding) : base(encoding) { }
public ValueField(string value, Hl7Encoding encoding) : base(encoding) => this.value = value;
public DelimitersField(Hl7Encoding encoding) : base(encoding) { }
public string?Id => GetIdInternal(FieldList); //identifier of the segment (for most segment types). this is the second value in the segment after the name. internal BaseSegment(Hl7Encoding encoding, string name, IEnumerable <BaseField> fieldList) : base(encoding) => (Name, FieldList) = (name, fieldList.ToImmutableList());