FHIR Chat · Slicing validation question · implementers

Stream: implementers

Topic: Slicing validation question


view this post on Zulip 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:

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip Grahame Grieve (May 21 2019 at 20:52):

it's not Bob who has that problem. I'll investigate

view this post on Zulip 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.

view this post on Zulip Grahame Grieve (May 21 2019 at 21:38):

well, it would be simpler to do that, I think. but it should still work anyway

view this post on Zulip Grahame Grieve (May 21 2019 at 21:39):

the same structure works fine for Observation.code.coding... some bug in the code....

view this post on Zulip Grahame Grieve (May 22 2019 at 01:47):

ok releasing a fix for this now

view this post on Zulip 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.

view this post on Zulip 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?

view this post on Zulip Eric Haas (May 22 2019 at 19:29):

you can make a tracker for bp - check if there already is one first.

view this post on Zulip Grahame Grieve (May 22 2019 at 19:59):

@Eric Haas what would the task be for ?
@Lloyd McKenzie yes

view this post on Zulip Eric Haas (May 22 2019 at 20:00):

change slicing for bp to pattern

view this post on Zulip Grahame Grieve (May 22 2019 at 20:01):

ok worth a task, I think


Last updated: Apr 12 2022 at 19:14 UTC