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.