Class RDF

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class RDF extends AbstractSegment

Represents an HL7 RDF message segment (Table Row Definition). This segment has the following fields:

  • RDF-1: Number of Columns per Row (NM)
  • RDF-2: Column Description (RCD) repeating
See Also:
  • Constructor Details

  • Method Details

    • getNumberOfColumnsPerRow

      Returns RDF-1: "Number of Columns per Row" - creates it if necessary
    • getRdf1_NumberOfColumnsPerRow

      Returns RDF-1: "Number of Columns per Row" - creates it if necessary
    • getColumnDescription

      Returns all repetitions of Column Description (RDF-2).
    • getRdf2_ColumnDescription

      Returns all repetitions of Column Description (RDF-2).
    • getColumnDescriptionReps

      Returns a count of the current number of repetitions of Column Description (RDF-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getColumnDescription

      public RCD getColumnDescription(int rep)
      Returns a specific repetition of RDF-2: "Column Description" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getRdf2_ColumnDescription

      public RCD getRdf2_ColumnDescription(int rep)
      Returns a specific repetition of RDF-2: "Column Description" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getRdf2_ColumnDescriptionReps

      Returns a count of the current number of repetitions of Column Description (RDF-2). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertColumnDescription

      public RCD insertColumnDescription(int rep) throws HL7Exception
      Inserts a repetition of RDF-2: "Column Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertRdf2_ColumnDescription

      Inserts a repetition of RDF-2: "Column Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeColumnDescription

      public RCD removeColumnDescription(int rep) throws HL7Exception
      Removes a repetition of RDF-2: "Column Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeRdf2_ColumnDescription

      Removes a repetition of RDF-2: "Column Description" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment