FHIR Chat · Class generation from Structure Definition · implementers

Stream: implementers

Topic: Class generation from Structure Definition


view this post on Zulip Werner De Mulder (Mar 21 2022 at 08:50):

Is it possible to build a data model and represent it as classes starting from a Structure Definition?

view this post on Zulip Lloyd McKenzie (Mar 21 2022 at 14:06):

@Werner De Mulder, I'm not completely sure what you mean. Many things are 'possible'. You could create a diagram showing whatever you like. So I suspect I'm missing something in your question :)

view this post on Zulip Werner De Mulder (Mar 21 2022 at 19:24):

@Lloyd McKenzie I would like to know if a structure definition is useful as a reference to build a data model which an application can use to perform some mapping. Since a structure definition describes the structure of a FHIR resource, it could we valuable as a reference for an application to describe a data object.

view this post on Zulip Oliver Egger (Mar 21 2022 at 19:39):

@Werner De Mulder this can be done with Logical Models, where you create StructureDefinition's that describe a 'data object'. The documentation is a bit spare, documentation in the spec , e.g. the CDA standard has been described as a logical model and in the profiling academy of simplifier you find more information

view this post on Zulip Gino Canessa (Mar 21 2022 at 19:42):

@Werner De Mulder I am not sure exactly what you are asking about - I do somewhat generic mapping in code generation. That project takes the core specs (WIP for IGs - they are a bit messier), normalizes them, and passes them via an interface to an exporter that can export class structures, etc..

Is that what you are looking for?

view this post on Zulip Frank Oemig (Mar 23 2022 at 18:13):

Logical models describe hierarchic structures. Do you look for a generator that creates eg. Java classes out of that?


Last updated: Apr 12 2022 at 19:14 UTC