Chained parameter in CapabilityStatement

Hello,

Where do we express the support of a chained parameter in the CapabilityStatement resource?
Example: We can search DocumentReferences using author:Practitioner.name.

Thx

The SearchParameter.chain element allows you to indicate what chaining is permitted. Typically the CapabilityStatement will reference locally defined SearchParameter instances that are ‘derivedFrom’ standard SearchParameters. The locally-defined (possibly even ‘contained’) SearchParameters will identify the specific local capabilities.

1 Like

Thank you Loyd,

If I am understanding correctly, for searching DocumentReference resources using:

  • the search parameter “patient.identifier”, we create a SearchParameter resource derived from standard “patient” SearchParameter with “chain”:“identifier”.
  • What about “author:Practitioner.name”?
    We create a SearchParameter resource derived from standard “author” SearchParameter with “modifier”:[“type”] and “chain”:[“name”].
    Where do we specify that the resource type allowed for the modifier is Practitioner? In “target”:[“Practitioner”]?

Thank you again for your help

Practitioner would go in SearchParameter.base
You wouldn’t want to specify a modifier.

Isn’t SearchParameter.base for the resource type(s) this search parameter applies to? In my example, for the search parameter “author”, wouldn’t it be DocumentReference?
Or is “author:Practitioner.name” considered as a new parameter applied to Practitioner?
I thought the base should remain unchanged and that we have to specify somewhere else in the SeachParameter resource the type Practitioner as target type of the reference …