Stream: implementers
Topic: Search the text of a specific section of Composition
Rik Smithies (Feb 15 2021 at 15:05):
This doesn't seem possible. Is there a way? It may need a search parameter of Composition.section-text, to be used in conjunction with Composition.section (which is the section code)
Yunwei Wang (Feb 15 2021 at 15:08):
Create an operation?
Rik Smithies (Feb 15 2021 at 15:13):
As a workaround, perhaps. But it seems that this might be needed by others.
Lin Zhang (Feb 15 2021 at 15:18):
_content?
Rik Smithies (Feb 15 2021 at 15:18):
But that is not section specific
Yunwei Wang (Feb 15 2021 at 15:19):
_content is not limited to one section.
Lloyd McKenzie (Feb 15 2021 at 15:24):
You're free to define your own search parameter
Rik Smithies (Feb 15 2021 at 15:25):
but it won't actually work without custom server code I assume. Or is it possible to link a new search parameter to an existing attribute?
Lloyd McKenzie (Feb 15 2021 at 15:44):
No. If there isn't a search parameter you want, you need to define your own and you need to convince servers to support it. (Note that even publishing a 'standard' SearchParameter doesn't guarantee implementers will support it.)
Rik Smithies (Feb 15 2021 at 16:02):
right, thanks. So now we've established that this isn't available out of the box, I will propose it as a change and see if others think it is a worthwhile feature.
Rik Smithies (Feb 15 2021 at 17:51):
I think this would require a composite search parameter e.g. Composition.section-code-text, because you want to search the code and the text of the same section.
Rik Smithies (Apr 09 2021 at 15:52):
does the existing _text common search parameter search all narrative sections of a Composition (i.e. Composition.section.text) and not just Composition.text?
Lloyd McKenzie (Apr 09 2021 at 16:33):
_text
only searches narrative. If you want to search all strings in the instance, you have to use _content
Rik Smithies (Apr 09 2021 at 16:46):
yes but Composition.section.text is narrative, which is what _text is defined as searching. Or is _text defined as only searching resource.text? Those are not synonymous.
Lloyd McKenzie (Apr 09 2021 at 18:16):
It's defined as only searching resource.text.
Rik Smithies (Apr 09 2021 at 18:39):
But:
3.1.1.4.20 Text Search Parameters
The special text search parameters, _text and _content, search on the narrative of the resource, and the entire content of the resource respectively
Lloyd McKenzie (Apr 09 2021 at 19:17):
The narrative of the resource is Resource.text. The fact the narrative type happens to be used elsewhere in Composition doesn't mean it's "narrative of the resource". It's defined on DomainResource - and there, Resource.text is the only thing that exists.
Rik Smithies (Apr 13 2021 at 15:46):
I have raised
https://jira.hl7.org/browse/FHIR-31743
https://jira.hl7.org/browse/FHIR-31880
to allow searching the text of documents
Last updated: Apr 12 2022 at 19:14 UTC