Stream: conformance
Topic: token param :text modifier behaviour
Simone Heckmann (Jul 30 2020 at 08:05):
Spec for the :text modifier on token parameters says:
:text The search parameter is processed as a string that searches text associated with the code/value - either CodeableConcept.text, Coding.display, or Identifier.type.text. In this case, the search functions as a normal string search
However, I think the usual requirement would be to run a full text search on the elements, not a left aligned match as per definition of the string type (e.g. search for "prostate" should return both "Prostate cancer" and "Cancer of prostate".
I tried to add the :contains modifier to the :text modifier, but Vonk didn't accept the search and I see no documentation in the spec that says that it should.
Are modifiers on modifiers allowed?
Simone Heckmann (Jul 30 2020 at 08:06):
@Christiaan Knaap
Alexander Zautke (Jul 30 2020 at 08:25):
No, it's not allowed. See https://jira.hl7.org/browse/FHIR-3031
Simone Heckmann (Jul 30 2020 at 10:21):
:sad:
Christiaan Knaap (Aug 04 2020 at 12:53):
For specific cases however you may be able to define a custom searchparameter on cc.text | cc.code.display
(pseudo fhirpath) and then use :contains
on that.
Last updated: Apr 12 2022 at 19:14 UTC