public class RDF extends Segment
The RDF segment defines the content of the row data segments (RDT) in the tabular response (RTB).
Represents an HL7 RDF message segment. This segment has the following fields:
RDF-1: Number of Columns per Row (NM)Required
RDF-2: Column Description (RCD)Required
This class provides mechanism to validate message against HL7 v 2.8.2 standard. The class provides accessors & mutators for the elements mentioned above. The class has validate method which validates Message against HL7 v 2.8.2 standard.
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
RDF()
Constucts the RDF segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnDescription(RCD objtempColumnDescription)
Set the Column Description.
|
void |
addColumnDescription(java.lang.String strSegmentFieldName,
java.lang.String strHL7DataType,
java.lang.String strMaxColumnWidth)
Set the Column Description.
|
ISingleCollection<RCD> |
getColumnDescription()
Retrieves the Column Description.
|
NM |
getNumberofColumnsperRow()
Retrieves the Number of Columns per Row.
|
void |
setColumnDescription(ISingleCollection<RCD> objColumnDescriptionList)
Set the Column Description.
|
void |
setNumberofColumnsperRow(NM objnumberofColumnsperRow)
Set the Number of Columns per Row.
|
void |
setNumberofColumnsperRow(java.lang.String strPolicyLimitDays)
Set the Number of Columns per Row.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic ISingleCollection<RCD> getColumnDescription()
public NM getNumberofColumnsperRow()
public void addColumnDescription(java.lang.String strSegmentFieldName,
java.lang.String strHL7DataType,
java.lang.String strMaxColumnWidth)
strSegmentFieldName - Identifies the field occupying the column.strHL7DataType - The two or three character HL7 data type.strMaxColumnWidth - The maximum width of the column, as dictated by the responding system.public void addColumnDescription(RCD objtempColumnDescription)
objtempColumnDescription - object of ColumnDescriptionpublic void setColumnDescription(ISingleCollection<RCD> objColumnDescriptionList)
objColumnDescriptionList - List of Column Descriptionpublic void setNumberofColumnsperRow(java.lang.String strPolicyLimitDays)
strPolicyLimitDays - Specifies the maximum number of days that the insurance policy will cover.public void setNumberofColumnsperRow(NM objnumberofColumnsperRow)
objnumberofColumnsperRow - object of NumberofColumnsperRowpublic boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.