Package ca.uhn.hl7v2.model.v22.datatype
Class TQ
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
ca.uhn.hl7v2.model.v22.datatype.TQ
- All Implemented Interfaces:
Composite,Type,Visitable,Serializable
Represents an HL7 TQ (timing quantity) data type. This type consists of the following components:
- Quantity (CQ_QUANTITY)
- interval (CM_RI)
- duration (ST)
- start date/time (TS)
- end date/time (TS)
- priority (ID)
- condition (ST)
- text (TX) (TX)
- conjunction (ID)
- order sequencing (ST)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(int number) Returns an individual data component.Type[]Returns an array containing the data elements.Returns condition (component 7).Returns conjunction (component 9).Returns duration (component 3).Returns end date/time (component 5).Returns interval (component 2).Returns order sequencing (component 10).Returns priority (component 6).Returns Quantity (component 1).Returns start date/time (component 4).getText()Returns text (TX) (component 8).Returns Quantity (component 1).Returns order sequencing (component 10).Returns interval (component 2).Returns duration (component 3).Returns start date/time (component 4).Returns end date/time (component 5).Returns priority (component 6).Returns condition (component 7).Returns text (TX) (component 8).Returns conjunction (component 9).Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
accept, clear, getTyped, isEmpty, provideLocationMethods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, getName, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, getName, parse
-
Constructor Details
-
TQ
Creates a new TQ type
-
-
Method Details
-
getComponents
Returns an array containing the data elements. -
getComponent
Returns an individual data component.- Parameters:
number- The component number (0-indexed)- Throws:
DataTypeException- if the given element number is out of range.
-
getQuantity
Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception. -
getTq1_Quantity
Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception. -
getInterval
Returns interval (component 2). This is a convenience method that saves you from casting and handling an exception. -
getTq2_Interval
Returns interval (component 2). This is a convenience method that saves you from casting and handling an exception. -
getDuration
Returns duration (component 3). This is a convenience method that saves you from casting and handling an exception. -
getTq3_Duration
Returns duration (component 3). This is a convenience method that saves you from casting and handling an exception. -
getStartDateTime
Returns start date/time (component 4). This is a convenience method that saves you from casting and handling an exception. -
getTq4_StartDateTime
Returns start date/time (component 4). This is a convenience method that saves you from casting and handling an exception. -
getEndDateTime
Returns end date/time (component 5). This is a convenience method that saves you from casting and handling an exception. -
getTq5_EndDateTime
Returns end date/time (component 5). This is a convenience method that saves you from casting and handling an exception. -
getPriority
Returns priority (component 6). This is a convenience method that saves you from casting and handling an exception. -
getTq6_Priority
Returns priority (component 6). This is a convenience method that saves you from casting and handling an exception. -
getCondition
Returns condition (component 7). This is a convenience method that saves you from casting and handling an exception. -
getTq7_Condition
Returns condition (component 7). This is a convenience method that saves you from casting and handling an exception. -
getText
Returns text (TX) (component 8). This is a convenience method that saves you from casting and handling an exception. -
getTq8_Text
Returns text (TX) (component 8). This is a convenience method that saves you from casting and handling an exception. -
getConjunction
Returns conjunction (component 9). This is a convenience method that saves you from casting and handling an exception. -
getTq9_Conjunction
Returns conjunction (component 9). This is a convenience method that saves you from casting and handling an exception. -
getOrderSequencing
Returns order sequencing (component 10). This is a convenience method that saves you from casting and handling an exception. -
getTq10_OrderSequencing
Returns order sequencing (component 10). This is a convenience method that saves you from casting and handling an exception.
-