Hi Georg, Do not confuse the RM model aspects with a particular serialisation format's aspects.
RM is technology agnostic, it contains a definition of types which can be implemented via most mainstream (OO) programming languages. Json or XML form of data is a 'serialisation' of an object, which is an implementation of an RM type in a language you don't even have to know about. The type field is a requirement of the serialisation format, so that deserialising code can create the correct instance of the RM types for the correct attributes. The RM has no need of a type field, it is based on type definitions already. RM uses inheritance (and generics in combination with that) at various locations in the types it defines and this is the reason the type field in the serialised formalism is needed. It is the same with any mainstream serialisation library that serialises objects which come from a type system that supports inheritance. Nothing specific to openEHR. Keep this in mind: RM Definitions -> Rm implementation(s) -> Data serialisation/deserialisation -> (XML/JSON/bla) The @type field is required at the last two levels. Cheers Seref On Wed, Oct 9, 2019 at 10:27 AM Georg Fette <georg.fe...@uni-wuerzburg.de> wrote: > Hello, > Which is the field that stores the RM-model-type of data elements ? When > I use the ocean instance generator the json contains a field called > "@xsi:type", which contains this information. Where in the RM-model > itself is this type-field defined ? > Greetings > Georg > > -- > --------------------------------------------------------------------- > Dipl.-Inf. Georg Fette Raum: B001 > Universität Würzburg Tel.: +49-(0)931-31-85516 > Am Hubland Fax.: +49-(0)931-31-86732 > 97074 Würzburg mail: georg.fe...@uni-wuerzburg.de > --------------------------------------------------------------------- > > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical@lists.openehr.org > > http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org >
_______________________________________________ openEHR-technical mailing list openEHR-technical@lists.openehr.org http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org