Stream: implementers
Topic: Question about documentation
Joan Harper (Oct 20 2020 at 20:15):
I'm not sure if this is the right place for this.
Section 2.27.4 of the base specification seems to be worded incorrectly. the third sentence says that "Searching for extensions is the same... " but the first two sentences were about searching for extensions. Is the third sentence referring to a different type of extension?
Yunwei Wang (Oct 20 2020 at 21:26):
First, I think you refers to FHIR R4. http://hl7.org/fhir/domainresource.html#search
"All other search parameters are named aliases for existing content in the resource ... Searching for extensions is the same ..." The first part states how a search parameter on regular resource is name. The second part states that a search parameter for extension follows the same pattern.
Joan Harper (Oct 20 2020 at 21:50):
Yes. That is what I am referring to, although when looking again, it is the 4th sentence that I am questioning. The full text of that section is:
To search for extensions, define a SearchParameter for the extension. All other search parameters are named aliases for existing content in the resource. In some cases, though not all, the search parameter name is the same as the element that it searches, but this is not required. Searching for extensions is the same - define a name that identifies the value extension by its URL, and then searches can filter based on the value of the extension.
Sentence #1 says "To search for extensions ..."
Sentence #4 says "Searching for extensions is the same ..."
My question is - are there multiple types of extensions? or perhaps multiple types of searches?
I'm pretty new to FHIR, so I am working my way through the Foundation Module as a start.
Paul Church (Oct 20 2020 at 21:59):
There's only one kind of extension. "Searching for extensions is the same" connects to the overall idea of search parameters - like other search parameters, a search parameter defined for an extension is an alias from a name (typically a short lowercase word) to a path in the resource, which for an extension is identified by its URL.
Joan Harper (Oct 20 2020 at 22:06):
So is this just poorly worded?
To set up searching, you would define a SearchParameter for the extension. Then the extension could be searched by the SearchParameter or a named alias (which is a URL)?
Am I on the right track?
Paul Church (Oct 20 2020 at 22:15):
Yes, the wording is a bit odd but I don't think it's incorrect.
Search is always done by a named alias, which is a word or multiple-dashed-words. A SearchParameter is the metadata resource that defines an alias and what it means. The URL is the identity of the extension, which is referred to in the SearchParameter - it's not what you'd put in the search query.
Joan Harper (Oct 20 2020 at 22:18):
Thank you for the explanation
Last updated: Apr 12 2022 at 19:14 UTC