A template is something that you should use at the software level, while archetypes are more concerned with defining the data processed by the software. On the template, you indicate the complete clinical documents in just one file, using many archetypes.
I recommend using Operational Templates (OPT) in the software because it is just one large XML file with all the data and metadata needed to implement such a clinical document (data structure, constraints, terminology).
To create an OPT, you need the Ocean Information template designer. The template diagram is here: https://github.com/openEHR/reference-models/blob/master/models/openEHR/Release-1.0.2/XSD/Template.xsd
OPT XSD may be included in the template designer, but not sure about it. You can request from the openEHR email lists where the authors of the tool can provide you with more information. So, there is currently no template definition language. But with the help of ADL, a new version of ADL (in development), archetypes and templates will be indicated.
source share