I am new to openEHR system. We are using archetype designer for our research. I have created some template using “https://tools.openehr.org/designer”. I would like to export these template in XML or OPT format, so that I can use these templates at “https://toolkit.cabolabs.com/app/free_tools”.
I can see opt format option available, but it is giving message like “Cannot export embedded template to OPT.”
Could you please help me with exporting template in opt or xml formate?
Hi,
The archetype designer has a very straightforward export option that allows you to export your template to OPT. Once you have opened a template, you can click on the export menu on the top bar. In the pop up you can click on the export button to get a dropdown of the available options. When you select any option in the drop down list, you get an option to save what you have exported.
I have attached a screenshot for your reference
regards
Thanks @Dileep_V_S, I saw that option, but it is giving error like " Cannot export embedded template to OPT".
Also, do yo know, can you help me with exporting template in XML as well.
I am creating a template here itself “https://tools.openehr.org/designer”. I exported it in native format(JSON). Please see if you can export that in opt file.
The problem here is that you are creating a template based on an ENTRY archetype - specifically and OBSERVATION. You can only create operational templates on Composition-based templates as these are whatare used to validate the composition instances that are stored in the openEHR CDRs. All openEHR data must be commited as part of a composition.
What you have created is what we would call an embedded template - it is a fragment that can be pre-constrained and then shared between multiple composition templates.
THe best next step is just to create a new Composition-based template then add your blood pressure embedded template into it under content. You should see it along with the list of applicable archetypes. THen export the composition .opt -> it will include your embedded template fragment.
Thank you very much for the inputs. I am able to export the composition based template in OPT format !!!
I am new to this system, Could you please point me the documentation where I can get details of terminologies like composition, observation, evaluations .
We have published a bunch of training presentations at https://freshehr.com/resources/ that you might find helpful. They are a wee bit out of date but most of it still applies.
@ian.mcnicoll I have similar error like @YogeshSomawar and tried your proposed solution to embed the template in a composition. However when embedding the template is empty, see screenshot attached. I would be grateful for your advice. Thank you!
It is not actually empty - this is just the way that AD displays an embedded template - if you create the .opt or other downstream artefacts you will see all the datapoints from the embedded template are included.
If you e=want you can ‘inline’ the contents of the embedded template by pressing the yellow inline button, which will fold the contents of the embedded template into the parent, and they will become visible. Of course this will also then make the contents editable - some people use embedded templates exactly to prevent further editing.