/** * Match the referenced resource if the resource has the given ID (this can be * the logical ID or the absolute URL of the resource) */ public ICriterion<ReferenceClientParam> hasId(String theId) { return new StringCriterion<>(getParamName(), theId); }
/** * 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 subsequent {@link IQuery#where(ICriterion) where} criteria * with the same parameter. */ public ICriterion<ReferenceClientParam> hasAnyOfIds(Collection<String> theIds) { return new StringCriterion<>(getParamName(), theIds); }
/** * Include a chained search with a resource type. For example: * <pre> * Bundle resp = ourClient * .search() * .forResource(QuestionnaireResponse.class) * .where(QuestionnaireResponse.SUBJECT.hasChainedProperty("Patient", Patient.FAMILY.matches().value("SMITH"))) * .returnBundle(Bundle.class) * .execute(); * </pre> */ public ICriterion<ReferenceClientParam> hasChainedProperty(String theResourceType, ICriterion<?> theCriterion) { return new ReferenceChainCriterion(getParamName(), theResourceType, theCriterion); }
/** * Include a chained search. For example: * <pre> * Bundle resp = ourClient * .search() * .forResource(QuestionnaireResponse.class) * .where(QuestionnaireResponse.SUBJECT.hasChainedProperty(Patient.FAMILY.matches().value("SMITH"))) * .returnBundle(Bundle.class) * .execute(); * </pre> */ public ICriterion<ReferenceClientParam> hasChainedProperty(ICriterion<?> theCriterion) { return new ReferenceChainCriterion(getParamName(), theCriterion); }
/** * Match the referenced resource if the resource has the given ID (this can be * the logical ID or the absolute URL of the resource) */ public ICriterion<ReferenceClientParam> hasId(IIdType theId) { return new StringCriterion<>(getParamName(), theId.getValue()); }
/** * 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 subsequent {@link IQuery#where(ICriterion) where} criteria * with the same parameter. */ public ICriterion<ReferenceClientParam> hasAnyOfIds(Collection<String> theIds) { return new StringCriterion<>(getParamName(), theIds); }
/** * Match the referenced resource if the resource has the given ID (this can be * the logical ID or the absolute URL of the resource) */ public ICriterion<ReferenceClientParam> hasId(String theId) { return new StringCriterion<>(getParamName(), theId); }
/** * Include a chained search with a resource type. For example: * <pre> * Bundle resp = ourClient * .search() * .forResource(QuestionnaireResponse.class) * .where(QuestionnaireResponse.SUBJECT.hasChainedProperty("Patient", Patient.FAMILY.matches().value("SMITH"))) * .returnBundle(Bundle.class) * .execute(); * </pre> */ public ICriterion<ReferenceClientParam> hasChainedProperty(String theResourceType, ICriterion<?> theCriterion) { return new ReferenceChainCriterion(getParamName(), theResourceType, theCriterion); }
/** * Include a chained search. For example: * <pre> * Bundle resp = ourClient * .search() * .forResource(QuestionnaireResponse.class) * .where(QuestionnaireResponse.SUBJECT.hasChainedProperty(Patient.FAMILY.matches().value("SMITH"))) * .returnBundle(Bundle.class) * .execute(); * </pre> */ public ICriterion<ReferenceClientParam> hasChainedProperty(ICriterion<?> theCriterion) { return new ReferenceChainCriterion(getParamName(), theCriterion); }
/** * Match the referenced resource if the resource has the given ID (this can be * the logical ID or the absolute URL of the resource) */ public ICriterion<ReferenceClientParam> hasId(IIdType theId) { return new StringCriterion<>(getParamName(), theId.getValue()); }