public class VH extends CompositeDataType
This data type contains the hours when a patient location is open for visiting.
Represents an HL7 VH data type. This data type has the following attributes:
1. Start Day Range (ID)Optional
2. End Day Range (ID)Optional
3. Start Hour Range (TM)Optional
4. End Hour Range (TM)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 |
|---|
VH()
Default Constructor for VH
|
VH(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for VH class which takes two arguments and
sets the value in the respective member variable.
|
VH(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for VH class which takes five arguments and
sets the value in the respective member variable.
|
VH(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for VH class which takes six arguments and
sets the value in the respective member variable.
|
VH(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iComponentType)
Constructor for VH class which takes four arguments and
sets the value in the respective member variable.
|
VH(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for VH 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.
|
ID |
getEndDayRange()
Returns End Day Range
|
TM |
getEndHourRange()
Returns End Hour Range
|
ID |
getStartDayRange()
Returns Start Day Range
|
TM |
getStartHourRange()
Returns Start Hour Range
|
void |
setEndDayRange(ID objID)
Sets the EndDayRange.
|
void |
setEndDayRange(java.lang.String strEndDayRange)
Sets the EndDayRange.
|
void |
setEndHourRange(java.lang.String strEndHourRange)
Sets the EndHourRange.
|
void |
setEndHourRange(TM objTM)
Sets the EndHourRange.
|
void |
setStartDayRange(ID objID)
Sets the StartDayRange.
|
void |
setStartDayRange(java.lang.String strStartDayRange)
Sets the StartDayRange.
|
void |
setStartHourRange(java.lang.String strStartHourRange)
Sets the StartHourRange.
|
void |
setStartHourRange(TM objTM)
Sets the StartHourRange.
|
copy, dumpDataType, getAttributes, getDataTypeName, getLength, getValue, isPrimitive, read, setValue, validate, write, writeToXMLpublic VH()
public VH(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 VH(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 VH(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 VH(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 VH(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 setStartDayRange(java.lang.String strStartDayRange)
strStartDayRange - Starting day of visiting hours range.public void setStartDayRange(ID objID)
objID - Starting day of visiting hours range.public void setEndDayRange(java.lang.String strEndDayRange)
strEndDayRange - Ending day of visiting hours range.public void setEndDayRange(ID objID)
objID - Ending day of visiting hours range.public void setStartHourRange(java.lang.String strStartHourRange)
strStartHourRange - Starting hour on starting day of visiting hours range.public void setStartHourRange(TM objTM)
objTM - Starting hour on starting day of visiting hours range.public void setEndHourRange(java.lang.String strEndHourRange)
strEndHourRange - Ending hour on ending day of visiting hours range.public void setEndHourRange(TM objTM)
objTM - Ending hour on ending day of visiting hours range.public ID getStartDayRange()
public ID getEndDayRange()
public TM getStartHourRange()
public TM getEndHourRange()
public boolean equals(java.lang.Object objObject)
equals in class java.lang.ObjectobjObject - object of Object class.