Represents a generic field in a segment.

Namespace: Mergecom.HL7
Assembly: Mergecom.HL7 (in Mergecom.HL7.dll) Version: 4.3.0.0

Syntax

C#
public class HL7Field
Visual Basic
Public Class HL7Field
Visual C++
public ref class HL7Field

Remarks

The toolkit provides specialized classes for each HL7 defined data type to allow setting/reading components by name. This class provides the base functionality for managing the components of the field.

The components of the field are HL7Field objects as well and are referenced by the methods of this class by the component's index number. The first component has the index = 1. Components that are not set, are considered empty and retrieving such component's value results in empty value. For simple data types, fields that do not have components, the value of the field is a string.

Instances of this class should be created through the CreateField(String) method and the CreateField(String, HL7Toolkit..::..HL7Version) method for versioned segments or using one of the specialized classes defined in the "Mergecom.HL7.Fields" namespace.

Inheritance Hierarchy

System..::..Object
  Mergecom.HL7..::..HL7Field

See Also