# Information Model vs AOM **Category:** [Technical (archive)](https://discourse.openehr.org/c/technical-archive/156) **Created:** 2009-03-31 11:49 UTC **Views:** 7 **Replies:** 4 **URL:** https://discourse.openehr.org/t/information-model-vs-aom/14282 --- ## Post #1 by @Paria_Kashfi Hi, I've three basic questions about IM and AOM: Assuming that a connection between GUI forms and templates( consequently Archetypes) has been established, still the connection between Information Model and Archetype Model is not clear for me. The only connection I could find between these two models is based on Locatable class which has been inereited in both categories: AOM and IM. Does it mean that after data entry, validation will be done using archetype object in memory, and then data will be set in RMObject, to be set in EHR composition? Moreover, I did not manage to find enough description on the relation between different classed on Archetypes( namely sections, compositons,...) and what is presented in IM, like Composition. My perception is that archetype constraints like composition, section, ... will be used to validate entered info. Is there any document explaining the relation between IM and AOM ? On the other hand, as far as I understood, the only information about archetypes that is stored in EHR, is the archetype Id that will be stored in the EHR composition through the RMObject. Is that right? Does it mean that later on, by retrieving every EHR related Archetypes will be accessible using these IDs? Regards Pariya PhD Student Department of Computing Science and Engineering Chalmers University of Technology [http://www.cs.chalmers.se/~hajar.kashfi/](http://www.cs.chalmers.se/~hajar.kashfi/) --- ## Post #2 by @Seref Hi Pariya, Comments are inline, and corrections are most welcommed in case I am wrong about any of them :) --- ## Post #3 by @thomas.beale just one modification of Seref's comprehensive answer... you can tell what archetypes were used in any top-level entity, i.e. Composition, Party, Directory, EHR Access etc - see the architecture overview. Archetype ids and node ids in the data are all that is needed to reconnect the data with the relevant archetypes (usually via templates; the template id is also in the data, but can be ignored as well). - thomas beale Seref Arikan wrote: [details="(attachments)"] ![OceanC\_small.png|74x72](upload://5I367QG2SMJUp18Pt3jF6yz13Ey.png) [/details] --- ## Post #4 by @Paria_Kashfi Hi, Thanks to Seref for this comprehensive and very helpful reply. I appreciate it. I had totally missed rm-type-name which with this explanation is now clear for me. P.S: what keeps me going while I'm overwhelmed and confused by all specifications and documents is this mailing list and responsive members like Seref and Thomas ;) -Pariya --- ## Post #5 by @Seref Hi Pariya, Glad to hear it helps. If you want to see all of this in action, download Ocean's open source archeytype designer, and debug the code. [vb.net](http://vb.net) is easy to follow in syntax, and it should let you see how things are connected together. Load an archetype, and view the interface generated for it in the archetype designer. What happens at the background is quite similar to what I've described. Though I did not test the debugger, SharpDevelop ([http://www.icsharpcode.net/OpenSource/SD/](http://www.icsharpcode.net/OpenSource/SD/)) should help you out, in case you don't have access to Visual Studio. Kind regards Seref --- **Canonical:** https://discourse.openehr.org/t/information-model-vs-aom/14282 **Original content:** https://discourse.openehr.org/t/information-model-vs-aom/14282