Package ca.uhn.fhir.rest.gclient
Class ReferenceClientParam
- java.lang.Object
-
- ca.uhn.fhir.rest.gclient.ReferenceClientParam
-
- All Implemented Interfaces:
IParam
public class ReferenceClientParam extends Object implements IParam
-
-
Constructor Summary
Constructors Constructor Description ReferenceClientParam(String theName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParamName()Returns the name of this parameterICriterion<ReferenceClientParam>hasAnyOfIds(String... theIds)Match the referenced resource if the resource has ANY of the given IDs (this is an OR search, not an AND search), (this can be the logical ID or the absolute URL of the resource).ICriterion<ReferenceClientParam>hasAnyOfIds(Collection<String> theIds)Match the referenced resource if the resource has ANY of the given IDs (this is an OR search, not an AND search), (this can be the logical ID or the absolute URL of the resource).ICriterion<ReferenceClientParam>hasChainedProperty(ICriterion<?> theCriterion)Include a chained search.ICriterion<ReferenceClientParam>hasChainedProperty(String theResourceType, ICriterion<?> theCriterion)Include a chained search with a resource type.ICriterion<ReferenceClientParam>hasId(String theId)Match the referenced resource if the resource has the given ID (this can be the logical ID or the absolute URL of the resource)ICriterion<ReferenceClientParam>hasId(IIdType theId)Match the referenced resource if the resource has the given ID (this can be the logical ID or the absolute URL of the resource)ICriterion<?>isMissing(boolean theMissing)Sets the:missingqualifier for this parameter.
-
-
-
Constructor Detail
-
ReferenceClientParam
public ReferenceClientParam(String theName)
-
-
Method Detail
-
getParamName
public String getParamName()
Description copied from interface:IParamReturns the name of this parameter- Specified by:
getParamNamein interfaceIParam
-
hasChainedProperty
public ICriterion<ReferenceClientParam> hasChainedProperty(ICriterion<?> theCriterion)
Include a chained search. For example:Bundle resp = ourClient .search() .forResource(QuestionnaireResponse.class) .where(QuestionnaireResponse.SUBJECT.hasChainedProperty(Patient.FAMILY.matches().value("SMITH"))) .returnBundle(Bundle.class) .execute();
-
hasChainedProperty
public ICriterion<ReferenceClientParam> hasChainedProperty(String theResourceType, ICriterion<?> theCriterion)
Include a chained search with a resource type. For example:Bundle resp = ourClient .search() .forResource(QuestionnaireResponse.class) .where(QuestionnaireResponse.SUBJECT.hasChainedProperty("Patient", Patient.FAMILY.matches().value("SMITH"))) .returnBundle(Bundle.class) .execute();
-
hasId
public ICriterion<ReferenceClientParam> hasId(IIdType theId)
Match the referenced resource if the resource has the given ID (this can be the logical ID or the absolute URL of the resource)
-
hasId
public ICriterion<ReferenceClientParam> hasId(String theId)
Match the referenced resource if the resource has the given ID (this can be the logical ID or the absolute URL of the resource)
-
hasAnyOfIds
public ICriterion<ReferenceClientParam> hasAnyOfIds(Collection<String> theIds)
Match the referenced resource if the resource has ANY of the given IDs (this is an OR search, not an AND search), (this can be the logical ID or the absolute URL of the resource). Note that to specify an AND search, simply add a subsequentwherecriteria with the same parameter.
-
hasAnyOfIds
public ICriterion<ReferenceClientParam> hasAnyOfIds(String... theIds)
Match the referenced resource if the resource has ANY of the given IDs (this is an OR search, not an AND search), (this can be the logical ID or the absolute URL of the resource). Note that to specify an AND search, simply add a subsequentwherecriteria with the same parameter.
-
isMissing
public ICriterion<?> isMissing(boolean theMissing)
Description copied from interface:IParamSets the:missingqualifier for this parameter. Set this totrueto indicate that the server should return resources with this valuepopulated
. Set this tofalseto indicate that the server should return resources with this value missing.
-
-