public class RPT extends CompositeDataType
This data type should be used where it is necessary to define the frequency at which an event is to take place.
Represents an HL7 RPT data type. This data type has the following attributes:
1. Repeat Pattern Code (CWE)Required
2. Calendar Alignment (ID)Optional
3. Phase Range Begin Value (NM)Optional
4. Phase Range End Value (NM)Optional
5. Period Quantity (NM)Optional
6. Period Units (CWE)Conditional
7. Institution Specified Time (ID)Optional
8. Event (ID)Optional
9. Event Offset Quantity (NM)Optional
10. Event Offset Units (CWE)Conditional
11. General Timing Specification (GTS)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 |
|---|
RPT()
Default Constructor for RPT
|
RPT(int iComponentType,
IDataTypeMap objIDataTypeMap)
Constructor for RPT class which takes two arguments and
sets the value in the respective member variable.
|
RPT(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
IDataTypeMap objIDataTypeMap)
Constructor for RPT class which takes five arguments and
sets the value in the respective member variable.
|
RPT(int iComponentType,
int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int ITableNo,
IDataTypeMap objIDataTypeMap)
Constructor for RPT class which takes six arguments and
sets the value in the respective member variable.
|
RPT(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.
|
RPT(int iMinLength,
int iMaxLength,
java.lang.String strCLength,
int iTableNo,
int iComponentType)
Constructor for RPT 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 |
getCalendarAlignment()
Returns Calendar Alignment
|
ID |
getEvent()
Returns Event
|
NM |
getEventOffsetQuantity()
Returns Event Offset Quantity
|
CWE |
getEventOffsetUnits()
Returns Event Offset Units
|
GTS |
getGeneralTimingSpecification()
Returns General Timing Specification
|
ID |
getInstitutionSpecifiedTime()
Returns Institution Specified Time
|
NM |
getPeriodQuantity()
Returns Period Quantity
|
CWE |
getPeriodUnits()
Returns Period Units
|
NM |
getPhaseRangeBeginValue()
Returns Phase Range Begin Value
|
NM |
getPhaseRangeEndValue()
Returns Phase Range End Value
|
CWE |
getRepeatPatternCode()
Returns Repeat Pattern Code
|
void |
setCalendarAlignment(ID objID)
Sets the CalendarAlignment.
|
void |
setCalendarAlignment(java.lang.String strCalendarAlignment)
Sets the CalendarAlignment.
|
void |
setEvent(ID objID)
Sets the Event.
|
void |
setEvent(java.lang.String strEvent)
Sets the Event.
|
void |
setEventOffsetQuantity(NM objNM)
Sets the EventOffsetQuantity.
|
void |
setEventOffsetQuantity(java.lang.String strEventOffsetQuantity)
Sets the EventOffsetQuantity.
|
void |
setEventOffsetUnits(CWE objCWE)
Sets the EventOffsetUnits.
|
void |
setEventOffsetUnits(java.lang.String strEventOffsetUnits)
Sets the EventOffsetUnits.
|
void |
setGeneralTimingSpecification(GTS objGTS)
Sets the GeneralTimingSpecification.
|
void |
setGeneralTimingSpecification(java.lang.String strGeneralTimingSpecification)
Sets the GeneralTimingSpecification.
|
void |
setInstitutionSpecifiedTime(ID objID)
Sets the InstitutionSpecifiedTime.
|
void |
setInstitutionSpecifiedTime(java.lang.String strInstitutionSpecifiedTime)
Sets the InstitutionSpecifiedTime.
|
void |
setPeriodQuantity(NM objNM)
Sets the PeriodQuantity.
|
void |
setPeriodQuantity(java.lang.String strPeriodQuantity)
Sets the PeriodQuantity.
|
void |
setPeriodUnits(CWE objCWE)
Sets the PeriodUnits.
|
void |
setPeriodUnits(java.lang.String strPeriodUnits)
Sets the PeriodUnits.
|
void |
setPhaseRangeBeginValue(NM objNM)
Sets the PhaseRangeBeginValue.
|
void |
setPhaseRangeBeginValue(java.lang.String strPhaseRangeBeginValue)
Sets the PhaseRangeBeginValue.
|
void |
setPhaseRangeEndValue(NM objNM)
Sets the PhaseRangeEndValue.
|
void |
setPhaseRangeEndValue(java.lang.String strPhaseRangeEndValue)
Sets the PhaseRangeEndValue.
|
void |
setRepeatPatternCode(CWE objRepeatPatternCode)
Sets the RepeatPatternCode.
|
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 RPT()
public RPT(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 RPT(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 RPT(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 RPT(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 RPT(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 setRepeatPatternCode(CWE objRepeatPatternCode)
objRepeatPatternCode - A code representing the repeat pattern defined by the other components of this data type.public void setCalendarAlignment(java.lang.String strCalendarAlignment)
strCalendarAlignment - Specifies an alignment of the repetition to a calendarpublic void setCalendarAlignment(ID objID)
objID - Specifies an alignment of the repetition to a calendarpublic void setPhaseRangeBeginValue(java.lang.String strPhaseRangeBeginValue)
strPhaseRangeBeginValue - Used for Calendar aligned repeat patterns to determine the
amount of time from the beginning of particular RPT-2 (Calendar Alignment)
to the beginning of the phase.public void setPhaseRangeBeginValue(NM objNM)
strPhaseRangeBeginValue - Used for Calendar aligned repeat patterns to determine the
amount of time from the beginning of particular RPT-2 (Calendar Alignment)
to the beginning of the phase.public void setPhaseRangeEndValue(java.lang.String strPhaseRangeEndValue)
strPhaseRangeEndValue - Used for Calendar aligned repeat patterns to determine the amount
of time from the beginning of particular RPT-2 (Calendar Alignment)
to the end of the phase.public void setPhaseRangeEndValue(NM objNM)
objNM - Used for Calendar aligned repeat patterns to determine the amount
of time from the beginning of particular RPT-2 (Calendar Alignment)
to the end of the phase.public void setPeriodQuantity(java.lang.String strPeriodQuantity)
strPeriodQuantity - A time duration specifying the frequency at which the periodic interval repeats.public void setPeriodQuantity(NM objNM)
objNM - A time duration specifying the frequency at which the periodic interval repeats.public void setPeriodUnits(java.lang.String strPeriodUnits)
strPeriodUnits - Defines the units used for RPT-5 (Period Quantity).public void setPeriodUnits(CWE objCWE)
objCWE - Defines the units used for RPT-5 (Period Quantity).public void setInstitutionSpecifiedTime(java.lang.String strInstitutionSpecifiedTime)
strInstitutionSpecifiedTime - a code that indicates whether the exact timing is up to the party executing the schedulepublic void setInstitutionSpecifiedTime(ID objID)
objID - a code that indicates whether the exact timing is up to the party executing the schedulepublic void setEvent(java.lang.String strEvent)
strEvent - A code for a common (periodical) activity of daily living.public void setEvent(ID objID)
objID - A code for a common (periodical) activity of daily living.public void setEventOffsetQuantity(java.lang.String strEventOffsetQuantity)
strEventOffsetQuantity - An interval that marks the offsets for the beginning, width and end of the
event-related periodic interval measured from the time each such event actually occurred.public void setEventOffsetQuantity(NM objNM)
strEventOffsetQuantity - An interval that marks the offsets for the beginning, width and end of the
event-related periodic interval measured from the time each such event actually occurred.public void setEventOffsetUnits(java.lang.String strEventOffsetUnits)
strEventOffsetUnits - Defines the units used for RPT-9 (Event Offset Quantity).public void setEventOffsetUnits(CWE objCWE)
objCWE - Defines the units used for RPT-9 (Event Offset Quantity).public void setGeneralTimingSpecification(java.lang.String strGeneralTimingSpecification)
strGeneralTimingSpecification - The General Timing Specification as defined by the Version 3 Data Types document.public void setGeneralTimingSpecification(GTS objGTS)
objGTS - The General Timing Specification as defined by the Version 3 Data Types document.public CWE getRepeatPatternCode()
public ID getCalendarAlignment()
public NM getPhaseRangeBeginValue()
public NM getPhaseRangeEndValue()
public NM getPeriodQuantity()
public CWE getPeriodUnits()
public ID getInstitutionSpecifiedTime()
public ID getEvent()
public NM getEventOffsetQuantity()
public CWE getEventOffsetUnits()
public GTS getGeneralTimingSpecification()
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.