Stream: conformance
Topic: tx.fhir.org validation issues?
Kevin Power (Sep 29 2018 at 18:58):
I was using tx.fhir.org/r4 to validate some StructureDefintions, and keep seeing two errors that I can't explain:
error StructureDefinition.snapshot.element[16] Min <= Max () min.empty() or max.empty() or (max = '') or iif(max != '', min <= max.toInteger()) invariant
error StructureDefinition.snapshot.element[16] Must have a modifier reason if isModifier = true () isModifier implies isModifierReason.exists() invariant
Here is the file that generates the error:
StructureDefinition-obs-base.json
The latest HAPI FHIR server for r4 seems to accept the same file without these issues.
Grahame Grieve (Sep 29 2018 at 19:09):
how were you validating it?
Kevin Power (Sep 29 2018 at 19:12):
Using the Upload Services on the UI
Grahame Grieve (Sep 29 2018 at 19:13):
k thx. I'll investigate
Patrick Werner (Sep 29 2018 at 19:13):
Its the same using Postman
Patrick Werner (Sep 29 2018 at 19:13):
(deleted)
Grahame Grieve (Sep 29 2018 at 19:44):
bug. fixed. I'll deploy my server soon
Kevin Power (Sep 30 2018 at 12:21):
I also get this error, which I think it showing up when isModifier = false?
StructureDefinition.snapshot.element[0] Must have a modifier reason if isModifier = true () isModifier implies isModifierReason.exists()
Same file as I referenced before. Still using Upload Services on the UI.
Grahame Grieve (Sep 30 2018 at 14:52):
I'll have a look - not sure when though
Last updated: Apr 12 2022 at 19:14 UTC