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 (DTM)
  • Degree of Precision (ID)
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.
    • getTime

      public DTM getTime()
      Returns Time (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getTs1_Time

      public DTM getTs1_Time()
      Returns Time (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.