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 |
|---|---|
boolean |
equals(Object obj) |
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
|
int |
hashCode() |
boolean |
isEmpty() |
DateRangeParam |
setLowerBound(DateParam theLowerBound) |
DateRangeParam |
setLowerBound(String theLowerBound)
Sets the lower bound using a string that is compliant with
FHIR dateTime format (ISO-8601).
|
DateRangeParam |
setLowerBoundExclusive(Date theLowerBound)
Sets the lower bound to be greaterthan to the given date
|
DateRangeParam |
setLowerBoundInclusive(Date theLowerBound)
Sets the lower bound to be greaterthan or equal to the given date
|
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
|
DateRangeParam |
setUpperBound(DateParam theUpperBound) |
DateRangeParam |
setUpperBound(String theUpperBound)
Sets the upper bound using a string that is compliant with
FHIR dateTime format (ISO-8601).
|
DateRangeParam |
setUpperBoundExclusive(Date theUpperBound)
Sets the upper bound to be greaterthan to the given date
|
DateRangeParam |
setUpperBoundInclusive(Date theUpperBound)
Sets the upper bound to be greaterthan or equal to the given date
|
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 DateRangeParam setLowerBound(DateParam theLowerBound)
public DateRangeParam setLowerBound(String theLowerBound)
This lower bound is assumed to have a ge
(greater than or equals) modifier.
public DateRangeParam setLowerBoundInclusive(Date theLowerBound)
public DateRangeParam setUpperBoundInclusive(Date theUpperBound)
public DateRangeParam setLowerBoundExclusive(Date theLowerBound)
public DateRangeParam setUpperBoundExclusive(Date theUpperBound)
public Date getLowerBoundAsInstant()
public DateParam getUpperBound()
public DateRangeParam setUpperBound(String theUpperBound)
This upper bound is assumed to have a le
(less than or equals) modifier.
public DateRangeParam setUpperBound(DateParam theUpperBound)
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 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 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–2019 University Health Network. All rights reserved.