FHIR Chat · Validation of code - case sensitivity · dotnet

Stream: dotnet

Topic: Validation of code - case sensitivity


view this post on Zulip Stephen Lloyd (May 23 2018 at 12:25):

Hi,
As the validator seems to complain when checking codes if they are not the equivalent case (we've just tried some user input of "Unknown" for http://hl7.org/fhir/data-absent-reason when it should be "unknown". This seems to be (from a quick parsing of the code) in ValueSetExpansionExtensions.cs FindCode() as a "==" string compare. Is there any possibility to allow case insensitive code validation on entries to make the user's life a little easier or would that break some case specific specification?

Cheers,
Stephen

view this post on Zulip Richard Kavanagh (May 23 2018 at 16:20):

@Stephen Lloyd Whether the codes are case sensitive or not is a property of the code system that the code is from. In your case this is described here http://hl7.org/fhir/codesystem-data-absent-reason.json and as you will see this code system is case sensitive. As such "Unknown" and "unkown" are not the same. (See FHIR @ http://hl7.org/fhir/STU3/codesystem-definitions.html#CodeSystem.caseSensitive)

view this post on Zulip Stephen Lloyd (May 24 2018 at 08:52):

@Richard Kavanagh Thank you, that's a really helpful answer & in brings my attention to a property I had missed. For anyone else that may be interested https://www.hl7.org/fhir/terminologies.html


Last updated: Apr 12 2022 at 19:14 UTC