@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Search
| Modifier and Type | Optional Element and Description |
|---|---|
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 is
false). |
String |
compartmentName
If specified, this the name for the compartment
|
String |
queryName
If specified, this the name for the Named Query
|
Class<? extends IBaseResource> |
type
The return type for this method.
|
public abstract String queryName
See the FHIR specification section on named queries
public abstract String compartmentName
See the FHIR specification section on compartments
public abstract Class<? extends IBaseResource> type
IBasicClient or
IRestfulClient, 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 Patient or List<Patient>, the server/client
will automatically determine that the Patient resource is the return type, and this value
may be left blank.
public abstract boolean allowUnknownParams
false).
Use this method with caution: Methods marked with a value of true will
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 as required have been satisfied. If there are other methods
which have parameters marked as optional which would technically be
a better match, either the this method or the other method might be called.
Copyright © 2014–2019 University Health Network. All rights reserved.