Annotation Type Search
-
@Retention(RUNTIME) @Target(METHOD) public @interface Search
RESTful method annotation used for a method which provides the FHIR "search" method. See the FHIR Search definition for more information.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowUnknownParamsIn a REST server, should this method be invoked even if it does not have method parameters which correspond to all of the URL parameters passed in by the client (default isfalse).StringcompartmentNameIf specified, this the name for the compartmentStringqueryNameIf specified, this the name for the Named QueryClass<? extends IBaseResource>typeThe return type for this method.
-
-
-
Element Detail
-
queryName
String queryName
If specified, this the name for the Named QuerySee the FHIR specification section on named queries
- Default:
- ""
-
-
-
compartmentName
String compartmentName
If specified, this the name for the compartmentSee the FHIR specification section on compartments
- Default:
- ""
-
-
-
type
Class<? extends IBaseResource> type
The return type for this method. This generally does not need to be populated for IResourceProvider instances in a server implementation, but often does need to be populated in client implementations usingIBasicClientorIRestfulClient, or in plain providers on a server.This value also does not need to be populated if the return type for a method annotated with this annotation is sufficient to determine the type of resource provided. E.g. if the method returns
PatientorList<Patient>, the server/client will automatically determine that the Patient resource is the return type, and this value may be left blank.- Default:
- org.hl7.fhir.instance.model.api.IBaseResource.class
-
-
-
allowUnknownParams
boolean allowUnknownParams
In a REST server, should this method be invoked even if it does not have method parameters which correspond to all of the URL parameters passed in by the client (default isfalse).Use this method with caution: Methods marked with a value of
truewill be greedy, meaning they may handle invocations you had intended to be handled by other search methods. Such a method may be invoked as long as any method parameters marked asrequiredhave been satisfied. If there are other methods which have parameters marked asoptionalwhich would technically be a better match, either the this method or the other method might be called.- Default:
- false
-
-