public class TQ1 extends Segment
This segment is used to specify the complex timing of events and actions such as those that occur in order management and scheduling systems. This segment determines the quantity, frequency, priority, and timing of a service.
Represents an HL7 TQ1 message segment. This segment has the following fields:
TQ1-1: Set ID - TQ1 (SI)Optional
TQ1-2: Quantity (CQ)Optional
TQ1-3: Repeat Pattern (RPT)Optional
TQ1-4: Explicit Time (TM)Optional
TQ1-5: Relative Time and Units (CQ)Optional
TQ1-6: Service Duration (CQ)Optional
TQ1-7: Start date/time (DTM)Optional
TQ1-8: End date/time (DTM)Optional
TQ1-9: Priority (CWE)Optional
TQ1-10: Condition text (TX)Optional
TQ1-11: Text instruction (TX)Optional
TQ1-12: Conjunction (ID)Conditional
TQ1-13: Occurrence duration (CQ)Optional
TQ1-14: Total occurrence's (NM)Optional
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
TQ1()
Constructs the TQ1 segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExplicitTime(java.lang.String strExplicitTime)
Add the Explicit Time.
|
void |
addExplicitTime(TM objexplicitTime)
Add the Explicit Time.
|
void |
addPriority(CWE objpriority)
Add the Priority.
|
void |
addPriority(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
Add the Priority.
|
void |
addRelativeTimeAndUnits(CQ objrelativeTimeAndUnits)
Add the Relative Time And Units.
|
void |
addRelativeTimeAndUnits(java.lang.String strQuantity,
CWE objUnits)
Add the Relative Time And Units.
|
void |
addRepeatPattern(CWE objRepeatPatternCode,
java.lang.String strCalendarAlignment,
java.lang.String strPhaseRangeBeginValue,
java.lang.String strPhaseRangeEndValue,
java.lang.String strPeriodQuantity,
java.lang.String strPeriodUnits,
java.lang.String strInstitutionSpecifiedTime,
java.lang.String strEvent,
java.lang.String strEventOffsetQuantity,
java.lang.String strEventOffsetUnits,
java.lang.String strGeneralTimingSpecification)
Add the Repeat Pattern.
|
void |
addRepeatPattern(RPT objrepeatPattern)
Add the Repeat Pattern.
|
TX |
getConditionText()
Retrieves the Condition Text.
|
ID |
getConjunction()
Retrieves the Conjunction.
|
DTM |
getEndDateTime()
Retrieves the End Date Time.
|
ISingleCollection<TM> |
getExplicitTime()
Retrieves the Explicit Time.
|
CQ |
getOccurrenceDuration()
Retrieves the Occurrence Duration.
|
ISingleCollection<CWE> |
getPriority()
Retrieves the Priority.
|
CQ |
getQuantity()
Retrieves the Quantity.
|
ISingleCollection<CQ> |
getRelativeTimeAndUnits()
Retrieves the Relative Time And Units.
|
ISingleCollection<RPT> |
getRepeatPattern()
Retrieves the Repeat Pattern.
|
CQ |
getServiceDuration()
Retrieves the Service Duration.
|
SI |
getSetID_TQ1()
Retrieves the Set ID TQ1.
|
DTM |
getStartDateTime()
Retrieves the Start Date Time.
|
TX |
getTextInstruction()
Retrieves the Text Instruction.
|
NM |
getTotalOccurrences()
Retrieves the Total Occurrences.
|
void |
setConditionText(java.lang.String strConditionText)
Set the Condition Text.
|
void |
setConditionText(TX objconditionText)
Set the Condition Text.
|
void |
setConjunction(ID objconjunction)
Set the Conjunction.
|
void |
setConjunction(java.lang.String strConjunction)
Set the Conjunction.
|
void |
setEndDateTime(DTM objendDateTime)
Set the End Date Time.
|
void |
setEndDateTime(java.lang.String strTime)
Set the End Date Time.
|
void |
setExplicitTime(ISingleCollection<TM> objExplicitTime)
Set the Explicit Time.
|
void |
setOccurrenceDuration(CQ objoccurrenceDuration)
Set the Occurrence Duration.
|
void |
setOccurrenceDuration(java.lang.String strQuantity,
CWE objUnits)
Set the Occurrence Duration.
|
void |
setPriority(ISingleCollection<CWE> objPriority)
Set the Priority.
|
void |
setQuantity(CQ objsetID_TQ1)
Set the Quantity.
|
void |
setQuantity(java.lang.String strQuantity,
CWE objUnits)
Set the Quantity.
|
void |
setRelativeTimeAndUnits(ISingleCollection<CQ> objRelativeTimeAndUnits)
Set the Relative Time And Units.
|
void |
setRepeatPattern(ISingleCollection<RPT> objRepeatPattern)
Set the Repeat Pattern.
|
void |
setServiceDuration(CQ objserviceDuration)
Set the Service Duration.
|
void |
setServiceDuration(java.lang.String strQuantity,
CWE objUnits)
Set the Service Duration.
|
void |
setSetID_TQ1(SI objsetID_TQ1)
Set the Set ID TQ1.
|
void |
setSetID_TQ1(java.lang.String strSetID_TQ1)
Set the Set ID TQ1.
|
void |
setStartDateTime(DTM objstartDateTime)
Set the Start Date Time.
|
void |
setStartDateTime(java.lang.String strTime)
Set the Start Date Time.
|
void |
setTextInstruction(java.lang.String strTextInstruction)
Set the Text Instruction.
|
void |
setTextInstruction(TX objtextInstruction)
Set the Text Instruction.
|
void |
setTotalOccurrences(NM objtotalOccurrences)
Set the Total Occurrences.
|
void |
setTotalOccurrences(java.lang.String strTotalOccurrences)
Set the Total Occurrences.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetID_TQ1()
public CQ getQuantity()
public ISingleCollection<RPT> getRepeatPattern()
public ISingleCollection<TM> getExplicitTime()
public ISingleCollection<CQ> getRelativeTimeAndUnits()
public CQ getServiceDuration()
public DTM getStartDateTime()
public DTM getEndDateTime()
public TX getConditionText()
public TX getTextInstruction()
public ID getConjunction()
public CQ getOccurrenceDuration()
public NM getTotalOccurrences()
public ISingleCollection<CWE> getPriority()
public void setSetID_TQ1(java.lang.String strSetID_TQ1)
strSetID_TQ1 - Specifies sequence number for timing specification transmitted.public void setSetID_TQ1(SI objsetID_TQ1)
objsetID_TQ1 - Object of Set ID TQ1.public void setQuantity(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void setQuantity(CQ objsetID_TQ1)
objsetID_TQ1 - Object of Quantity.public void addRepeatPattern(CWE objRepeatPatternCode, java.lang.String strCalendarAlignment, java.lang.String strPhaseRangeBeginValue, java.lang.String strPhaseRangeEndValue, java.lang.String strPeriodQuantity, java.lang.String strPeriodUnits, java.lang.String strInstitutionSpecifiedTime, java.lang.String strEvent, java.lang.String strEventOffsetQuantity, java.lang.String strEventOffsetUnits, java.lang.String strGeneralTimingSpecification)
objRepeatPatternCode - Represents the repeat pattern defined by the other components of this data type. Refer to User-defined Table 335 - Repeat Pattern for suggested values.strCalendarAlignment - Use as CalendarAlignment.strPhaseRangeBeginValue - Use as PhaseRangeBeginValuestrPhaseRangeEndValue - Use as PhaseRangeEndValue.strPeriodQuantity - Use as PeriodQuantity.strPeriodUnits - Use as PeriodUnits.strInstitutionSpecifiedTime - Use as InstitutionSpecifiedTime.strEvent - Use as Event.strEventOffsetQuantity - Use as EventOffsetQuantity.strEventOffsetUnits - Use as EventOffsetUnits.strGeneralTimingSpecification - Use as GeneralTimingSpecification.public void addRepeatPattern(RPT objrepeatPattern)
objrepeatPattern - Object of Repeat Pattern.public void setRepeatPattern(ISingleCollection<RPT> objRepeatPattern)
objRepeatPattern - List of RepeatPattern.public void addExplicitTime(java.lang.String strExplicitTime)
strExplicitTime - Use as ExplicitTime.public void addExplicitTime(TM objexplicitTime)
objexplicitTime - Object of Explicit Time.public void setExplicitTime(ISingleCollection<TM> objExplicitTime)
objExplicitTime - List of Explicit Time.public void addRelativeTimeAndUnits(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void addRelativeTimeAndUnits(CQ objrelativeTimeAndUnits)
objrelativeTimeAndUnits - Object of Relative Time And Units.public void setRelativeTimeAndUnits(ISingleCollection<CQ> objRelativeTimeAndUnits)
objRelativeTimeAndUnits - List of Relative Time And Units.public void setServiceDuration(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Use as QuantityobjUnits - Use as Unitspublic void setServiceDuration(CQ objserviceDuration)
objserviceDuration - Object of Service Duration.public void setStartDateTime(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.public void setStartDateTime(DTM objstartDateTime)
objstartDateTime - Object of Start Date Time.public void setEndDateTime(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.public void setEndDateTime(DTM objendDateTime)
objendDateTime - Object of End Date Time.public void addPriority(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
strIdentifier - Specifies of characters (the code) that uniquely identifies the item being referenced.strText - Specifies The descriptive or textual name of the identifier, e.g., myocardial infarction.strNameOfCodingSystem - Identifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies an alternate sequence of characters (the code) that uniquely identifies the item being referenced.strAlternateText - Specifies the descriptive or textual name of the alternate identifier. See usage note in section introduction.strNameOfAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strCodingSystemVersionID - A sequence of characters that uniquely identifies a second alternate code.strAlternateCodingSystemVersionId - This component carries the version for the coding system identified by components 4-6.strOriginalText - The text as seen and/or selected by the user who entered the data.strSecondAlternateIdentifier - A sequence of characters that uniquely identifies a second alternate code.strSecondAlternateText - The descriptive or textual name of the alternate identifier.strNameofSecondAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strSecondAlternateCodingSystemVersionID - This component carries the version for the coding system identified by components 10-12.strCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.3.strValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.1 is obtained.strValueSetVersionID - This component carries the version for the value set identified by CWE.15. The version is a date. The date is the date/time that the value set being used was published.strAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.6.strAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.4 is obtained.strAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.18. The version is a date.strSecondAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.12.strSecondAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.10 is obtained.strSecondAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.21. The version is a date.public void addPriority(CWE objpriority)
objpriority - Object of Priority.public void setPriority(ISingleCollection<CWE> objPriority)
objPriority - List of Priority.public void setConditionText(java.lang.String strConditionText)
strConditionText - Use as ConditionTextpublic void setConditionText(TX objconditionText)
objconditionText - Object of Condition Text.public void setTextInstruction(java.lang.String strTextInstruction)
strTextInstruction - Use as TextInstruction.public void setTextInstruction(TX objtextInstruction)
objtextInstruction - Object of Text Instruction.public void setConjunction(java.lang.String strConjunction)
strConjunction - Use as Conjunction.public void setConjunction(ID objconjunction)
objconjunction - Object of Conjunction.public void setOccurrenceDuration(java.lang.String strQuantity,
CWE objUnits)
strQuantity - Specifies the numeric quantity or amount of an entity.objUnits - Specifies the units in which the quantity is expressed.public void setOccurrenceDuration(CQ objoccurrenceDuration)
objoccurrenceDuration - Object of Occurrence Duration.public void setTotalOccurrences(java.lang.String strTotalOccurrences)
strTotalOccurrences - Contains the total number of occurrences of a service that should result from this service request.public void setTotalOccurrences(NM objtotalOccurrences)
objtotalOccurrences - Object of Total Occurrences.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.