Stream: implementers
Topic: token :text modifier on Identifier
Paul Church (Aug 21 2019 at 21:40):
Token search with modifier :text states that it searches on CodeableConcept.text, Coding.display, or Identifier.type.text.
Why is Identifier.type.text in that list? A token search on Identifier without :of-type uses Identifier.system as URI and Identifier.value as code, so it does not seem to make sense to search on the text version of the Identifier type. It doesn't look like :of-type and :text can be combined.
Lloyd McKenzie (Aug 21 2019 at 21:50):
Identifier.type.text is where you would put something like "Michigan state physician license". I.e. the label for what kind of identifier you're dealing with.
Paul Church (Aug 21 2019 at 22:01):
Yes - doesn't it seem odd to be searching on the type of identifier instead of the content of the identifier? You can't do that on a CodeableConcept, it searches the text representation of the value rather than the system.
Lloyd McKenzie (Aug 21 2019 at 22:16):
It's not the same, but it's useful :)
Troy Biesterfeld (Apr 06 2021 at 13:33):
At https://www.hl7.org/fhir/search.html#modifiers, it mentions:
For token: :text (the match does a partial searches on the text portion of a CodeableConcept or the display portion of a Coding), instead of the default search which uses codes.
The absence of Identifier.type.text makes it seem like it should not be included for :text searches; as it does feel a bit out of place in the first place.
Lloyd McKenzie (Apr 06 2021 at 16:35):
It's definitely intended to be included for :text searches. If you think it needs to be listed in both places, please submit a change request.
Lee Surprenant (Apr 06 2021 at 17:27):
I agree with @Paul Church that this seems odd. If searching the Identifier.type is useful (in certain cases), why not create a search parameter to search that as its own token?
Lloyd McKenzie (Apr 06 2021 at 18:53):
The same reason we don't make you define a separate search parameter to search the text of CodeableConcepts. If you have a 'token' search parameter against an element of type Identifier, we wanted an easy consistent way to search the identifier 'label' - which lives in Identifier.type.text. And the :text
modifier was what was landed on. It's now normative, so it's not changing.
Lee Surprenant (Apr 06 2021 at 19:21):
its seems a lot different than searching on the text value of a CodeableConcept to me
Lee Surprenant (Apr 06 2021 at 19:23):
also, the two definitions for :text sort of conflict, so we thought (hoped) that maybe which is the normative one could still be up for debate
Lee Surprenant (Apr 06 2021 at 19:36):
I opened https://jira.hl7.org/browse/FHIR-31708 which could be used to update the definition under the modifiers section to explain the strange Identifier.type behavior (if you wish)
Lloyd McKenzie (Apr 06 2021 at 22:23):
Both uses are normative, but we can certainly make the usage explicit in both places.
Last updated: Apr 12 2022 at 19:14 UTC