
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
ConstructorsConstructorDescriptionConstructorReferenceParam(String theValue) ConstructorReferenceParam(String theChain, String theValue) ConstructorReferenceParam(String theResourceType, String theChain, String theValue) ConstructorReferenceParam(IIdType theValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleangetChain()Class<? extends IBaseResource> getResourceType(FhirContext theCtx) getValue()booleanhasChain()Returnstrueif this parameter has a chain value (i.e.inthashCode()booleanbooleanbooleanprotected booleanDoes this parameter type support chained parameters (only reference should returntruefor this)setMdmExpand(boolean theMdmExpand) Note that the parameter to this method must be a resource reference, e.g123orPatient/123orhttp://example.com/fhir/Patient/123or 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, isEmpty, setMissing, setValueAsQueryTokenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.fhir.model.api.IQueryParameterType
getValueAsQueryToken
-
Constructor Details
-
ReferenceParam
public ReferenceParam()Constructor -
ReferenceParam
Constructor -
ReferenceParam
Constructor -
ReferenceParam
Constructor -
ReferenceParam
Constructor- Since:
- 5.0.0
-
-
Method Details
-
getBaseUrl
-
isMdmExpand
-
setMdmExpand
-
hasChain
Returnstrueif this parameter has a chain value (i.e.getChain()will not return null or an empty string)- Since:
- 8.6.0
-
getChain
-
setChain
-
getIdPart
-
getIdPartAsBigDecimal
-
getIdPartAsLong
-
getResourceType
-
getResourceType
-
getValue
-
setValue
Note that the parameter to this method must be a resource reference, e.g123orPatient/123orhttp://example.com/fhir/Patient/123or 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:BaseParamDoes this parameter type support chained parameters (only reference should returntruefor this)- Overrides:
isSupportsChainin 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
-
equals
-
hashCode
-