Package ca.uhn.hl7v2.model.v23.datatype
Class DT
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractPrimitive
ca.uhn.hl7v2.model.primitive.DT
ca.uhn.hl7v2.model.v23.datatype.DT
- All Implemented Interfaces:
Primitive,Type,Visitable,Serializable
Note: The class description below has been excerpted from the Hl7 2.3.0 documentation. Sectional
references made below also refer to the same documentation.
Format: YYYY[MM[DD]]
In prior versions of HL7, this data type was always specified to be in the format YYYYMMDD. In the current and future
versions, the precision of a date may be expressed by limiting the number of digits used with the format specification
YYYY[MM[DD]]. Thus, YYYY is used to specify a precision of "year," YYYYMM specifies a precision of "month,"
and YYYYMMDD specifies a precision of "day."
By site-specific agreement, YYYYMMDD may be used where backward compatibility must be maintained.
Examples: |19880704| |199503|
- Author:
- Neal Acharya
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ca.uhn.hl7v2.model.primitive.DT
getDay, getMonth, getValue, getYear, setValue, setYearMonthDayPrecision, setYearMonthPrecision, setYearPrecisionMethods inherited from class ca.uhn.hl7v2.model.AbstractPrimitive
accept, clear, encode, isEmpty, parse, toStringMethods inherited from class ca.uhn.hl7v2.model.AbstractType
getExtraComponents, getMessage, getName, provideLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Type
getExtraComponents, getMessage, getNameMethods inherited from interface ca.uhn.hl7v2.model.Visitable
provideLocation
-
Constructor Details
-
DT
- Parameters:
theMessage- message to which this Type belongs
-
-
Method Details
-
getVersion
- Returns:
- "2.3"
-