Skip to main content

SearchParameter

ResourceFoundation · ConformanceTrial useMaturity 3

A search parameter that defines a named search item that can be used to search/filter on a resource.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
17 of 19 parameters tested

Structure​

ElementCard.TypeDescription
urlRequiredΣ
1..1uriCanonical identifier for this search parameter, represented as a URI (globally unique)
versionΣ
0..1stringBusiness version of the search parameter
nameRequiredΣ
1..1stringName for this search parameter (computer friendly)
derivedFrom
0..1canonical(SearchParameter)Original definition for the search parameter
statusRequired?!Σ
1..1codedraft | active | retired | unknownBinding (required): publication-status
experimentalΣ
0..1booleanFor testing purposes, not real usage
dateΣ
0..1dateTimeDate last changed
publisherΣ
0..1stringName of the publisher (organization or individual)
contactΣ
0..*ContactDetailContact details for the publisher
descriptionRequiredΣ
1..1markdownNatural language description of the search parameter
useContextΣ
0..*UsageContextThe context that the content is intended to support
jurisdictionΣ
0..*CodeableConceptIntended jurisdiction for search parameter (if applicable)Binding (extensible): jurisdiction
purpose
0..1markdownWhy this search parameter is defined
codeRequiredΣ
1..1codeCode used in URL
baseRequiredΣ
1..*codeThe resource type(s) this search parameter applies toBinding (required): resource-types
typeRequiredΣ
1..1codenumber | date | string | token | reference | composite | quantity | uri | specialBinding (required): search-param-type
expression
0..1stringFHIRPath expression that extracts the values
xpath
0..1stringXPath that extracts the values
xpathUsage
0..1codenormal | phonetic | nearby | distance | otherBinding (required): search-xpath-usage
target
0..*codeTypes of resource (if a resource reference)Binding (required): resource-types
multipleOr
0..1booleanAllow multiple values per parameter (or)
multipleAnd
0..1booleanAllow multiple parameters (and)
comparator
0..*codeeq | ne | gt | lt | ge | le | sa | eb | apBinding (required): search-comparator
modifier
0..*codemissing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofTypeBinding (required): search-modifier-code
chain
0..*stringChained names supported
component
0..*BackboneElementFor Composite resources to define the parts
definitionRequired
1..1canonical(SearchParameter)Defines how the part works
expressionRequired
1..1stringSubexpression relative to main expression

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/SearchParameter?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
basetoken

The resource type(s) this search parameter applies to

SearchParameter.base
codetoken

Code used in URL

SearchParameter.code
componentreference

Defines how the part works

SearchParameter.component.definition
contexttoken

A use context assigned to the search parameter

(SearchParameter.useContext.value.ofType(CodeableConcept))
context-quantityquantity

A quantity- or range-valued use context assigned to the search parameter

(SearchParameter.useContext.value.ofType(Quantity)) | (SearchParameter.useContext.value.ofType(Range))
context-typetoken

A type of use context assigned to the search parameter

SearchParameter.useContext.code
context-type-quantitycomposite

A use context type and quantity- or range-based value assigned to the search parameter

SearchParameter.useContext
context-type-valuecomposite

A use context type and value assigned to the search parameter

SearchParameter.useContext
datedate

The search parameter publication date

SearchParameter.date
derived-fromreference

Original definition for the search parameter

SearchParameter.derivedFrom
descriptionstring

The description of the search parameter

SearchParameter.description
jurisdictiontoken

Intended jurisdiction for the search parameter

SearchParameter.jurisdiction
namestring

Computationally friendly name of the search parameter

SearchParameter.name
publisherstring

Name of the publisher of the search parameter

SearchParameter.publisher
statustoken

The current status of the search parameter

SearchParameter.status
targettoken

Types of resource (if a resource reference)

SearchParameter.target
typetoken

number | date | string | token | reference | composite | quantity | uri | special

SearchParameter.type
urluri

The uri that identifies the search parameter

SearchParameter.url
versiontoken

The business version of the search parameter

SearchParameter.version

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition