ca.uhn.hl7v2.model.v24.datatype
Class VH

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractType
      extended by ca.uhn.hl7v2.model.v24.datatype.VH
All Implemented Interfaces:
Composite, Type, Serializable

public class VH
extends AbstractType
implements Composite

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

See Also:
Serialized Form

Constructor Summary
VH(Message message)
          Creates a new VH type
 
Method Summary
 Type getComponent(int number)
          Returns an individual data component.
 Type[] getComponents()
          Returns an array containing the data elements.
 ID getEndDayRange()
          Returns end day range (component #2).
 TM getEndHourRange()
          Returns end hour range (component #4).
 ID getStartDayRange()
          Returns start day range (component #1).
 TM getStartHourRange()
          Returns start hour range (component #3).
 ID getVh1_StartDayRange()
          Returns start day range (component #1).
 ID getVh2_EndDayRange()
          Returns end day range (component #2).
 TM getVh3_StartHourRange()
          Returns start hour range (component #3).
 TM getVh4_EndHourRange()
          Returns end hour range (component #4).
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractType
clear, encode, getExtraComponents, getMessage, getName, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, getName, parse
 

Constructor Detail

VH

public VH(Message message)
Creates a new VH type

Method Detail

getComponents

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

Specified by:
getComponents in interface Composite

getComponent

public Type getComponent(int number)
                  throws DataTypeException
Returns an individual data component.

Specified by:
getComponent in interface Composite
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

public ID 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

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


getStartHourRange

public TM getStartHourRange()
Returns start hour range (component #3). This is a convenience method that saves you from casting and handling an exception.


getVh3_StartHourRange

public TM 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

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



Copyright © 2001-2011 University Health Network. All Rights Reserved.