FHIR Chat · odd CodeSystem case-senitive build error · committers

Stream: committers

Topic: odd CodeSystem case-senitive build error


view this post on Zulip Rob Hausam (Jan 15 2018 at 12:21):

I ran into an odd error when trying to add some code systems and value sets, which appears to me to be due to a somewhat confused throwback to pre-STU3 days. The error is with the "occupation-cdc-census-2010" CodeSystem resource:

 [java] Errors: 1 Warnings: 166 Hints: 641
 [java] 
 [java] ===Resources with FMM forced to 0===
 [java]  3.311 228sec  935MB
 [java] ERROR @ pher:CodeSystem[occupation-cdc-census-2010].codeSystem: Value set codesystem-occupation-cdc-census-2010 (Occupation CDC Census 2010): All value sets that define codes must mark them as case sensitive
 [java] This was a Full Build                                                      0.048 228sec  935MB
 [java] FHIR build failure @ Sun, Jan 14, 2018 07:32-0600                          0.817 229sec  935MB

Even though it's a CodeSystem, the error seems to be treating it as a DSTU2 ValueSet, containing a .codeSystem element. It says that it's one of the "value sets that define codes" and that it must mark them as "case sensitive". Here is the CodeSystem resource that caused the error:

<?xml version="1.0" encoding="UTF-8"?>
<CodeSystem xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../schema/codesystem.xsd">
<id value="occupation-cdc-census-2010"/>
<url value="urn:oid:2.16.840.1.114222.4.5.314"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.114222.4.5.314"/>
</identifier>
<version value="2010"/>
<name value="Occupation CDC Census 2010"/>
<title value="Occupation CDC Census 2010"/>
<status value="active"/>
<publisher value="CDC PHIN Vocab and Msg"/>
<contact>
<telecom>
<system value="url"/>
<value value="https://phinvads.cdc.gov/vads/SearchVocab.action"/>
</telecom>
</contact>
<description value="2010 Occupation coding system used by CDC (NIOSH & NCHS) for coding occupation text. Occupation describes a set of activities or tasks that individuals are paid to perform or, if unpaid, define a person’s contribution to a household/family business/community. This code system includes 2010 U.S. Census Bureau occupation codes with modifications made by CDC for unpaid workers and military occupations. The 2010 Census occupation categories are based on the 2010 BLS Standard Occupational Classification (SOC) system. The PH_Industry_CDC_Census2010 code system should be used in conjunction with this occupation code system when coding both industry and occupation. For more information and instructions on using this coding system, see the instruction manual for CDC-Census I&O coding at: http://www.cdc.gov/niosh/topics/coding/"/>
<caseSensitive value="false"/>
<valueSet value="https://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.114222.4.11.7186"/>
<content value="not-present"/>
</CodeSystem>

It is declared as content "not-present", and therefore doesn't define any codes. Although it's almost certainly irrelevant in regard to the error, the actual codes in the code system (defined in PHIN VADS) are all numeric values and therefore are clearly not case sensitive. But the only way to get around this error that I found was to set CodeSystem.caseSensitive to "true". Then it works.

view this post on Zulip Grahame Grieve (Jan 15 2018 at 12:25):

some of the error messages erroneously say 'value set ' when they mean 'code system'. so that's not a big deal

view this post on Zulip Grahame Grieve (Jan 15 2018 at 12:26):

otherwise, I'll have to look up why you're getting that error message

view this post on Zulip Rob Hausam (Jan 15 2018 at 12:29):

Thanks. At least there is a workaround, but it would be good to get this behaving correctly.

view this post on Zulip Rob Hausam (Jan 23 2018 at 16:38):

@Grahame Grieve Did you figure out anything about this?

view this post on Zulip Grahame Grieve (Jan 23 2018 at 16:53):

so. how do I reproduce it?


Last updated: Apr 12 2022 at 19:14 UTC