public class DateRangeParam extends Object implements IQueryParameterAnd<DateParam>
| Constructor and Description |
|---|
DateRangeParam()
Basic constructor.
|
DateRangeParam(Date theLowerBound,
Date theUpperBound)
Constructor which takes two Dates representing the lower and upper bounds of the range (inclusive on both ends)
|
DateRangeParam(DateParam theDateParam)
Sets the range from a single date param.
|
DateRangeParam(DateParam theLowerBound,
DateParam theUpperBound)
Constructor which takes two Dates representing the lower and upper bounds of the range (inclusive on both ends)
|
DateRangeParam(IPrimitiveType<Date> theLowerBound,
IPrimitiveType<Date> theUpperBound)
Constructor which takes two Dates representing the lower and upper bounds of the range (inclusive on both ends)
|
DateRangeParam(String theLowerBound,
String theUpperBound)
Constructor which takes two strings representing the lower and upper bounds of the range (inclusive on both ends)
|
| Modifier and Type | Method and Description |
|---|---|
DateParam |
getLowerBound() |
Date |
getLowerBoundAsInstant() |
DateParam |
getUpperBound() |
Date |
getUpperBoundAsInstant() |
List<DateParam> |
getValuesAsQueryTokens()
See FHIR specification
2.2.2 Search SearchParameter Types
for information on the token format
|
boolean |
isEmpty() |
void |
setLowerBound(DateParam theLowerBound) |
void |
setRangeFromDatesInclusive(Date theLowerBound,
Date theUpperBound)
Sets the range from a pair of dates, inclusive on both ends
|
void |
setRangeFromDatesInclusive(DateParam theLowerBound,
DateParam theUpperBound)
Sets the range from a pair of dates, inclusive on both ends
|
void |
setRangeFromDatesInclusive(IPrimitiveType<Date> theLowerBound,
IPrimitiveType<Date> theUpperBound)
Sets the range from a pair of dates, inclusive on both ends.
|
void |
setRangeFromDatesInclusive(String theLowerBound,
String theUpperBound)
Sets the range from a pair of dates, inclusive on both ends
|
void |
setUpperBound(DateParam theUpperBound) |
void |
setValuesAsQueryTokens(FhirContext theContext,
String theParamName,
List<QualifiedParamList> theParameters)
See FHIR specification
2.2.2 Search SearchParameter Types
for information on the token format
|
String |
toString() |
public DateRangeParam()
setLowerBound(DateParam) and
setUpperBound(DateParam)public DateRangeParam(Date theLowerBound, Date theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public DateRangeParam(DateParam theDateParam)
public DateRangeParam(DateParam theLowerBound, DateParam theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public DateRangeParam(IPrimitiveType<Date> theLowerBound, IPrimitiveType<Date> theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public DateRangeParam(String theLowerBound, String theUpperBound)
theLowerBound - An unqualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Either theLowerBound or theUpperBound may both be populated, or
one may be null, but it is not valid for both to be null.theUpperBound - An unqualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Either theLowerBound or theUpperBound may both be populated, or
one may be null, but it is not valid for both to be null.public DateParam getLowerBound()
public Date getLowerBoundAsInstant()
public DateParam getUpperBound()
public Date getUpperBoundAsInstant()
public List<DateParam> getValuesAsQueryTokens()
IQueryParameterAndSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
getValuesAsQueryTokens in interface IQueryParameterAnd<DateParam>public boolean isEmpty()
public void setLowerBound(DateParam theLowerBound)
public void setRangeFromDatesInclusive(Date theLowerBound, Date theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public void setRangeFromDatesInclusive(DateParam theLowerBound, DateParam theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public void setRangeFromDatesInclusive(IPrimitiveType<Date> theLowerBound, IPrimitiveType<Date> theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public void setRangeFromDatesInclusive(String theLowerBound, String theUpperBound)
theLowerBound - A qualified date param representing the lower date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.theUpperBound - A qualified date param representing the upper date bound (optionally may include time), e.g.
"2011-02-22" or "2011-02-22T13:12:00Z". Will be treated inclusively. Either theLowerBound or
theUpperBound may both be populated, or one may be null, but it is not valid for both to be null.public void setUpperBound(DateParam theUpperBound)
public void setValuesAsQueryTokens(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) throws InvalidRequestException
IQueryParameterAndSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
setValuesAsQueryTokens in interface IQueryParameterAnd<DateParam>theContext - TODOtheParamName - TODOInvalidRequestExceptionCopyright © 2014–2017 University Health Network. All rights reserved.