FHIR Chat · bug in .net validator/Simplifier? · dotnet

Stream: dotnet

Topic: bug in .net validator/Simplifier?


view this post on Zulip Patrick Werner (Feb 11 2019 at 22:24):

i already reported through Simplifier, but as i am not shure if SImplifier is the problem or the .net validator here the bugreport:
if you validate: https://simplifier.net/basisprofilde/example-patient-de-basis-humanname-komplex you get an Invalid : Instance count for 'HumanName.family.extension:namenszusatz' is 3, which is not within the specified cardinality of 0..1 error. But the mentioned extension is only used once in the example.

view this post on Zulip Patrick Werner (Feb 12 2019 at 10:16):

@Ewout Kramer

view this post on Zulip Michel Rutten (Feb 12 2019 at 10:27):

Hi @Patrick Werner, thank you for the bug report. I'll ask Ewout to take a look at this, as he maintains our validator logic.

view this post on Zulip Mirjam Baltus (Feb 13 2019 at 10:26):

Hi Patrick, I've looked into this issue, and found that you are missing a very important field in the http://fhir.de/StructureDefinition/humanname-namenszusatz/0.2 extension. It is the derivation field, which should contain the indication that your extension is a constraint.

   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
   <derivation value="constraint" />

The validation logic relies on this field to know the intention of the profile, and will produce unexpected errors when it cannot determine that.
As soon as you add that line to your extension, the validation runs smoothly.

view this post on Zulip Patrick Werner (Feb 13 2019 at 16:17):

(deleted)

view this post on Zulip Patrick Werner (Feb 13 2019 at 16:19):

(deleted)

view this post on Zulip Martijn Harthoorn (Feb 14 2019 at 09:11):

Is it possible to make the reporting from the validator explain this?

view this post on Zulip Michel Rutten (Feb 14 2019 at 10:02):

That's not so easy. Like most other fields, the StructureDefinition.derivation field is optional:
http://hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.derivation
However the actual field value is critical for the interpretation.
So it is unclear/ambiguous how to interpret StructureDefinitions that do not include this property.

https://chat.fhir.org/#narrow/stream/179177-conformance/topic/How.20to.20handle.20missing.20StructureDefinition.2Ederivation.3F


Last updated: Apr 12 2022 at 19:14 UTC