FHIR Chat · Bindings on polymorphic elements · IG creation

Stream: IG creation

Topic: Bindings on polymorphic elements


view this post on Zulip Lloyd McKenzie (Feb 04 2022 at 02:45):

There's a new message that spits out a warning about there being bindings on polymorphic elements. I'm generally in favor of this, but there are a few problems:

  • It complains even when the bindings are example bindings defined on the root resource - which is a place where slicing isn't possible. Can we get it to only yell about bindings declared in the differential, not the snapshot?
  • It complains even when only one of the types in the choice is subject to being bound. It'd be nice if it didn't do that - though we probably need to add some language that clarifies what elements are subject to bindings and what aren't. (And we should automatically strip bindings from elements that have been constrained to only include types that can't be bound.)

view this post on Zulip Grahame Grieve (Feb 04 2022 at 02:59):

I can skip the check in snapshot. There's some screwy corner cases where that would miss the hint, but it should generally be in the ancestor anyway

view this post on Zulip Grahame Grieve (Feb 04 2022 at 02:59):

I've pared the hint to only check for bindable types, and only report the bindable types


Last updated: Apr 12 2022 at 19:14 UTC