001 /**
002 * The contents of this file are subject to the Mozilla Public License Version 1.1
003 * (the "License"); you may not use this file except in compliance with the License.
004 * You may obtain a copy of the License at http://www.mozilla.org/MPL/
005 * Software distributed under the License is distributed on an "AS IS" basis,
006 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
007 * specific language governing rights and limitations under the License.
008 *
009 * The Original Code is "TM.java". Description:
010 * "Note: The class description below has been excerpted from the Hl7 2.4 documentation"
011 *
012 * The Initial Developer of the Original Code is University Health Network. Copyright (C)
013 * 2001. All Rights Reserved.
014 *
015 * Contributor(s): ______________________________________.
016 *
017 * Alternatively, the contents of this file may be used under the terms of the
018 * GNU General Public License (the �GPL�), in which case the provisions of the GPL are
019 * applicable instead of those above. If you wish to allow use of your version of this
020 * file only under the terms of the GPL and not to allow others to use your version
021 * of this file under the MPL, indicate your decision by deleting the provisions above
022 * and replace them with the notice and other provisions required by the GPL License.
023 * If you do not delete the provisions above, a recipient may use your version of
024 * this file under either the MPL or the GPL.
025 *
026 */
027
028 package ca.uhn.hl7v2.model.v251.datatype;
029
030 import ca.uhn.hl7v2.model.Message;
031
032 /**
033 * Note: The class description below has been excerpted from the Hl7 2.4 documentation. Sectional
034 * references made below also refer to the same documentation.
035 *
036 * Format: HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]
037 * In prior versions of HL7, this data type was always specified to be in the
038 * format HHMM[SS[.SSSS]][+/-ZZZZ] using a 24 hour clock notation. In the
039 * current and future versions, the precision of a time may be expressed by
040 * limiting the number of digits used with the format specification as shown
041 * above. By site-specific agreement, HHMM[SS[.SSSS]][+/-ZZZZ] may be used where
042 * backward compatibility must be maintained.
043 * Thus, HH is used to specify a precision of "hour," HHMM is used to specify a
044 * precision of "minute," HHMMSS is used to specify a precision of seconds, and
045 * HHMMSS.SSSS is used to specify a precision of ten-thousandths of a second.
046 * In each of these cases, the time zone is an optional component. The fractional
047 * seconds could be sent by a transmitter who requires greater precision than whole
048 * seconds. Fractional representations of minutes, hours or other higher-order units
049 * of time are not permitted.
050 * Note: The time zone [+/-ZZZZ], when used, is restricted to legally-defined time zones
051 * and is represented in HHMM format.
052 * The time zone of the sender may be sent optionally as an offset from the coordinated
053 * universal time (previously known as Greenwich Mean Time). Where the time zone
054 * is not present in a particular TM field but is included as part of the date/time
055 * field in the MSH segment, the MSH value will be used as the default time zone.
056 * Otherwise, the time is understood to refer to the local time of the sender.
057 * Midnight is represented as 0000.
058 * Examples:|235959+1100| 1 second before midnight in a time zone eleven hours
059 * ahead of Universal Coordinated Time (i.e., east of Greenwich).
060 * |0800| Eight AM, local time of the sender.
061 * |093544.2312| 44.2312 seconds after Nine thirty-five AM, local time of sender.
062 * |13| 1pm (with a precision of hours), local time of sender.
063 * @author Neal Acharya
064 */
065
066 public class TM extends ca.uhn.hl7v2.model.primitive.TM {
067
068 /**
069 * @param theMessage message to which this Type belongs
070 */
071 public TM(Message theMessage) {
072 super(theMessage);
073 }
074
075 /**
076 * @return "2.5"
077 */
078 public String getVersion() {
079 return "2.5.1";
080 }
081 }