how to solve this error
Hi @Maha_Mahmoud can you please describe your workflow to understand when the problem happens and also share the archetype or template you are using?
When I try to generate canonical xml composition file from template otp file
The same error appeared for these two templates
Hi @Maha_Mahmoud I can’t see the XML. Can you export the OPTs and share the XML files?
Hi @Maha_Mahmoud I have extracted the opts from your doc files.
You are using GENERIC_ENTRY which is a class from the integration model. That class is not supported by the instance generator of the openEHR Toolkit. Only classes from the entry model are supported.
I’ll add a check for this to show a more user-friendly error.
Just refactor your archetypes as ADMIN_ENTRY or EVALUATION archetypes and it should work. These are the simplest of theEntry classes
Ok,I will try that
Note the type of entry depends on the semantics of the information you want to model.
If you use GENERIC_ENTRY, it’s because you are importing some legacy data from another system into openEHR and that information might not correspond with any of the openEHR entry types. But if you want to record new information, you need to choose from OBSERVATION, EVALUATION, INSTRUCTION, ACTION or ADMIN_ENTRY types of entries.
All those classes are supported by the instance generator in the openEHR Toolkit.
Related note: we are updating the openEHR Toolkit to also support generating instances for demographic classes. This will be released soon.