Zen Search Parameters
Since the 2405 release, using Aidbox in FHIRSchema mode is recommended, which is incompatible with zen or Entity/Attribute options.
Setup Aidbox with FHIR Schema validation engine
Zen Search Parameters will be ignored if Aidbox operates with the FHIR Schema validator engine. Please contact us if you need assistance migrating to FHIR Search Parameters.
Most of the Search Parameters from IG work with Zen by default, also you can make a new one.
Assuming you already know how to use configuration projects, let's learn how to create zen search parameter by example:
First we import aidbox.search-parameter.v1
and aidbox.repository.v1
namespaces from edn files. These are zen-namespaces we need to make an aidbox/service
which name is repositories
.
This service is our concept of wrapping resourceType-specific entities, as search parameters, indexes, and more, into one entity, called repository. We will add indexes for search parameters soon.
We have one repository for Patient resourceType: patient-repository
. It contains :search-parameters
key with new SearchParameter my-parameter
.
SearchParameter must contain:
resource, containing resourceType and id
jsonknife expression containing path in the resource to search for
name to use in search
After your Aidbox loads the service, you can use new search parameter:
You can always look into the definition of Aidbox-specific namespaces in Profiles page
Formal Zen SearchParameters description:
SearchParameter
Zen SearchParameter validation schema:
SearchParameter must contain following keys:
name - Name of search parameter
type - FHIR type of search parameter, this value should be one of:
string
,number
,date
,token
,quantity
,reference
oruri
.resource is a map which consists of two keys:
resourceType - "Entity"
id - FHIR Resource type
expression - jsonknife expression containing path in the resource to search for
Repository
Zen Repository validation schema:
Repository keys:
resourceType - FHIR resource type
extra-parameter-sources (required) -
:all
search-parameters - set of SearchParameters
Composite search parameter
Read Composite Search Parameters first.
Composite search parameter must contain additional key: components. It must be a nested array in following structure:
In this example we create SearchParameter with name composite-string-date
which will look for two parts: one is string, the other is date.
This request
will search somename
in name.given
and name.family
, 2023-08-01
in mydate
in SomeType resources.
Last updated