FHIR Chat · Extension on element with multiple types · conformance

Stream: conformance

Topic: Extension on element with multiple types


view this post on Zulip Alexander Henket (May 07 2019 at 02:06):

This came from IPS. There is a profile on MedicationStatement that seeks to extend MedicationStatement.effective[x] (dateTime | Period).

The extension should apply on both effectiveDateTime and effectivePeriod. Forge 21.0 for R4 (@Michel Rutten) will happily allow you to do this by first defining two type slices on effective, one per type, and then slice both slices again for the extension (basically the same thing twice. When you send that through the IG Publisher 0.9.5 (@Grahame Grieve) this is seen as illegal. In any case it is a cumbersome solution and does not scale well as the number of types goes up.

The other option I could think of is just handcrafting the slicing on MedicationStatement.effective[x].extension directly and define the extension once only. That seemed more appropriate, but is not supported by Forge, which will silently throw away that extension. IG Publisher will render that as expected

So question remains: what's the recommended way to define an extension on a polymorphic element?

@Rob Hausam

view this post on Zulip Grahame Grieve (May 07 2019 at 09:16):

we discussed this at the last meeting, and decided on your option 2, and I believe that Rob and I got it working - but I can't speak to when Forge will update for that

view this post on Zulip Rob Hausam (May 07 2019 at 09:18):

Right. We did decide on option 2 and I believe that is working (I can verify). Hadn't tried it out yet with Forge.

view this post on Zulip Alexander Henket (May 07 2019 at 11:37):

Well that's instant satisfaction :-) Thanks both!

view this post on Zulip Michel Rutten (May 07 2019 at 13:46):

Hi @Alexander Henket, let's discuss this during a coffee break.


Last updated: Apr 12 2022 at 19:14 UTC