public class TQ2 extends Segment
The TQ2 segment is used to form a relationship between the service request the TQ1/TQ2 segments are associated with, and other service requests. The TQ2 segment will link the current service request with one or more other service requests.
Represents an HL7 TQ2 message segment. This segment has the following fields:
TQ2-1: Set ID - TQ2 (SI)Optional
TQ2-2: Sequence/Results Flag (ID)Optional
TQ2-3: Related Placer Number (EI)Conditional
TQ2-4: Related Filler Number (EI)Conditional
TQ2-5: Related Placer Group Number (EI)Conditional
TQ2-6: Sequence Condition Code (ID)Conditional
TQ2-7: Cyclic Entry/Exit Indicator (ID)Conditional
TQ2-8: Sequence Condition Time Interval (CQ)Optional
TQ2-9: Cyclic Group Maximum Number of Repeats (NM)Optional
TQ2-10: Special Service Request Relationship (ID)Conditional
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
TQ2()
Constructs the TQ2 segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelatedFillerNo(EI objrelatedFillerNo)
Add the Related Filler No.
|
void |
addRelatedFillerNo(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Add the Related Filler No.
|
void |
addRelatedPlacerGroupNo(EI objrelatedPlacerGroupNo)
Add the Related Placer Group No.
|
void |
addRelatedPlacerGroupNo(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Add the Related Placer Group No.
|
void |
addRelatedPlacerNo(EI objrelatedPlacerNo)
Add the Related Placer No.
|
void |
addRelatedPlacerNo(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Add the Related Placer No.
|
ID |
getCyclicEntryExitIndicator()
Retrieves the Cyclic Entry Exit Indicator.
|
NM |
getCyclicGroupMaxNoOfRepeats()
Retrieves the Cyclic Group Max No Of Repeats.
|
ISingleCollection<EI> |
getRelatedFillerNo()
Retrieves the Related Filler No.
|
ISingleCollection<EI> |
getRelatedPlacerGroupNo()
Retrieves the Related Placer Group No.
|
ISingleCollection<EI> |
getRelatedPlacerNo()
Retrieves the Related Placer No.
|
ID |
getSequenceConditionCode()
Retrieves the Sequence Condition Code.
|
CQ |
getSequenceCondTimeInterval()
Retrieves the Sequence Cond Time Interval.
|
ID |
getSequenceResultsFlag()
Retrieves the Sequence Results Flag.
|
SI |
getSetID_TQ2()
Retrieves the Set ID TQ2.
|
ID |
getSpecialServiceRequestRelationship()
Retrieves the Special Service Request Relationship.
|
void |
setCyclicEntryExitIndicator(ID objcyclicEntryExitIndicator)
Set the Cyclic Entry Exit Indicator.
|
void |
setCyclicEntryExitIndicator(java.lang.String strCyclicEntryExitIndicator)
Set the Cyclic Entry Exit Indicator.
|
void |
setCyclicGroupMaxNoOfRepeats(NM objcyclicGroupMaxNoOfRepeats)
Set the Cyclic Group Max No Of Repeats.
|
void |
setCyclicGroupMaxNoOfRepeats(java.lang.String strCyclicGroupMaxNoOfRepeats)
Set the Cyclic Group Max No Of Repeats.
|
void |
setRelatedFillerNo(ISingleCollection<EI> objrelatedFillerNoList)
Set the Related Filler No.
|
void |
setRelatedPlacerGroupNo(ISingleCollection<EI> objrelatedPlacerGroupNoList)
Set the Related Placer Group No.
|
void |
setRelatedPlacerNo(ISingleCollection<EI> objrelatedPlacerNoList)
Set the Related Placer No.
|
void |
setSequenceConditionCode(ID objsequenceConditionCode)
Set the Sequence Condition Code.
|
void |
setSequenceConditionCode(java.lang.String strSequenceConditionCode)
Set the Sequence Condition Code.
|
void |
setSequenceCondTimeInterval(CQ objsequenceCondTimeInterval)
Set the Sequence Condition Time Interval.
|
void |
setSequenceCondTimeInterval(java.lang.String strQuantity,
CWE objUnits)
Set the Sequence Condition Time Interval.
|
void |
setSequenceResultsFlag(ID objsequenceResultsFlag)
Set the Sequence Results Flag.
|
void |
setSequenceResultsFlag(java.lang.String strSequenceResultsFlag)
Set the Sequence Results Flag.
|
void |
setSetID_TQ2(SI objsetID_TQ2)
Set the Set ID TQ2.
|
void |
setSetID_TQ2(java.lang.String strSetID_TQ2)
Set the Set ID TQ2.
|
void |
setSpecialServiceRequestRelationship(ID objspecialServiceRequestRelationship)
Set the Special Service Request Relationship.
|
void |
setSpecialServiceRequestRelationship(java.lang.String strSpecialServiceRequestRelationship)
Set the Special Service Request Relationship.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, parse, removeDataElement, removeDataElement, serialize, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic SI getSetID_TQ2()
public ID getSequenceResultsFlag()
public ISingleCollection<EI> getRelatedPlacerNo()
public ISingleCollection<EI> getRelatedFillerNo()
public ISingleCollection<EI> getRelatedPlacerGroupNo()
public ID getSequenceConditionCode()
public ID getCyclicEntryExitIndicator()
public CQ getSequenceCondTimeInterval()
public NM getCyclicGroupMaxNoOfRepeats()
public ID getSpecialServiceRequestRelationship()
public void setCyclicEntryExitIndicator(java.lang.String strCyclicEntryExitIndicator)
strCyclicEntryExitIndicator - String which to set as Cyclic Entry Exit Indicatorpublic void setCyclicEntryExitIndicator(ID objcyclicEntryExitIndicator)
objcyclicEntryExitIndicator - Object of Cyclic Entry Exit Indicator.public void setCyclicGroupMaxNoOfRepeats(java.lang.String strCyclicGroupMaxNoOfRepeats)
strCyclicGroupMaxNoOfRepeats - String which to set as Group Maximum Number Of Repeatspublic void setCyclicGroupMaxNoOfRepeats(NM objcyclicGroupMaxNoOfRepeats)
objcyclicGroupMaxNoOfRepeats - Object of Cyclic Group Max No Of Repeats.public void addRelatedFillerNo(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies defined by a hierarchic designator, represented by components 2 through 4.
[Reference Section 2.A.33, "HD - hierarchic designator".]strNamespaceId - Specifies the HL7 identifier for the user-defined table of values for this component.
[Refer to User-defined Table 0363 - Assigning authority]strUniversalId - Specifies string formatted according to the scheme defined by the component,
strUniversalIdType - Specifies the interpretation of the second component of the HD.public void addRelatedFillerNo(EI objrelatedFillerNo)
objrelatedFillerNo - Object of Related Filler No.public void setRelatedFillerNo(ISingleCollection<EI> objrelatedFillerNoList)
objrelatedFillerNoList - List of Related Filler No.public void addRelatedPlacerGroupNo(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies defined by a hierarchic designator, represented by components 2 through 4.
[Reference Section 2.A.33, "HD - hierarchic designator".]strNamespaceId - Specifies the HL7 identifier for the user-defined table of values for this component.
[Refer to User-defined Table 0363 - Assigning authority]strUniversalId - Specifies string formatted according to the scheme defined by the component,
strUniversalIdType - Specifies the interpretation of the second component of the HD.public void addRelatedPlacerGroupNo(EI objrelatedPlacerGroupNo)
objrelatedPlacerGroupNo - Object of Related Placer Group No.public void setRelatedPlacerGroupNo(ISingleCollection<EI> objrelatedPlacerGroupNoList)
objrelatedPlacerGroupNoList - List of Related Placer Group No.public void addRelatedPlacerNo(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies defined by a hierarchic designator, represented by components 2 through 4.
[Reference Section 2.A.33, "HD - hierarchic designator".]strNamespaceId - Specifies the HL7 identifier for the user-defined table of values for this component.
[Refer to User-defined Table 0363 - Assigning authority]strUniversalId - Specifies string formatted according to the scheme defined by the component,
strUniversalIdType - Specifies the interpretation of the second component of the HD.public void addRelatedPlacerNo(EI objrelatedPlacerNo)
objrelatedPlacerNo - Object of Related Placer No.public void setRelatedPlacerNo(ISingleCollection<EI> objrelatedPlacerNoList)
objrelatedPlacerNoList - List of Related Placer No.public void setSequenceConditionCode(java.lang.String strSequenceConditionCode)
strSequenceConditionCode - String which to set as Sequence Condition Code.public void setSequenceConditionCode(ID objsequenceConditionCode)
objsequenceConditionCode - Object of Sequence Condition Code.public void setSequenceCondTimeInterval(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 setSequenceCondTimeInterval(CQ objsequenceCondTimeInterval)
objsequenceCondTimeInterval - Object of Sequence Condition Time Interval.public void setSequenceResultsFlag(java.lang.String strSequenceResultsFlag)
strSequenceResultsFlag - String which to set as Sequence Results Flagpublic void setSequenceResultsFlag(ID objsequenceResultsFlag)
objsequenceResultsFlag - Object of Sequence Results Flag.public void setSetID_TQ2(java.lang.String strSetID_TQ2)
strSetID_TQ2 - String which to set as SetID-TQ2public void setSetID_TQ2(SI objsetID_TQ2)
objsetID_TQ2 - Object of Set ID TQ2.public void setSpecialServiceRequestRelationship(java.lang.String strSpecialServiceRequestRelationship)
strSpecialServiceRequestRelationship - String which to set as Special Service Request Relationshippublic void setSpecialServiceRequestRelationship(ID objspecialServiceRequestRelationship)
objspecialServiceRequestRelationship - Object of Special Service Request Relationship.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Throws when Segment Validation fails.