FHIR Chat · Can FSH be used to build a new Resource definition? · shorthand

Stream: shorthand

Topic: Can FSH be used to build a new Resource definition?


view this post on Zulip Dazhi Jiao (Jun 16 2020 at 15:25):

Mark and Chris, I went to your presentation at the DevDays yesterday. It was a great talk! I wonder if FSH could be used to build a new Resource type? We have to create completely new Resource types and currently we're using the Excel spreadsheets to build it. It would be nice if we could use FSH to do it. Thanks!

view this post on Zulip Lloyd McKenzie (Jun 16 2020 at 15:26):

Be aware that new resource types are not FHIR-conformant - and are unlikely to work with most FHIR tooling or implementations.

view this post on Zulip Dazhi Jiao (Jun 16 2020 at 15:29):

Yes. That's another question I have. Right now we're running a build process to generate some Java files in a semi-automated process which is a pain. I think the problem we have is that the models we are building doesn't have a good existing Resource to extend from. Any suggestions?

view this post on Zulip Lloyd McKenzie (Jun 16 2020 at 15:31):

Basic is the 'conformant' solution to that issue. Have you raised the use-case on the #implementers stream?

view this post on Zulip Chris Moesel (Jun 16 2020 at 15:32):

Hi @Dazhi Jiao! I'm glad you enjoyed it. FHIR Shorthand currently supports defining profiles, extensions, value sets, and code systems. It does not support defining new resources. We'll continue to enhance FSH in future versions based on what the community needs. We already plan to support logical models, as we've received many requests for that; but we haven't yet seen sufficient interest in defining new resources...

You always have the option to use FHIR Shorthand to define an Instance of a StructureDefinition -- but I imagine that would be a very tedious approach to defining new resources.

view this post on Zulip Dazhi Jiao (Jun 16 2020 at 15:36):

@Lloyd McKenzie Thanks! I'll look at the Basic resource. I'll check the implementers stream.

view this post on Zulip Dazhi Jiao (Jun 16 2020 at 15:36):

@Chris Moesel Thank you for the answer! I look forward to the let's build session tomorrow, btw.

view this post on Zulip Chris Moesel (Jun 16 2020 at 16:08):

@Dazhi Jiao -- Great! Just so you know, 40 minutes isn't enough time to do the exercise, so we'll just be answering questions and going over the solution during the session. So if you have a chance to work on it before the session, that's probably the ideal situation!


Last updated: Apr 12 2022 at 19:14 UTC