public class EI extends CompositeDataType
The EI entity identifier defines a given entity within a specified series of identifiers.
Represents an HL7 EI data type. This data type has the following attributes:
1. Entity Identifier (ST)Optional
2. Namespace ID (IS)Optional
3. Universal ID (ST)Conditional
4. Universal ID Type (ID)Conditional
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 |
|---|
EI()
Default Constructor for EI
|
EI(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for EI class which takes two arguments and
sets the value in the respective member variable.
|
EI(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for EI class which takes five arguments and
sets the value in the respective member variable.
|
EI(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for EI class which takes six arguments and
sets the value in the respective member variable.
|
EI(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.
|
EI(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for EI class which takes five arguments and
sets the value in the respective member variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(IDataType objDataType)
The method checks for the equality with other EI DataType.
|
boolean |
equals(java.lang.Object objObject)
This method checks the equality of Object.
|
ST |
getEntityIdentifier()
Returns Entity Identifier.
|
IS |
getNamespaceId()
Returns Namespace Id.
|
ST |
getUniversalId()
Returns Universal Id.
|
ID |
getUniversalIdType()
Returns Universal Id Type.
|
void |
setEntityIdentifier(ST objST)
Sets the EntityIdentifier.
|
void |
setEntityIdentifier(java.lang.String strEntityIdentifier)
Sets the EntityIdentifier.
|
void |
setNamespaceId(IS objIS)
Sets the NamespaceId.
|
void |
setNamespaceId(java.lang.String strNamespaceId)
Sets the NamespaceId.
|
void |
setUniversalId(ST objST)
Sets the UniversalId.
|
void |
setUniversalId(java.lang.String strUniversalId)
Sets the UniversalId.
|
void |
setUniversalIdType(ID objID)
Sets the UniversalIdType.
|
void |
setUniversalIdType(java.lang.String strUniversalIdType)
Sets the UniversalIdType.
|
boolean |
validate()
The Method validates the Input value,and if validated properly then returns true.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, write, writeToXMLpublic EI()
public EI(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 EI(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 EI(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 EI(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 EI(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 setEntityIdentifier(java.lang.String strEntityIdentifier)
strEntityIdentifier - Specifies to be unique within the series of identifiers created by the
assigning authority, defined by a hierarchic designatorpublic void setEntityIdentifier(ST objST)
objST - Specifies to be unique within the series of identifiers created by the
assigning authority, defined by a hierarchic designatorpublic void setNamespaceId(java.lang.String strNamespaceId)
strNamespaceId - Specifies the assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.public void setNamespaceId(IS objIS)
objIS - Specifies the assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.public void setUniversalId(java.lang.String strUniversalId)
strUniversalId - Specifies a string formatted according to the scheme defined by the third component universal ID type.
It is intended to be unique over time within the UID type.public void setUniversalId(ST objST)
objST - Specifies a string formatted according to the scheme defined by the third component universal ID type.
It is intended to be unique over time within the UID type.public void setUniversalIdType(java.lang.String strUniversalIdType)
strUniversalIdType - Governs the interpretation of the Universal ID.public void setUniversalIdType(ID objID)
objID - Governs the interpretation of the Universal ID.public ST getEntityIdentifier()
public IS getNamespaceId()
public ST getUniversalId()
public ID getUniversalIdType()
public boolean validate()
throws InvalidDataTypeException
validate in interface IDataTypevalidate in class CompositeDataTypeInvalidDataTypeException - - if Invalid values is entered or Mandatory field is missing.public boolean equals(IDataType objDataType)
objDataType - conatains object of another DataType to be checked for equality.public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.