Stream: implementers
Topic: Slicing validation question
Bob Dolin (May 21 2019 at 20:50):
Hi, can anyone help me understand this error message: I'm trying to validate this instance (https://www.hl7.org/fhir/observation-example-bloodpressure.json.html) against this profile (http://hl7.org/fhir/bp.html) using this syntax (java -jar org.hl7.fhir.validator.jar fixed_observation_bp_example.json -profile http://hl7.org/fhir/StructureDefinition/bp) and I'm getting these error messages:
Bob Dolin (May 21 2019 at 20:50):
Error @ Observation.component[1] (line 80, col6) : Error in discriminator at Observation.component:DiastolicBP.code.coding: slicing found
Error @ Observation.component[1] (line 80, col6) : Error in discriminator at Observation.component:SystolicBP.code.coding: slicing found
Error @ Observation.component[2] (line 119, col6) : Error in discriminator at Observation.component:DiastolicBP.code.coding: slicing found
Error @ Observation.component[2] (line 119, col6) : Error in discriminator at Observation.component:SystolicBP.code.coding: slicing found
Lloyd McKenzie (May 21 2019 at 20:52):
It sounds like you have slicing declared on the element that's a discriminator for a higher-level slice. That's not supported.
Grahame Grieve (May 21 2019 at 20:52):
it's not Bob who has that problem. I'll investigate
Oliver Egger (May 21 2019 at 21:08):
@Grahame Grieve see also GF#21472. I documented the different cases in the validator test suite, problem is that the bp profile from fhir is causing the validator to fail. One possibe fix it is to simplify the slicing and use patternCodeableConcept for the components.code in the slicing for the Blood Pressure profile as illustrated in observation-bp-profile.xml, but that would need an update to http://hl7.org/fhir/StructureDefinition/bp.
Grahame Grieve (May 21 2019 at 21:38):
well, it would be simpler to do that, I think. but it should still work anyway
Grahame Grieve (May 21 2019 at 21:39):
the same structure works fine for Observation.code.coding... some bug in the code....
Grahame Grieve (May 22 2019 at 01:47):
ok releasing a fix for this now
Soujanya Rao (May 22 2019 at 18:31):
Thank you fixing the bug. Is this released? If yes, from where can I grab it? I used the link: download the validator: [https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=ca.uhn.hapi.fhir&a=org.hl7.fhir.validation.cli&v=LATEST&e=jar] from http://wiki.hl7.org/index.php?title=Using_the_FHIR_Validator for the earlier version.
Lloyd McKenzie (May 22 2019 at 18:59):
@Grahame Grieve Are we going to move to the new approach for sharing releases of the validator too?
Eric Haas (May 22 2019 at 19:29):
you can make a tracker for bp - check if there already is one first.
Grahame Grieve (May 22 2019 at 19:59):
@Eric Haas what would the task be for ?
@Lloyd McKenzie yes
Eric Haas (May 22 2019 at 20:00):
change slicing for bp to pattern
Grahame Grieve (May 22 2019 at 20:01):
ok worth a task, I think
Last updated: Apr 12 2022 at 19:14 UTC