FHIR Chat · Search the text of a specific section of Composition · implementers

Stream: implementers

Topic: Search the text of a specific section of Composition


view this post on Zulip 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)

view this post on Zulip Yunwei Wang (Feb 15 2021 at 15:08):

Create an operation?

view this post on Zulip Rik Smithies (Feb 15 2021 at 15:13):

As a workaround, perhaps. But it seems that this might be needed by others.

view this post on Zulip Lin Zhang (Feb 15 2021 at 15:18):

_content?

view this post on Zulip Rik Smithies (Feb 15 2021 at 15:18):

But that is not section specific

view this post on Zulip Yunwei Wang (Feb 15 2021 at 15:19):

_content is not limited to one section.

view this post on Zulip Lloyd McKenzie (Feb 15 2021 at 15:24):

You're free to define your own search parameter

view this post on Zulip 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?

view this post on Zulip 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.)

view this post on Zulip 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.

view this post on Zulip 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.

view this post on Zulip 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?

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip Lloyd McKenzie (Apr 09 2021 at 18:16):

It's defined as only searching resource.text.

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip 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