public class ED extends CompositeDataType
This data type transmits encapsulated data from a source system to a destination system. It contains the identity of the source system, the type of data, the encoding method of the data, and the data itself
Represents an HL7 ED data type. This data type has the following attributes:
1. Source Application (HD)Optional
2. Type of Data (ID)Required
3. Data Subtype (ID)Optional
4. Encoding (ID)Required
5. Data (TX)Required
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 |
|---|
ED()
Default Constructor for ED
|
ED(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for ED class which takes two arguments and
sets the value in the respective member variable.
|
ED(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for ED class which takes five arguments and
sets the value in the respective member variable.
|
ED(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for ED class which takes six arguments and
sets the value in the respective member variable.
|
ED(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for ED class which takes four arguments and
sets the value in the respective member variable.
|
ED(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for ED 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.
|
TX |
getData()
Returns Data
|
ID |
getDataSubtype()
Returns Data Subtype
|
ID |
getEncoding()
Returns Encoding
|
HD |
getSourceApplication()
Returns Source Application
|
ID |
getTypeOfData()
Returns Type of Data
|
void |
setData(java.lang.String strData)
Sets the Data.
|
void |
setData(TX objTX)
Sets the Data.
|
void |
setDataSubtype(ID objID)
Sets the DataSubtype.
|
void |
setDataSubtype(java.lang.String strDataSubtype)
Sets the DataSubtype.
|
void |
setEncoding(ID objID)
Sets the Encoding.
|
void |
setEncoding(java.lang.String strEncoding)
Sets the Encoding.
|
void |
setSourceApplication(HD objSourceApplication)
Sets the SourceApplication.
|
void |
setTypeOfData(ID objID)
Sets the TypeOfData.
|
void |
setTypeOfData(java.lang.String strTypeOfData)
Sets the TypeOfData.
|
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 ED()
public ED(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 ED(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 ED(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 ED(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 ED(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 setSourceApplication(HD objSourceApplication)
objSourceApplication - Specifies A unique name that identifies the system which was the source of the data.public void setTypeOfData(java.lang.String strTypeOfData)
strTypeOfData - Specifies an ID data type that declares the general type of data.public void setTypeOfData(ID objID)
objID - Specifies an ID data type that declares the general type of data.public void setDataSubtype(java.lang.String strDataSubtype)
strDataSubtype - Specifies an ID data type declaring the format for the data of subcomponent public void setDataSubtype(ID objID)
objID - Specifies an ID data type declaring the format for the data of subcomponent public void setEncoding(java.lang.String strEncoding)
strEncoding - Specifies the type of encoding used to represent successive octets of binary data
as displayable ASCII characters. [Refer to HL7 Table 0299 - Encoding]
Valid values A,Hex,Base64.public void setEncoding(ID objID)
objID - Specifies the type of encoding used to represent successive octets of binary data
as displayable ASCII characters. [Refer to HL7 Table 0299 - Encoding]
Valid values A,Hex,Base64.public void setData(java.lang.String strData)
strData - Specifies displayable ASCII characters which constitute the data to be sent from source
application to destination application.public void setData(TX objTX)
objTX - Specifies displayable ASCII characters which constitute the data to be sent from source
application to destination application.public HD getSourceApplication()
public ID getTypeOfData()
public ID getDataSubtype()
public ID getEncoding()
public TX getData()
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(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.