Stream: implementers
Topic: token search case sensitive?
Yunwei Wang (Nov 30 2021 at 14:46):
When running a token search using system|code
pattern, the case sensitivity of the code
part if defined by CodeSystem.caseSensitive as specified at http://build.fhir.org/search.html#token.
Is the case sensitive of system
part also defined by CodeSystem.caseSensitive, for example: code=http://snomed.info/SCT|123456
Grahame Grieve (Nov 30 2021 at 18:23):
system is always case sensitive, though it's very bad form to create code systems that differ only in case. And we never will. I'm sure that we say this somewhere
Alexander Henket (Nov 30 2021 at 18:27):
system is uri. uri says https://www.hl7.org/fhir/datatypes.html#uri
A Uniform Resource Identifier Reference (RFC 3986 ). Note: URIs are case sensitive. ...
Lloyd McKenzie (Nov 30 2021 at 19:18):
Right. So is it legal - yup. Is it a horrible horrible thing to do - definitely. So just don't :)
Yunwei Wang (Nov 30 2021 at 20:08):
I know that system is a uri when standing alone. I am just a little bit confused that in the form [parameter]=[system]|[code]
, is system still a uri or part of the token.
My taken from the thread is that though system is part of the token search (in the pattern above) but it is not part of the token value.
Lloyd McKenzie (Nov 30 2021 at 21:49):
URIs are always case sensitive. They're not impacted by the CodeSystem.caseSensitive flag.
John Moehrke (Nov 30 2021 at 21:56):
is that true about the host part? I know that URL the hostname part is case insensitive, where the path is sensitive.
Grahame Grieve (Nov 30 2021 at 21:57):
that's only true for URLs. It's not true for URIs
John Moehrke (Nov 30 2021 at 21:57):
good to know.
Last updated: Apr 12 2022 at 19:14 UTC