Pariya, The Ocean Template Designer has an export function to generate an XSD based on a template, we call these Template Data Schemas. The schemas are still relatively complex because it incorporate the RM class attributes that are necessary to create a valid openEHR composition from the XML document based on this Template Data Schema. You could probably look at simplifying this schema further if required.
As Ioana mentioned, you can use MS InfoPath to generate a form from these Template Data Schemas but I find it and most other XML tools just can't handle any sort of complexity, which you will very quickly reach with openEHR templates. Similarly, we have attempted to use these schemas with XForms based tools and also find them lacking support for complex situations. We have opted for building components that have more understanding of the openEHR AM and RM to encapsulate this complexity. Heath From: [email protected] [mailto:openehr-technical-bounces at openehr.org] On Behalf Of Pariya Kashfi Sent: Wednesday, 3 December 2008 6:51 PM To: For openEHR technical discussions Subject: Creating GUI based on template xsd file Hi, I wonder whether there exists any document or hints explaining creating of GUI( I mean forms for data entry by end user) or not. I can parse templates to get used archetypes and continue parsing until reaching to leaf nodes and C_Primitive types then create form entries based on them, but I guess it should be another way to do that uses resolveArchetypes method and finally XSD file created. Regards Pariya PhD Student Department of Computing Science and Engineering Chalmers University of Technology http://www.cs.chalmers.se/~hajar.kashfi/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20081210/df69117f/attachment.html>

