FHIR Chat · Schematron vs IG Publisher · committers

Stream: committers

Topic: Schematron vs IG Publisher


view this post on Zulip Sarah Gaunt (Aug 07 2016 at 03:34):

Extension constraint sdf-5 is "sdf-5: If the structure defines an extension then the structure must have context information (expression : type != 'Extension' or derivation = 'specialization' or (context.exists() and contextType.exists()))"

But the corresponding Schematron is:
<sch:assert test="not(f:type/@value = 'extension') or (f:derivation/@value = 'constraint') or (exists(f:context) and exists(f:contextType))">sdf-5: If the structure defines an extension then the structure must have context information</sch:assert>

Should the Schematron not be:
<sch:assert test="not(f:type/@value = 'Extension') or (f:derivation/@value = 'specialization') or (exists(f:context) and exists(f:contextType))">sdf-5: If the structure defines an extension then the structure must have context information</sch:assert>

Or is sdf-5 wrong?

My Extension StructureDefinition passes Schematron but fails in the IG publisher...

view this post on Zulip Grahame Grieve (Aug 07 2016 at 06:22):

agree. The schematron is incorrect. I'll commit a correct one

view this post on Zulip Sarah Gaunt (Aug 07 2016 at 06:24):

Thanks!


Last updated: Apr 12 2022 at 19:14 UTC