All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class VH extends AbstractComposite

Represents an HL7 VH (visiting hours) data type. This type consists of the following components:

  • start day range (ID)
  • end day range (ID)
  • start hour range (TM)
  • end hour range (TM)
See Also:
  • Constructor Details

    • VH

      public VH(Message message)
      Creates a new VH 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.
    • getStartDayRange

      public ID getStartDayRange()
      Returns start day range (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getVh1_StartDayRange

      Returns start day range (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getEndDayRange

      public ID getEndDayRange()
      Returns end day range (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getVh2_EndDayRange

      Returns end day range (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getStartHourRange

      Returns start hour range (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getVh3_StartHourRange

      Returns start hour range (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getEndHourRange

      public TM getEndHourRange()
      Returns end hour range (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getVh4_EndHourRange

      Returns end hour range (component 4). This is a convenience method that saves you from casting and handling an exception.