FHIR Chat · IG Publisher not enforcing All Slices constraints · conformance

Stream: conformance

Topic: IG Publisher not enforcing All Slices constraints


view this post on Zulip Liam Barnes (Sep 24 2020 at 23:29):

It appears that the IG Publisher is not enforcing cardinality constraints on specific slices when those constraints are placed on the common root element (i.e. All Slices). Can I please confirm that if constraints are placed on the common element, they should then apply to specific slices of that element? Thanks.

view this post on Zulip Grahame Grieve (Sep 28 2020 at 22:57):

they should. do you have an example?

view this post on Zulip Rachel Evans (Sep 29 2020 at 01:51):

Hi Grahame, here's a dummy profile where we are trying to ban extension & modifierExtension on all slices, but the validator isn't throwing an error for an example that contains those elements. test-input-params.xml

view this post on Zulip Grahame Grieve (Oct 07 2020 at 23:53):

I don't follow this. @Rachel Evans what isn't being validated correctly? do you have an example instance that should fail?

view this post on Zulip Rachel Evans (Oct 08 2020 at 00:32):

Hi @Grahame Grieve,
Here is a dummy profile of parameters where we have banned extension & modifierExtension on the common/base element : test-input-params-profile.xml
Here is an example instance which contains extension & modifierExtension for one of the parameter slices: test-input-params-example1.xml
We would expect the IG Publisher validator to throw an error for this example instance but it doesn't.

view this post on Zulip Grahame Grieve (Oct 08 2020 at 02:42):

ok thanks. fixed next release


Last updated: Apr 12 2022 at 19:14 UTC