org.eclipse.ohf.bridge.type
Class DateTimeRangeType

java.lang.Object
  extended by org.eclipse.ohf.bridge.type.DateTimeRangeType
All Implemented Interfaces:
java.io.Serializable

public class DateTimeRangeType
extends java.lang.Object
implements java.io.Serializable

Range of dates for a specific attribute of the document. Time/date must follow this format: Format: YYYY[MM[DD[HH[MM[SS[.S[S[S[S]]]]]]]]][+/-ZZZZ]. Thus: a) only the first four are used to specify a precision of "year" b) the first six are used to specify a precision of "month" c) the first eight are used to specify a precision of "day" d) the first ten are used to specify a precision of "hour” e) the first twelve are used to specify a precision of "minute” f) the first fourteen are used to specify a precision of "second” g) the first sixteen are used to specify a precision of "one tenth of a second” h) the first nineteen are used to specify a precision of " one ten thousandths of a second” Example: |199904| specifies April 1999. The time zone (+/-ZZZZ) is represented as +/-HHMM offset from Co-ordinated Universal Time (UTC) (formerly Greenwich Mean Time (GMT)), where +0000 or -0000 both represent UTC (without offset). The specific data representations used in the HL7 encoding rules are compatible with ISO 8824-1987(E). Note that if the time zone is not included, the time zone defaults to that of the local time zone of the sender. Also note that a DTM or TS valued field with the HHMM part set to "0000" represents midnight of the night extending from the previous day to the day given by the YYYYMMDD part.

See Also:
Serialized Form

Constructor Summary
DateTimeRangeType()
           
 
Method Summary
 java.lang.String getAttributeName()
           
 java.lang.String getFrom()
           
 java.lang.String getTo()
           
 void setAttributeName(java.lang.String pAttributeName)
           
 void setFrom(java.lang.String pFrom)
           
 void setTo(java.lang.String pTo)
           
 java.lang.String toString()
          Constructs a String with all AttributeNames in name = value format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeRangeType

public DateTimeRangeType()
Method Detail

getFrom

public java.lang.String getFrom()

setFrom

public void setFrom(java.lang.String pFrom)
Parameters:
pFrom - time/date format

getAttributeName

public java.lang.String getAttributeName()

setAttributeName

public void setAttributeName(java.lang.String pAttributeName)
Parameters:
pAttributeName - should be either creationTime, serviceStartTime, serviceStopTime, submissionTime, or lastUpdateTime

getTo

public java.lang.String getTo()

setTo

public void setTo(java.lang.String pTo)
Parameters:
pFrom - the format should be "YYYYMMDDHHMMSS", here is an example: 20041225235910.

toString

public java.lang.String toString()
Constructs a String with all AttributeNames in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.