public class ReferenceParam extends IdDt implements IQueryParameterType
| Constructor and Description |
|---|
ReferenceParam() |
ReferenceParam(String theValue) |
ReferenceParam(String theChain,
String theValue) |
ReferenceParam(String theResourceType,
String theChain,
String theValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
getChain() |
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")
|
Class<? extends IBaseResource> |
getResourceType(FhirContext theCtx) |
String |
getValueAsQueryToken()
Returns a representation of this parameter's value as it will be represented "over the wire".
|
void |
setChain(String theChain) |
void |
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
|
void |
setValueAsQueryToken(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()
Returns a new param containing the same value as this param, but with the type copnverted
to
DateParam. |
NumberParam |
toNumberParam()
Returns a new param containing the same value as this param, but with the type copnverted
to
NumberParam. |
QuantityParam |
toQuantityParam()
Returns a new param containing the same value as this param, but with the type copnverted
to
QuantityParam. |
String |
toString() |
StringParam |
toStringParam()
Returns a new param containing the same value as this param, but with the type copnverted
to
StringParam. |
TokenParam |
toTokenParam()
Returns a new param containing the same value as this param, but with the type copnverted
to
TokenParam. |
applyTo, asBigDecimal, equals, equalsIgnoreBase, getBaseUrl, getIdPart, getIdPartAsBigDecimal, getIdPartAsLong, getResourceType, getValue, getValueAsString, getVersionIdPart, getVersionIdPartAsLong, hasBaseUrl, hashCode, hasIdPart, hasResourceType, hasVersionIdPart, isAbsolute, isEmpty, isIdPartValid, isIdPartValidLong, isLocal, isVersionIdPartValidLong, newRandomUuid, of, setId, setParts, setValue, setValueAsString, toUnqualified, toUnqualifiedVersionless, toVersionless, withResourceType, withServerBase, withVersionreadExternal, updateStringValue, writeExternalgetElementSpecificId, getId, setElementSpecificId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptypublic ReferenceParam()
public ReferenceParam(String theValue)
public ReferenceParam(String theChain, String theValue)
public ReferenceParam(String theResourceType, String theChain, String theValue)
public Boolean getMissing()
IQueryParameterTypegetMissing in interface IQueryParameterTypepublic String getQueryParameterQualifier()
IQueryParameterTypegetQueryParameterQualifier in interface IQueryParameterTypepublic Class<? extends IBaseResource> getResourceType(FhirContext theCtx)
public String getValueAsQueryToken()
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
getValueAsQueryToken in interface IQueryParameterTypepublic void setMissing(Boolean theMissing)
IQueryParameterTypesetMissing in interface IQueryParameterTypepublic void setValueAsQueryToken(String theQualifier, String theValue)
IQueryParameterTypeSee FHIR specification 2.2.2 Search SearchParameter Types for information on the token format
setValueAsQueryToken in interface IQueryParameterTypetheQualifier - 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"public DateParam toDateParam()
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()
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()
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()
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()
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.
Copyright © 2014–2016 University Health Network. All rights reserved.