Bundle or an OperationOutcome.
Supported global search parameters
The following parameters apply to all resources:Supported search parameter types
Each search parameter is defined by a type that specifies how the search parameter behaves. These are the defined parameter types:Support of modifiers/prefixes for number/date search parameter type
Support of modifiers/prefixes for string search parameter type
| Search Parameter Type/Modifier or Prefix | missing | exact | contains |
|---|---|---|---|
| string | - | + | + |
| string.Address | - | - | - |
| string.HumanName | - | + | + |
Support of modifiers/prefixes for token search parameter type
| Search Parameter Type/Modifier or Prefix | missing | text | not | above | below | in | not-in | of-type |
|---|---|---|---|---|---|---|---|---|
| token | + | + | + | - | - | - | - | + |
Support of modifiers/prefixes for reference search parameter type
| Search Parameter Type/Modifier or Prefix | missing | type | identifier | above | below |
|---|---|---|---|---|---|
| reference | + | + | + | - | - |
Support of modifiers/prefixes for uri search parameter type
| Search Parameter Type/Modifier or Prefix | missing | above | below |
|---|---|---|---|
| uri | - | - | - |
Dynamic search
Search in Kodjin FHIR is dynamic. In order to enable search on some new parameter SearchParameter resource should be added via API. Elastic Search index should also be configured.Pagination
Search in Kodjin supports two types of pagination: -offset pagination (with skip or page params). Examples:Handling errors
Kodjin will not return an error if a parameter refers to a non-existent resource e.g.GET [base]/Observation?subject=101, where “101” does not exist, or to an unknown code e.g. GET [base]/Observation?code=loinc|1234-1, where the LOINC code “1234-1” is not known to the server. The response will be an empty search bundle.
Kodjin will return an error if it receives parameters from the client that it does not recognize, or parameters it recognizes but do not support (either in general, or for a specific search).
By default Kodjin FHIR Server ignores unknown or unsupported parameters for the following reasons: various HTTP stacks and proxies may add parameters that aren’t under the control of the client.
Clients can specify how the server should behave, by using the prefer header:-Prefer: handling=strict: Client requests that the server return an error for any unknown or unsupported parameter
-Prefer: handling=lenient: Client requests that the server ignore any unknown or unsupported parameter Example: