public class DateType extends BaseDateTimeType
TemporalPrecisionEnum.YEAR
TemporalPrecisionEnum.MONTH
TemporalPrecisionEnum.DAY
| Modifier and Type | Field and Description |
|---|---|
static TemporalPrecisionEnum |
DEFAULT_PRECISION
The default precision for this type
|
| Constructor and Description |
|---|
DateType()
Constructor
|
DateType(Date theDate)
Constructor which accepts a date value and uses the
DEFAULT_PRECISION for this type |
DateType(Date theDate,
TemporalPrecisionEnum thePrecision)
Constructor which accepts a date value and a precision value.
|
DateType(String theDate)
Constructor which accepts a date as a string in FHIR format
|
| Modifier and Type | Method and Description |
|---|---|
DateType |
copy() |
String |
fhirType() |
protected TemporalPrecisionEnum |
getDefaultPrecisionForDatatype()
Returns the default precision for this datatype
|
static DateType |
parseV3(String theV3String)
Creates a new instance by parsing an HL7 v3 format date time string
|
static InstantType |
today() |
add, after, before, encode, getPrecision, getTime, getTimeZone, isTimeZoneZulu, isToday, parse, setOffsetMinutes, setPrecision, setTimeZone, setTimeZoneZulu, setValue, setValue, setValueAsString, setValueAsV3String, toCalendar, toHumanDisplay, toHumanDisplayLocalTimezoneasStringValue, equalsDeep, equalsShallow, fromStringValue, getValue, getValueAsString, hashCode, hasValue, isEmpty, isPrimitive, primitiveValue, toString, typedCopy, updateStringValueaddChild, addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, listChildren, setId, setIdElement, setPropertycastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, listChildrenByName, setUserData, setUserDataINNclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final TemporalPrecisionEnum DEFAULT_PRECISION
public DateType()
public DateType(Date theDate)
DEFAULT_PRECISION for this typepublic DateType(Date theDate, TemporalPrecisionEnum thePrecision)
TemporalPrecisionEnum.YEAR
TemporalPrecisionEnum.MONTH
TemporalPrecisionEnum.DAY
ca.uhn.fhir.parser.DataFormatException - If the specified precision is not allowed for this typeprotected TemporalPrecisionEnum getDefaultPrecisionForDatatype()
getDefaultPrecisionForDatatype in class BaseDateTimeTypeDEFAULT_PRECISIONpublic DateType copy()
copy in class PrimitiveType<Date>public static InstantType today()
public static DateType parseV3(String theV3String)
Copyright © 2014–2018 University Health Network. All rights reserved.