openEHR-technical Digest, Vol 68, Issue 8

Hi!

We were able to import openEHR-OPT.jar into our JAVA project and we were also able to instantiate the classes XmlInstanceGenerator, OperationalTemplate, OperationalTemplateParser, etc. However, we have a question regarding the template in OPT format. We understand that this format has a template metadata structure, but it does not carry clinical data within it (eg blood pressure: 120 mmHg), in other words, it is not an instance of the template. Is this understanding correct? If yes, how should we export in XML an instance of a template filled with clinical data?

Conseguimos importar o openEHR-OPT.jar em nosso projeto JAVA e também conseguimos instanciar as classes XmlInstanceGenerator, OperationalTemplate, OperationalTemplateParser entre outras. Porém, estamos com uma dúvida em relação ao template em formato OPT. Entendemos que esse formato apresenta uma estrutura de metadados do template, mas não transporta dados clínicos dentro dele (p. ex. pressão arterial: 120 mmHg etc.), ou seja, não é uma instância do template (objeto). Este entendimento está correto? Se sim, como devemos exportar em XML uma instância de um template preenchido com os dados clínicos?

's Flávio Barbosa.

Hi Flavio, this might help http://www.openehr.org/downloads/ADLworkbench/working_with_templates

In short, templates are definitions of clinical documents, do not contain data. Saying “template filled with data” is not correct.

Clinical document instances are the ones generated by the opt ingen command, see the README https://github.com/ppazos/openEHR-OPT
This is a serialized RM instances of a VERSION or COMPOSITION.