Class RCD

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class RCD extends AbstractComposite

Represents an HL7 RCD (row column definition) data type. This type consists of the following components:

  • segment field name (ST)
  • HL7 date type (ST)
  • maximum column width (NM)
See Also:
  • Constructor Details

    • RCD

      public RCD(Message message)
      Creates a new RCD type
  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getSegmentFieldName

      Returns segment field name (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getRcd1_SegmentFieldName

      Returns segment field name (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getHL7DateType

      public ST getHL7DateType()
      Returns HL7 date type (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getRcd2_HL7DateType

      Returns HL7 date type (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getMaximumColumnWidth

      Returns maximum column width (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getRcd3_MaximumColumnWidth

      Returns maximum column width (component 3). This is a convenience method that saves you from casting and handling an exception.