FHIR
Infrastructure
![]() | Maturity Level : 3 | Trial Use | Security Category : Anonymous | Compartments : Not linked to any defined compartments |
A search parameter that defines a named search item that can be used to search/filter on a resource.
A
SearchParameter
resource
specifies
a
search
parameter
that
may
be
used
on
the
RESTful
API
to
search
or
filter
on
a
resource.
The
SearchParameter
resource
declares:
Implementers should be familiar with the background and concepts described in Search on the RESTful API before working with this resource.
There is a registry of all Search Parameters .
This
resource
is
referenced
by
CapabilityStatement
,
CapabilityStatement2
and
itself
itself.
This resource does not implement any patterns.
Structure
Name | Flags | Card. | Type |
Description
&
Constraints
![]() |
---|---|---|---|---|
![]() ![]() |
|
|
Search
parameter
for
a
resource
+ Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation + Rule: If an xpath is present, there SHALL be an xpathUsage + Rule: Search parameters can only have chain names when the search parameter type is 'reference' Elements defined in Ancestors: id , meta , implicitRules , language , text , contained , extension , modifierExtension , url , identifier , version , name , title , status , experimental , date , publisher , contact , description , useContext , jurisdiction , purpose , copyright | |
![]() ![]() ![]() | Σ | 1..1 | uri | Canonical identifier for this search parameter, represented as a URI (globally unique) |
![]() ![]() ![]() | Σ | 0..1 | string | Business version of the search parameter |
![]() ![]() ![]() | Σ I | 1..1 | string | Name for this search parameter (computer friendly) |
![]() ![]() ![]() | 0..1 | canonical ( SearchParameter ) | Original definition for the search parameter | |
![]() ![]() ![]() | ?! Σ | 1..1 | code |
draft
|
active
|
retired
|
unknown
PublicationStatus ( Required ) |
![]() ![]() ![]() | Σ | 0..1 | boolean | For testing purposes, not real usage |
![]() ![]() ![]() | Σ | 0..1 | dateTime | Date last changed |
![]() ![]() ![]() | Σ | 0..1 | string | Name of the publisher (organization or individual) |
![]() ![]() ![]() | Σ | 0..* | ContactDetail |
Contact
details
for
the
publisher
|
![]() ![]() ![]() | Σ | 1..1 | markdown | Natural language description of the search parameter |
![]() ![]() ![]() | Σ | 0..* | UsageContext |
The
context
that
the
content
is
intended
to
support
|
![]() ![]() ![]() | Σ | 0..* | CodeableConcept |
Intended
jurisdiction
for
search
parameter
(if
applicable)
Jurisdiction ( Extensible ) |
![]() ![]() ![]() | 0..1 | markdown | Why this search parameter is defined | |
![]() ![]() ![]() | Σ | 1..1 | code | Code used in URL |
![]() ![]() ![]() | Σ | 1..* | code |
The
resource
type(s)
this
search
parameter
applies
to
ResourceType ( Required ) |
![]() ![]() ![]() | Σ | 1..1 | code |
number
|
date
|
string
|
token
|
reference
|
composite
|
quantity
|
uri
|
special
SearchParamType ( Required ) |
![]() ![]() ![]() | I | 0..1 | string | FHIRPath expression that extracts the values |
![]() ![]() ![]() | I | 0..1 | string | XPath that extracts the values |
![]() ![]() ![]() | I | 0..1 | code |
normal
|
phonetic
|
nearby
|
distance
|
other
XPathUsageType ( Required ) |
![]() ![]() ![]() | 0..* | code |
Types
of
resource
(if
a
resource
reference)
ResourceType ( Required ) | |
![]() ![]() ![]() | 0..1 | boolean | Allow multiple values per parameter (or) | |
![]() ![]() ![]() | 0..1 | boolean | Allow multiple parameters (and) | |
![]() ![]() ![]() | 0..* | code |
eq
|
ne
|
gt
|
lt
|
ge
|
le
|
sa
|
eb
|
ap
SearchComparator ( Required ) | |
![]() ![]() ![]() | 0..* | code |
missing
|
exact
|
contains
|
not
|
text
|
in
|
not-in
|
below
|
above
|
type
|
identifier
|
ofType
SearchModifierCode ( Required ) | |
![]() ![]() ![]() | 0..* | string |
Chained
names
supported
| |
![]() ![]() ![]() | 0..* | BackboneElement |
For
Composite
resources
to
define
the
parts
| |
![]() ![]() ![]() ![]() | 1..1 | canonical ( SearchParameter ) | Defines how the part works | |
![]() ![]() ![]() ![]() | 1..1 | string | Subexpression relative to main expression | |
![]() |
UML Diagram ( Legend )
XML Template
<SearchParameter xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language -->
<!-- from --><url value="[uri]"/><!-- 1..1 Canonical identifier for this search parameter, represented as a URI (globally unique) --> <version value="[string]"/><!-- 0..1 Business version of the search parameter --><<name value="[string]"/><!--1..1 Name for this search parameter (computer friendly) --> <derivedFrom><!-- 0..1 canonical(SearchParameter) Original definition for the search parameter --></derivedFrom> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 1..1 Natural language description of the search parameter --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for search parameter (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this search parameter is defined --> <code value="[code]"/><!-- 1..1 Code used in URL --> <base value="[code]"/><!-- 1..* The resource type(s) this search parameter applies to --> <type value="[code]"/><!-- 1..1 number | date | string | token | reference | composite | quantity | uri | special --> <expression value="[string]"/><!--
0..1 FHIRPath expression that extracts the values --> <xpath value="[string]"/><!--
0..1 XPath that extracts the values --> <xpathUsage value="[code]"/><!--
0..1 normal | phonetic | nearby | distance | other --> <target value="[code]"/><!-- 0..* Types of resource (if a resource reference) --> <multipleOr value="[boolean]"/><!-- 0..1 Allow multiple values per parameter (or) --> <multipleAnd value="[boolean]"/><!-- 0..1 Allow multiple parameters (and) --> <comparator value="[code]"/><!-- 0..* eq | ne | gt | lt | ge | le | sa | eb | ap --> <modifier value="[code]"/><!-- 0..* missing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofType --> <chain value="[string]"/><!-- 0..* Chained names supported --> <component> <!-- 0..* For Composite resources to define the parts --> <definition><!-- 1..1 canonical(SearchParameter) Defines how the part works --></definition> <expression value="[string]"/><!-- 1..1 Subexpression relative to main expression --> </component> </SearchParameter>
JSON Template
{"resourceType" : "SearchParameter", // from Resource: id, meta, implicitRules, and language
// from"url" : "<uri>", // R! Canonical identifier for this search parameter, represented as a URI (globally unique) "version" : "<string>", // Business version of the search parameter""name" : "<string>", // C? R! Name for this search parameter (computer friendly) "derivedFrom" : { canonical(SearchParameter) }, // Original definition for the search parameter "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // R! Natural language description of the search parameter "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for search parameter (if applicable) "purpose" : "<markdown>", // Why this search parameter is defined "code" : "<code>", // R! Code used in URL "base" : ["<code>"], // R! The resource type(s) this search parameter applies to "type" : "<code>", // R! number | date | string | token | reference | composite | quantity | uri | special "expression" : "<string>", // C? FHIRPath expression that extracts the values "xpath" : "<string>", // C? XPath that extracts the values "xpathUsage" : "<code>", // C? normal | phonetic | nearby | distance | other "target" : ["<code>"], // Types of resource (if a resource reference) "multipleOr" : <boolean>, // Allow multiple values per parameter (or) "multipleAnd" : <boolean>, // Allow multiple parameters (and) "comparator" : ["<code>"], // eq | ne | gt | lt | ge | le | sa | eb | ap "modifier" : ["<code>"], // missing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofType "chain" : ["<string>"], // Chained names supported "component" : [{ // For Composite resources to define the parts "definition" : { canonical(SearchParameter) }, // R! Defines how the part works "expression" : "<string>" // R! Subexpression relative to main expression }] }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:SearchParameter; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language
# fromfhir:SearchParameter.url [ uri ]; # 1..1 Canonical identifier for this search parameter, represented as a URI (globally unique) fhir:SearchParameter.version [ string ]; # 0..1 Business version of the search parameter fhir:SearchParameter.name [ string ]; # 1..1 Name for this search parameter (computer friendly) fhir:SearchParameter.derivedFrom [ canonical(SearchParameter) ]; # 0..1 Original definition for the search parameter fhir:SearchParameter.status [ code ]; # 1..1 draft | active | retired | unknown fhir:SearchParameter.experimental [ boolean ]; # 0..1 For testing purposes, not real usage fhir:SearchParameter.date [ dateTime ]; # 0..1 Date last changed fhir:SearchParameter.publisher [ string ]; # 0..1 Name of the publisher (organization or individual) fhir:SearchParameter.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:SearchParameter.description [ markdown ]; # 1..1 Natural language description of the search parameter fhir:SearchParameter.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:SearchParameter.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for search parameter (if applicable) fhir:SearchParameter.purpose [ markdown ]; # 0..1 Why this search parameter is defined fhir:SearchParameter.code [ code ]; # 1..1 Code used in URL fhir:SearchParameter.base [ code ], ... ; # 1..* The resource type(s) this search parameter applies to fhir:SearchParameter.type [ code ]; # 1..1 number | date | string | token | reference | composite | quantity | uri | special fhir:SearchParameter.expression [ string ]; # 0..1 FHIRPath expression that extracts the values fhir:SearchParameter.xpath [ string ]; # 0..1 XPath that extracts the values fhir:SearchParameter.xpathUsage [ code ]; # 0..1 normal | phonetic | nearby | distance | other fhir:SearchParameter.target [ code ], ... ; # 0..* Types of resource (if a resource reference) fhir:SearchParameter.multipleOr [ boolean ]; # 0..1 Allow multiple values per parameter (or) fhir:SearchParameter.multipleAnd [ boolean ]; # 0..1 Allow multiple parameters (and) fhir:SearchParameter.comparator [ code ], ... ; # 0..* eq | ne | gt | lt | ge | le | sa | eb | ap fhir:SearchParameter.modifier [ code ], ... ; # 0..* missing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofType fhir:SearchParameter.chain [ string ], ... ; # 0..* Chained names supported fhir:SearchParameter.component [ # 0..* For Composite resources to define the parts fhir:SearchParameter.component.definition [ canonical(SearchParameter) ]; # 1..1 Defines how the part works fhir:SearchParameter.component.expression [ string ]; # 1..1 Subexpression relative to main expression ], ...; ]
Changes since R3
SearchParameter | |
|
|
SearchParameter.base |
|
SearchParameter.type |
|
SearchParameter.xpathUsage |
|
SearchParameter.target |
|
SearchParameter.comparator |
|
SearchParameter.modifier |
|
See the Full Difference for further information
This analysis is available as XML or JSON .
See R3 <--> R4 Conversion Maps (status = 3 tests that all execute ok. All tests pass round-trip testing and 3 r3 resources are invalid (0 errors). )
Structure
Name | Flags | Card. | Type |
Description
&
Constraints
![]() |
---|---|---|---|---|
![]() ![]() |
|
|
Search
parameter
for
a
resource
+ Warning: Name should be usable as an identifier for the module by machine processing applications such as code generation + Rule: If an xpath is present, there SHALL be an xpathUsage + Rule: Search parameters can only have chain names when the search parameter type is 'reference' Elements defined in Ancestors: id , meta , implicitRules , language , text , contained , extension , modifierExtension , url , identifier , version , name , title , status , experimental , date , publisher , contact , description , useContext , jurisdiction , purpose , copyright | |
![]() ![]() ![]() | Σ | 1..1 | uri | Canonical identifier for this search parameter, represented as a URI (globally unique) |
![]() ![]() ![]() | Σ | 0..1 | string | Business version of the search parameter |
![]() ![]() ![]() | Σ I | 1..1 | string | Name for this search parameter (computer friendly) |
![]() ![]() ![]() | 0..1 | canonical ( SearchParameter ) | Original definition for the search parameter | |
![]() ![]() ![]() | ?! Σ | 1..1 | code |
draft
|
active
|
retired
|
unknown
PublicationStatus ( Required ) |
![]() ![]() ![]() | Σ | 0..1 | boolean | For testing purposes, not real usage |
![]() ![]() ![]() | Σ | 0..1 | dateTime | Date last changed |
![]() ![]() ![]() | Σ | 0..1 | string | Name of the publisher (organization or individual) |
![]() ![]() ![]() | Σ | 0..* | ContactDetail |
Contact
details
for
the
publisher
|
![]() ![]() ![]() | Σ | 1..1 | markdown | Natural language description of the search parameter |
![]() ![]() ![]() | Σ | 0..* | UsageContext |
The
context
that
the
content
is
intended
to
support
|
![]() ![]() ![]() | Σ | 0..* | CodeableConcept |
Intended
jurisdiction
for
search
parameter
(if
applicable)
Jurisdiction ( Extensible ) |
![]() ![]() ![]() | 0..1 | markdown | Why this search parameter is defined | |
![]() ![]() ![]() | Σ | 1..1 | code | Code used in URL |
![]() ![]() ![]() | Σ | 1..* | code |
The
resource
type(s)
this
search
parameter
applies
to
ResourceType ( Required ) |
![]() ![]() ![]() | Σ | 1..1 | code |
number
|
date
|
string
|
token
|
reference
|
composite
|
quantity
|
uri
|
special
SearchParamType ( Required ) |
![]() ![]() ![]() | I | 0..1 | string | FHIRPath expression that extracts the values |
![]() ![]() ![]() | I | 0..1 | string | XPath that extracts the values |
![]() ![]() ![]() | I | 0..1 | code |
normal
|
phonetic
|
nearby
|
distance
|
other
XPathUsageType ( Required ) |
![]() ![]() ![]() | 0..* | code |
Types
of
resource
(if
a
resource
reference)
ResourceType ( Required ) | |
![]() ![]() ![]() | 0..1 | boolean | Allow multiple values per parameter (or) | |
![]() ![]() ![]() | 0..1 | boolean | Allow multiple parameters (and) | |
![]() ![]() ![]() | 0..* | code |
eq
|
ne
|
gt
|
lt
|
ge
|
le
|
sa
|
eb
|
ap
SearchComparator ( Required ) | |
![]() ![]() ![]() | 0..* | code |
missing
|
exact
|
contains
|
not
|
text
|
in
|
not-in
|
below
|
above
|
type
|
identifier
|
ofType
SearchModifierCode ( Required ) | |
![]() ![]() ![]() | 0..* | string |
Chained
names
supported
| |
![]() ![]() ![]() | 0..* | BackboneElement |
For
Composite
resources
to
define
the
parts
| |
![]() ![]() ![]() ![]() | 1..1 | canonical ( SearchParameter ) | Defines how the part works | |
![]() ![]() ![]() ![]() | 1..1 | string | Subexpression relative to main expression | |
![]() |
XML Template
<SearchParameter xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language -->
<!-- from --><url value="[uri]"/><!-- 1..1 Canonical identifier for this search parameter, represented as a URI (globally unique) --> <version value="[string]"/><!-- 0..1 Business version of the search parameter --><<name value="[string]"/><!--1..1 Name for this search parameter (computer friendly) --> <derivedFrom><!-- 0..1 canonical(SearchParameter) Original definition for the search parameter --></derivedFrom> <status value="[code]"/><!-- 1..1 draft | active | retired | unknown --> <experimental value="[boolean]"/><!-- 0..1 For testing purposes, not real usage --> <date value="[dateTime]"/><!-- 0..1 Date last changed --> <publisher value="[string]"/><!-- 0..1 Name of the publisher (organization or individual) --> <contact><!-- 0..* ContactDetail Contact details for the publisher --></contact> <description value="[markdown]"/><!-- 1..1 Natural language description of the search parameter --> <useContext><!-- 0..* UsageContext The context that the content is intended to support --></useContext> <jurisdiction><!-- 0..* CodeableConcept Intended jurisdiction for search parameter (if applicable) --></jurisdiction> <purpose value="[markdown]"/><!-- 0..1 Why this search parameter is defined --> <code value="[code]"/><!-- 1..1 Code used in URL --> <base value="[code]"/><!-- 1..* The resource type(s) this search parameter applies to --> <type value="[code]"/><!-- 1..1 number | date | string | token | reference | composite | quantity | uri | special --> <expression value="[string]"/><!--
0..1 FHIRPath expression that extracts the values --> <xpath value="[string]"/><!--
0..1 XPath that extracts the values --> <xpathUsage value="[code]"/><!--
0..1 normal | phonetic | nearby | distance | other --> <target value="[code]"/><!-- 0..* Types of resource (if a resource reference) --> <multipleOr value="[boolean]"/><!-- 0..1 Allow multiple values per parameter (or) --> <multipleAnd value="[boolean]"/><!-- 0..1 Allow multiple parameters (and) --> <comparator value="[code]"/><!-- 0..* eq | ne | gt | lt | ge | le | sa | eb | ap --> <modifier value="[code]"/><!-- 0..* missing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofType --> <chain value="[string]"/><!-- 0..* Chained names supported --> <component> <!-- 0..* For Composite resources to define the parts --> <definition><!-- 1..1 canonical(SearchParameter) Defines how the part works --></definition> <expression value="[string]"/><!-- 1..1 Subexpression relative to main expression --> </component> </SearchParameter>
JSON Template
{"resourceType" : "SearchParameter", // from Resource: id, meta, implicitRules, and language
// from"url" : "<uri>", // R! Canonical identifier for this search parameter, represented as a URI (globally unique) "version" : "<string>", // Business version of the search parameter""name" : "<string>", // C? R! Name for this search parameter (computer friendly) "derivedFrom" : { canonical(SearchParameter) }, // Original definition for the search parameter "status" : "<code>", // R! draft | active | retired | unknown "experimental" : <boolean>, // For testing purposes, not real usage "date" : "<dateTime>", // Date last changed "publisher" : "<string>", // Name of the publisher (organization or individual) "contact" : [{ ContactDetail }], // Contact details for the publisher "description" : "<markdown>", // R! Natural language description of the search parameter "useContext" : [{ UsageContext }], // The context that the content is intended to support "jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for search parameter (if applicable) "purpose" : "<markdown>", // Why this search parameter is defined "code" : "<code>", // R! Code used in URL "base" : ["<code>"], // R! The resource type(s) this search parameter applies to "type" : "<code>", // R! number | date | string | token | reference | composite | quantity | uri | special "expression" : "<string>", // C? FHIRPath expression that extracts the values "xpath" : "<string>", // C? XPath that extracts the values "xpathUsage" : "<code>", // C? normal | phonetic | nearby | distance | other "target" : ["<code>"], // Types of resource (if a resource reference) "multipleOr" : <boolean>, // Allow multiple values per parameter (or) "multipleAnd" : <boolean>, // Allow multiple parameters (and) "comparator" : ["<code>"], // eq | ne | gt | lt | ge | le | sa | eb | ap "modifier" : ["<code>"], // missing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofType "chain" : ["<string>"], // Chained names supported "component" : [{ // For Composite resources to define the parts "definition" : { canonical(SearchParameter) }, // R! Defines how the part works "expression" : "<string>" // R! Subexpression relative to main expression }] }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:SearchParameter; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language
# fromfhir:SearchParameter.url [ uri ]; # 1..1 Canonical identifier for this search parameter, represented as a URI (globally unique) fhir:SearchParameter.version [ string ]; # 0..1 Business version of the search parameter fhir:SearchParameter.name [ string ]; # 1..1 Name for this search parameter (computer friendly) fhir:SearchParameter.derivedFrom [ canonical(SearchParameter) ]; # 0..1 Original definition for the search parameter fhir:SearchParameter.status [ code ]; # 1..1 draft | active | retired | unknown fhir:SearchParameter.experimental [ boolean ]; # 0..1 For testing purposes, not real usage fhir:SearchParameter.date [ dateTime ]; # 0..1 Date last changed fhir:SearchParameter.publisher [ string ]; # 0..1 Name of the publisher (organization or individual) fhir:SearchParameter.contact [ ContactDetail ], ... ; # 0..* Contact details for the publisher fhir:SearchParameter.description [ markdown ]; # 1..1 Natural language description of the search parameter fhir:SearchParameter.useContext [ UsageContext ], ... ; # 0..* The context that the content is intended to support fhir:SearchParameter.jurisdiction [ CodeableConcept ], ... ; # 0..* Intended jurisdiction for search parameter (if applicable) fhir:SearchParameter.purpose [ markdown ]; # 0..1 Why this search parameter is defined fhir:SearchParameter.code [ code ]; # 1..1 Code used in URL fhir:SearchParameter.base [ code ], ... ; # 1..* The resource type(s) this search parameter applies to fhir:SearchParameter.type [ code ]; # 1..1 number | date | string | token | reference | composite | quantity | uri | special fhir:SearchParameter.expression [ string ]; # 0..1 FHIRPath expression that extracts the values fhir:SearchParameter.xpath [ string ]; # 0..1 XPath that extracts the values fhir:SearchParameter.xpathUsage [ code ]; # 0..1 normal | phonetic | nearby | distance | other fhir:SearchParameter.target [ code ], ... ; # 0..* Types of resource (if a resource reference) fhir:SearchParameter.multipleOr [ boolean ]; # 0..1 Allow multiple values per parameter (or) fhir:SearchParameter.multipleAnd [ boolean ]; # 0..1 Allow multiple parameters (and) fhir:SearchParameter.comparator [ code ], ... ; # 0..* eq | ne | gt | lt | ge | le | sa | eb | ap fhir:SearchParameter.modifier [ code ], ... ; # 0..* missing | exact | contains | not | text | in | not-in | below | above | type | identifier | ofType fhir:SearchParameter.chain [ string ], ... ; # 0..* Chained names supported fhir:SearchParameter.component [ # 0..* For Composite resources to define the parts fhir:SearchParameter.component.definition [ canonical(SearchParameter) ]; # 1..1 Defines how the part works fhir:SearchParameter.component.expression [ string ]; # 1..1 Subexpression relative to main expression ], ...; ]
Changes since Release 3
SearchParameter | |
|
|
SearchParameter.base |
|
SearchParameter.type |
|
SearchParameter.xpathUsage |
|
SearchParameter.target |
|
SearchParameter.comparator |
|
SearchParameter.modifier |
|
See the Full Difference for further information
This analysis is available as XML or JSON .
See R3 <--> R4 Conversion Maps (status = 3 tests that all execute ok. All tests pass round-trip testing and 3 r3 resources are invalid (0 errors). )
See
the
Profiles
&
Extensions
and
the
alternate
definitions:
Master
Definition
XML
+
JSON
,
XML
Schema
/
Schematron
+
JSON
Schema
,
ShEx
(for
Turtle
)
+
see
,
the
extensions
spreadsheet
version
&
the
dependency
analysis
a
Path | Definition | Type | Reference |
---|---|---|---|
SearchParameter.status |
| Required | PublicationStatus |
SearchParameter.jurisdiction |
| Extensible | Jurisdiction ValueSet |
SearchParameter.base
|
| Required |
|
SearchParameter.type |
| Required | SearchParamType |
SearchParameter.xpathUsage |
| Required | XPathUsageType |
SearchParameter.target | Required | ResourceType | |
SearchParameter.comparator |
| Required | SearchComparator |
SearchParameter.modifier |
| Required | SearchModifierCode |
id | Level | Location | Description | Expression |
| Warning | (base) | Name should be usable as an identifier for the module by machine processing applications such as code generation | name.matches('[A-Z]([A-Za-z0-9_]){0,254}') |
spd-1 | Rule | (base) | If an xpath is present, there SHALL be an xpathUsage | xpath.empty() or xpathUsage.exists() |
spd-2 | Rule | (base) | Search parameters can only have chain names when the search parameter type is 'reference' | chain.empty() or type = 'reference' |
The
SearchParameter
resource
may
be
used
to
define
searches
on
extensions.
Depending
on
the
context
of
the
extension
(as
defined
in
the
StructureDefinition
),
this
may
require
multiple
instances
of
the
SearchParameter.xpath
element
like
so:
xpath
elements
corresponding
to
the
elements
specified
in
the
extension's
context,
e.g.
"f:Patient/f:name/f:extension[@url='extension
url']"
SearchParameter.base
must
be
set
to
"DomainResource".
xpath
element
with
the
full
URL
of
the
Extension
to
indicate
that
the
SearchParameter
would
search
in
all
elements
of
the
given
SearchParameter.base
resource
for
the
given
extension.
Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Expression | In Common |
base N | token | The resource type(s) this search parameter applies to | SearchParameter.base | |
code N | token | Code used in URL | SearchParameter.code | |
component N | reference | Defines how the part works |
SearchParameter.component.definition
( SearchParameter ) | |
context | token | A use context assigned to the search parameter | (SearchParameter.useContext.value as CodeableConcept) | |
context-quantity | quantity | A quantity- or range-valued use context assigned to the search parameter | (SearchParameter.useContext.value as Quantity) | (SearchParameter.useContext.value as Range) | |
context-type | token | A type of use context assigned to the search parameter | SearchParameter.useContext.code | |
context-type-quantity | composite | A use context type and quantity- or range-based value assigned to the search parameter |
On
SearchParameter.useContext:
context-type: code context-quantity: value.as(Quantity) | value.as(Range) | |
context-type-value | composite | A use context type and value assigned to the search parameter |
On
SearchParameter.useContext:
context-type: code context: value.as(CodeableConcept) | |
date N | date | The search parameter publication date | SearchParameter.date | |
derived-from N | reference | Original definition for the search parameter |
SearchParameter.derivedFrom
( SearchParameter ) | |
description N | string | The description of the search parameter | SearchParameter.description | |
jurisdiction | token | Intended jurisdiction for the search parameter | SearchParameter.jurisdiction | |
name N | string | Computationally friendly name of the search parameter | SearchParameter.name | |
publisher N | string | Name of the publisher of the search parameter | SearchParameter.publisher | |
status N | token | The current status of the search parameter | SearchParameter.status | |
target N | token | Types of resource (if a resource reference) | SearchParameter.target | |
type N | token | number | date | string | token | reference | composite | quantity | uri | special | SearchParameter.type | |
url N | uri | The uri that identifies the search parameter | SearchParameter.url | |
version N | token | The business version of the search parameter | SearchParameter.version |