FHIR Chat · snapshot generator throwing Exceptions · hapi

Stream: hapi

Topic: snapshot generator throwing Exceptions


view this post on Zulip Patrick Werner (Apr 26 2020 at 13:01):

I tried the current 5.0.0 Snapshot hapi validation libraries and got the following exception:
Exception in thread "main" org.hl7.fhir.exceptions.FHIRException: Error at path Practitioner.name.family.extension: Type slicing with slicing.rules != closed
I think this issue was already removed in the newest validator. Using just the newest java-Validator I am getting: Unable to generate snapshot for KBV_PR_FOR_Patient from Patient because Error at path Patient.name.prefix.extension.value[x] in https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient: Type slicing with slicing.ordered = true

view this post on Zulip Patrick Werner (Apr 26 2020 at 13:03):

So the current Snapshotgenerator doesn't support ordered type slicing?

view this post on Zulip Grahame Grieve (Apr 26 2020 at 20:07):

there's no such thing as ordered type slicing

view this post on Zulip Patrick Werner (Apr 26 2020 at 20:14):

oh! :face_palm:‍♂️

view this post on Zulip Patrick Werner (Apr 27 2020 at 07:02):

Ok, i revisited the Elementdefinition, StructureDefinition and the profiling page and couldn't find a constraint preventing using ordered with type. Also couldn't find any textual rules. Simplifier/.net snapshots/validates the same profile without a problem.

view this post on Zulip Grahame Grieve (Apr 27 2020 at 09:37):

ok. it's not a stated constraint. But how does it make sense? Maybe you want to take it up on #conformance but it can't be ordered since max cardinality = 1

view this post on Zulip Patrick Werner (Apr 27 2020 at 10:46):

Not saying it makes sense, just dealing with profiles created by other (official) parties. Thanks for the clarification, will take it to #conformance to ask for adding a constraint.


Last updated: Apr 12 2022 at 19:14 UTC