public class RI extends CompositeDataType
This data type contains the interval between repeated services.
Represents an HL7 RI data type. This data type has the following attributes:
1. Repeat Pattern (CWE)Optional
2. Explicit Time Interval (ST)Optional
This class provides accessors & mutators for the elements mentioned above. This class override the equal method, to check whether some other object is "equal to" this one.
User can also create Data Type through DataElementFactory
| Constructor and Description |
|---|
RI()
Default Constructor for RI
|
RI(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for RI class which takes two arguments and
sets the value in the respective member variable.
|
RI(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for RI class which takes five arguments and
sets the value in the respective member variable.
|
RI(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for RI class which takes six arguments and
sets the value in the respective member variable.
|
RI(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for RI class which takes four arguments and
sets the value in the respective member variable.
|
RI(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for RI class which takes five arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objObject)
This method checks the equality of Object.
|
ST |
getExplicitTimeInterval()
Returns Explicit Time Interval
|
IS |
getRepeatPattern()
Returns Repeat Pattern
|
void |
setExplicitTimeInterval(ST objST)
Sets the ExplicitTimeInterval.
|
void |
setExplicitTimeInterval(java.lang.String strExplicitTimeInterval)
Sets the ExplicitTimeInterval.
|
void |
setRepeatPattern(CWE objCWE)
Sets the RepeatPattern.
|
void |
setRepeatPattern(java.lang.String strRepeatPattern)
Sets the RepeatPattern.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic RI()
public RI(int iMinLength, int iMaxLength, java.lang.String strCLength, int iComponentType) throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public RI(int iMinLength, int iMaxLength, java.lang.String strCLength, int iTableNo, int iComponentType) throws InvalidComponentTypeException
iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public RI(int iComponentType, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.InvalidComponentTypeException - - if Component Type is not specified or valid.public RI(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.InvalidComponentTypeException - - if Component Type is not specified or valid.public RI(int iComponentType, int iMinLength, int iMaxLength, java.lang.String strCLength, int ITableNo, IDataTypeMap objIDataTypeMap)
objIDataTypeMap - object of Data Type Map.iComponentType - The Type of the component i.e Component or a subcomponent.iMinLength - The Minimum length the DataType can have.iMaxLength - The Maximum length the DataType can have.iCLength - The Conformance length the DataType can have.iTableNo - The Table number to which the value for the component is specified.InvalidComponentTypeException - - if Component Type is not specified or valid.public void setRepeatPattern(java.lang.String strRepeatPattern)
strRepeatPattern - The repeating frequency with which the treatment is to be administered.public void setRepeatPattern(CWE objCWE)
objCWE - The repeating frequency with which the treatment is to be administered.public void setExplicitTimeInterval(java.lang.String strExplicitTimeInterval)
strExplicitTimeInterval - This component explicitly lists the actual times referenced
by the code in the first componentpublic void setExplicitTimeInterval(ST objST)
objST - This component explicitly lists the actual times referenced
by the code in the first componentpublic IS getRepeatPattern()
public ST getExplicitTimeInterval()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.