Package ca.uhn.fhir.rest.param
Class TokenOrListParam
java.lang.Object
ca.uhn.fhir.rest.param.BaseOrListParam<TokenOrListParam,TokenParam>
ca.uhn.fhir.rest.param.TokenOrListParam
- All Implemented Interfaces:
IQueryParameterOr<TokenParam>
,Serializable
This class represents a restful search operation parameter for an "OR list" of tokens (in other words, a
list which can contain one-or-more tokens, where the server should return results matching any of the tokens)
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new empty token "OR list"TokenOrListParam
(String theSystem, String... theValues) Create a new token "OR list" with a single token, or multiple tokens which have the same system value -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BaseCodingDt theCodingDt) Convenience method which adds a token to this OR list using the system and code from a codingvoid
add
(BaseIdentifierDt theIdentifierDt) Convenience method which adds a token to this OR list using the system and value from an identifierAdd a new token to this listAdd a new token to this listaddOr
(TokenParam theParameter) boolean
doesCodingListMatch
(List<? extends BaseCodingDt> theCodings) Methods inherited from class ca.uhn.fhir.rest.param.BaseOrListParam
add, getValuesAsQueryTokens, setValuesAsQueryTokens, size, toString
-
Constructor Details
-
TokenOrListParam
public TokenOrListParam()Create a new empty token "OR list" -
TokenOrListParam
Create a new token "OR list" with a single token, or multiple tokens which have the same system value- Parameters:
theSystem
- The system to use for the one token to pre-populate in this listtheValues
- The values to use for the one token to pre-populate in this list
-
-
Method Details
-
add
Convenience method which adds a token to this OR list using the system and code from a coding -
add
Convenience method which adds a token to this OR list using the system and value from an identifier -
add
Add a new token to this list- Parameters:
theSystem
- The system to use for the one token to pre-populate in this list
-
add
Add a new token to this list -
getListAsCodings
-
doesCodingListMatch
-
addOr
- Specified by:
addOr
in classBaseOrListParam<TokenOrListParam,
TokenParam>
-