All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class TS extends AbstractComposite

Represents an HL7 TS (time stamp) data type. This type consists of the following components:

  • time of an event (TSComponentOne)
  • degree of precision (ST)
See Also:
  • Constructor Details

    • TS

      public TS(Message message)
      Creates a new TS type
  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getTimeOfAnEvent

      Returns time of an event (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getTs1_TimeOfAnEvent

      Returns time of an event (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getDegreeOfPrecision

      Returns degree of precision (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getTs2_DegreeOfPrecision

      Returns degree of precision (component 2). This is a convenience method that saves you from casting and handling an exception.