Package ca.uhn.fhir.rest.param
Class ReferenceParam
java.lang.Object
ca.uhn.fhir.rest.param.BaseParam
ca.uhn.fhir.rest.param.ReferenceParam
- All Implemented Interfaces:
IQueryParameterType
,Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructorReferenceParam
(String theValue) ConstructorReferenceParam
(String theChain, String theValue) ConstructorReferenceParam
(String theResourceType, String theChain, String theValue) ConstructorReferenceParam
(IIdType theValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetChain()
Class
<? extends IBaseResource> getResourceType
(FhirContext theCtx) getValue()
boolean
boolean
boolean
protected boolean
Does this parameter type support chained parameters (only reference should returntrue
for this)setMdmExpand
(boolean theMdmExpand) Note that the parameter to this method must be a resource reference, e.g123
orPatient/123
orhttp://example.com/fhir/Patient/123
or something like this.toDateParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toDateParam
.toNumberParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toNumberParam
.toQuantityParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toQuantityParam
.toString()
toStringParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toStringParam
.toTokenParam
(FhirContext theContext) Returns a new param containing the same value as this param, but with the type copnverted toTokenParam
.Methods inherited from class ca.uhn.fhir.rest.param.BaseParam
getMissing, getQueryParameterQualifier, getValueAsQueryToken, setMissing, setValueAsQueryToken
-
Constructor Details
-
ReferenceParam
public ReferenceParam()Constructor -
ReferenceParam
Constructor -
ReferenceParam
Constructor -
ReferenceParam
Constructor -
ReferenceParam
Constructor- Since:
- 5.0.0
-
-
Method Details
-
getBaseUrl
-
isMdmExpand
-
setMdmExpand
-
getChain
-
setChain
-
getIdPart
-
getIdPartAsBigDecimal
-
getIdPartAsLong
-
getResourceType
-
getResourceType
-
getValue
-
setValue
Note that the parameter to this method must be a resource reference, e.g123
orPatient/123
orhttp://example.com/fhir/Patient/123
or something like this. This is not appropriate for cases where a chain is being used and the value is for a different type of parameter (e.g. a token). In that case, use one of the setter constructors. -
hasResourceType
-
isSupportsChain
Description copied from class:BaseParam
Does this parameter type support chained parameters (only reference should returntrue
for this)- Overrides:
isSupportsChain
in classBaseParam
-
toDateParam
Returns a new param containing the same value as this param, but with the type copnverted toDateParam
. 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.
-
toNumberParam
Returns a new param containing the same value as this param, but with the type copnverted toNumberParam
. 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.
-
toQuantityParam
Returns a new param containing the same value as this param, but with the type copnverted toQuantityParam
. 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.
-
toString
-
toStringParam
Returns a new param containing the same value as this param, but with the type copnverted toStringParam
. 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.
-
toTokenParam
Returns a new param containing the same value as this param, but with the type copnverted toTokenParam
. 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.
-
isIdPartValidLong
-