FHIR Chat · Complex extensions · implementers

Stream: implementers

Topic: Complex extensions


view this post on Zulip Pranitha Sruthi (Dec 19 2017 at 06:14):

Hi all, please specify the scenarios where 'Complex Extensions' are used. What is the difference between a normal extension and a complex extension? Thank you

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 06:49):

A simple extension has a value. A complex extension just has child extensions.

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 06:50):

So complex extensions are used to represent objects with multiple properties. Simple extensions convey a single data type value (though the data type might be a complex data type and the value itself might have extensions)

view this post on Zulip Pranitha Sruthi (Dec 19 2017 at 06:50):

@Lloyd McKenzie Ok. Can you quote an example scenario where the complex extensions are used?

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 06:52):

The Patient-citizenship extension includes both a code and a period

view this post on Zulip Pranitha Sruthi (Dec 19 2017 at 06:55):

I have created a sample extension and specified the datatype as codeable concept as in the screenshot complexextension.PNG
Out of four extensions, the datatype is specified only for the first and the last child extensions. What about the data type of the remaining child extensions?

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 06:57):

Umm, you may have gotten a bit carried away there... What you should have is Extension, id, extension (no children) and valueCodeableConcept

view this post on Zulip Pranitha Sruthi (Dec 19 2017 at 07:00):

complex-extension2.PNG
Is this a complex extension?

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 07:14):

Yes - though you'll need to specify a slice name for each of the component extensions and identify what data types are allowed for each to make it useful.

view this post on Zulip Pranitha Sruthi (Dec 19 2017 at 07:16):

Ok thank you.
@Lloyd McKenzie Also, can I mention the same datatype for all the slice elements?

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 07:34):

Sure, if that's what you need.

view this post on Zulip Pranitha Sruthi (Dec 19 2017 at 09:19):

Can I use complex extension to specify each drug classification?

view this post on Zulip Lloyd McKenzie (Dec 19 2017 at 15:37):

A complex extension that had a code for classification type and another property with the actual code could work. I wouldn't recommend a single extension that listed each classification level.


Last updated: Apr 12 2022 at 19:14 UTC