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 Data Type (ID)
  • 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.
    • getHL7DataType

      public ID getHL7DataType()
      Returns HL7 Data Type (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getRcd2_HL7DataType

      Returns HL7 Data 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.