FHIR Chat · SearchParameter for text-based search · implementers

Stream: implementers

Topic: SearchParameter for text-based search


view this post on Zulip Yunwei Wang (Jun 11 2021 at 18:15):

I want to create a search parameter for Citation.description which is type of markdown. I want to indicate this search is a text-based search capability. For example searching "cancer" returns any Citation with word "cancer" in the description. And searching "lung AND cancer" returns any Citation with words "lung" and "cancer" (not necessarily next to other) in description. The _content and _text search parameters don't match my use case since those are text-based search "on the narrative of the resource, and the entire content of the resource respectively" while I need text-based search on one markdown element. If I create a search parameter as a string type, that means the searching for "cancer" matches only the left most characters on element.
So is there way to define a text-based search parameter?


Last updated: Apr 12 2022 at 19:14 UTC