public class RP extends CompositeDataType
This data type transmits information about data stored on another system. It contains a reference pointer that uniquely identifies the data on the other system, the identity of the other system, and the type of data.
Represents an HL7 RP data type. This data type has the following attributes:
1. Pointer (ST)Optional
2. Application ID (HD)Optional
3. Type of Data (ID)Optional
4. Subtype (ID)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 |
|---|
RP()
Default Constructor for RP
|
RP(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for RP class which takes two arguments and
sets the value in the respective member variable.
|
RP(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for RP class which takes five arguments and
sets the value in the respective member variable.
|
RP(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for RP class which takes six arguments and
sets the value in the respective member variable.
|
RP(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for CQ class which takes four arguments and
sets the value in the respective member variable.
|
RP(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for RP 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.
|
HD |
getApplicationID()
Returns Application ID
|
ST |
getPointer()
Returns Pointer
|
ID |
getSubtype()
Returns Subtype
|
ID |
getTypeOfData()
Returns Type of Data
|
void |
setApplicationId(HD objApplicationId)
Sets the ApplicationId.
|
void |
setPointer(ST objST)
Sets the Pointer.
|
void |
setPointer(java.lang.String strPointer)
Sets the Pointer.
|
void |
setSubtype(ID objID)
Sets the Subtype.
|
void |
setSubtype(java.lang.String strSubtype)
Sets the Subtype.
|
void |
setTypeOfData(ID objID)
Sets the TypeOfData.
|
void |
setTypeOfData(java.lang.String strTypeOfData)
Sets the TypeOfData.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic RP()
public RP(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 RP(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 RP(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 RP(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 RP(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 setPointer(java.lang.String strPointer)
strPointer - A unique key assigned by the system that stores the data.public void setPointer(ST objST)
objST - A unique key assigned by the system that stores the data.public void setApplicationId(HD objApplicationId)
objApplicationId - A unique designator of the system that stores the data.public void setTypeOfData(java.lang.String strTypeOfData)
strTypeOfData - An ID data type that declares the general type of data.public void setTypeOfData(ID objID)
objID - An ID data type that declares the general type of data.public void setSubtype(java.lang.String strSubtype)
strSubtype - An ID data type declaring the format for the data of subcomponentpublic void setSubtype(ID objID)
objID - An ID data type declaring the format for the data of subcomponentpublic ST getPointer()
public HD getApplicationID()
public ID getTypeOfData()
public ID getSubtype()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.