Stream: IG creation
Topic: Error in discriminator at ...: slicing found
Chris Moesel (Apr 17 2019 at 14:20):
Some of the examples in our mCODE IG cause errors to be reported in the qa.html file when the example contains Observation.components that have been sliced. As best I can tell, the example is actually valid.
The errors look like this:
Path: Observation/mCODEGeneticVariantFoundExample01: Observation.component[1]
Severity: error
Message: Error in discriminator at Observation.component-GenomicSourceClass.code.coding: slicing found
This error is repeated for each component in the example, for each component slice in the profile. (I.e., if the profile defines 4 slices and the example contains 4 components, we'll see an error like the one above a total of 16 times).
Based on the error message I thought it might be because the slicing discriminator path at Observation.component
overlaps the slicing discriminator path at Observation.component.code.coding
-- but in reviewing the official FHIR BP profile, I see that it's done the same exact way -- so I assume it is valid.
Here is a screenshot of part of the FHIR BP profile (on left) and part of our profile (on right):
pasted image
Am I missing something or is this potentially an issue in the validator?
Morten Ernebjerg (Apr 22 2019 at 18:46):
This sounds like the validation error discussed in this thread in which case it is actually it's actually a bug in the STU3 spec, specifically an incorrect constraint (corrected for R4). The good news is that it will be fixed in the upcoming technical correction to STU3, cf. GF 20339.
Chris Moesel (Apr 22 2019 at 19:53):
@Morten Ernebjerg -- thank you for pointing out that thread to me. I somehow missed it! I'll look forward to the technical correction then!
Oliver Egger (May 06 2019 at 09:50):
@Chris Moesel the error you describe appears also with the current validator on the official blood pressure profile with R4. I described it in GF#21472. If you change your profile to use pattern/code slicing and patternCodeableConcept within the components you can work around the error message, see: https://github.com/hapifhir/org.hl7.fhir.core/blob/30803a7a410bec0d9c3f52b34dd799c5aa3a9830/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile.xml
Last updated: Apr 12 2022 at 19:14 UTC