public class ReferenceParam extends Object
| Constructor and Description |
|---|
ReferenceParam()
Constructor
|
ReferenceParam(String theValue)
Constructor
|
ReferenceParam(String theChain,
String theValue)
Constructor
|
ReferenceParam(String theResourceType,
String theChain,
String theValue)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl() |
String |
getChain() |
String |
getIdPart() |
BigDecimal |
getIdPartAsBigDecimal() |
Long |
getIdPartAsLong() |
Boolean |
getMissing()
If set to non-null value, indicates that this parameter has been populated with a "[name]:missing=true" or "[name]:missing=false" vale instead of a normal value
|
String |
getQueryParameterQualifier()
This method will return any qualifier that should be appended to the parameter name (e.g ":exact")
|
String |
getResourceType() |
Class<? extends IBaseResource> |
getResourceType(FhirContext theCtx) |
String |
getValue() |
String |
getValueAsQueryToken(FhirContext theContext)
Returns a representation of this parameter's value as it will be represented "over the wire".
|
boolean |
hasResourceType() |
protected boolean |
isSupportsChain()
Does this parameter type support chained parameters (only reference should return
true for this) |
ReferenceParam |
setChain(String theChain) |
ca.uhn.fhir.rest.param.BaseParam |
setMissing(Boolean theMissing)
If set to non-null value, indicates that this parameter has been populated
with a "[name]:missing=true" or "[name]:missing=false" vale instead of a
normal value
|
ReferenceParam |
setValue(String theValue) |
void |
setValueAsQueryToken(FhirContext theContext,
String theParamName,
String theQualifier,
String theValue)
This method is generally only called by HAPI itself, and should not need to be called from user code.
|
DateParam |
toDateParam(FhirContext theContext)
Returns a new param containing the same value as this param, but with the type copnverted
to
DateParam. |
NumberParam |
toNumberParam(FhirContext theContext)
Returns a new param containing the same value as this param, but with the type copnverted
to
NumberParam. |
QuantityParam |
toQuantityParam(FhirContext theContext)
Returns a new param containing the same value as this param, but with the type copnverted
to
QuantityParam. |
String |
toString() |
StringParam |
toStringParam(FhirContext theContext)
Returns a new param containing the same value as this param, but with the type copnverted
to
StringParam. |
TokenParam |
toTokenParam(FhirContext theContext)
Returns a new param containing the same value as this param, but with the type copnverted
to
TokenParam. |
public ReferenceParam()
public ReferenceParam(String theValue)
public ReferenceParam(String theChain, String theValue)
public ReferenceParam(String theResourceType, String theChain, String theValue)
public String getBaseUrl()
public BigDecimal getIdPartAsBigDecimal()
public Long getIdPartAsLong()
public String getResourceType()
public Class<? extends IBaseResource> getResourceType(FhirContext theCtx)
public boolean hasResourceType()
protected boolean isSupportsChain()
true for this)public ReferenceParam setChain(String theChain)
public ReferenceParam setValue(String theValue)
public DateParam toDateParam(FhirContext theContext)
DateParam. This is useful if you are using reference parameters and want to handle
chained parameters of different types in a single method.
See Dynamic Chains in the HAPI FHIR documentation for an example of how to use this method.
public NumberParam toNumberParam(FhirContext theContext)
NumberParam. This is useful if you are using reference parameters and want to handle
chained parameters of different types in a single method.
See Dynamic Chains in the HAPI FHIR documentation for an example of how to use this method.
public QuantityParam toQuantityParam(FhirContext theContext)
QuantityParam. This is useful if you are using reference parameters and want to handle
chained parameters of different types in a single method.
See Dynamic Chains in the HAPI FHIR documentation for an example of how to use this method.
public StringParam toStringParam(FhirContext theContext)
StringParam. This is useful if you are using reference parameters and want to handle
chained parameters of different types in a single method.
See Dynamic Chains in the HAPI FHIR documentation for an example of how to use this method.
public TokenParam toTokenParam(FhirContext theContext)
TokenParam. This is useful if you are using reference parameters and want to handle
chained parameters of different types in a single method.
See Dynamic Chains in the HAPI FHIR documentation for an example of how to use this method.
public Boolean getMissing()
getMissing in interface IQueryParameterTypepublic final String getQueryParameterQualifier()
IQueryParameterTypegetQueryParameterQualifier in interface IQueryParameterTypepublic final String getValueAsQueryToken(FhirContext theContext)
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
getValueAsQueryToken in interface IQueryParameterTypetheContext - TODOpublic ca.uhn.fhir.rest.param.BaseParam setMissing(Boolean theMissing)
setMissing in interface IQueryParameterTypethis for easier method chainingpublic final void setValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue)
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
setValueAsQueryToken in interface IQueryParameterTypetheContext - TODOtheParamName - TODOtheQualifier - The parameter name qualifier that accompanied this value. For example, if the complete query was
http://foo?name:exact=John, qualifier would be ":exact"theValue - The actual parameter value. For example, if the complete query was
http://foo?name:exact=John, the value would be "John"Copyright © 2014–2017 University Health Network. All rights reserved.