Error in uploading Template

Hello,
i have a problem with uploading my template. Here is the error. Do you know if there is a way to include multiple coded text fields as external codes?

in archetype designer I would like to include several coded text fields with different local variables. Unfortunately it does not work, only as free text. But I need the assignment 1 = …, 2 = …

Maybe someone can help?

1 Like

Hi Leo,

reported error is displayed by CKM. @ian.mcnicoll might help you with the error?

For the modelling question can you share your archetype/template (export fileset) to better understand what’s the issue?

Adding several coded_text elements each with its own internal valueset it’s quite the usual.

Hi @Leo , hi @borut.fabjan

We are currently investigating this issue.

@borut.fabjan - This happens when in a template, you have two value sets with local terms from a local “terminology”. If they have overlapping values, CKM currently generates this error.

Essentially, the OPT generator used by CKM makes the assumption that the “terminologies” such as local_terms1 and local_terms2 are value sets from the same code system - thus the same value with a different text is currently not permitted.

We are currently investigating whether it is reasonable to relax this constraint (and what the consequences are) and will keep you posted. In the meantime using unique codes, e.g. prefixed with the terminology name or a short version of it would circumvent the problem.

After some SEC discussion, we have implemented the same behaviour in the OPT generator used by CKM as well, so this is now possible as far as CKM is concerned.

Hi @sebastian.garde @borut.fabjan
I am trying to import a template into the archetype designer and I end up getting this error. Any workaround this?

Hi,

To import a template, you need to export it as a Template Fileset, then import the .zip file. This contains the component archetypes, not just the template itself

3 Likes

Hi Robert,

a template you’re trying to upload is referencing an archetype (openEHR-EHR-INSTRUCTION.medication_order.v3) which does not exist in your repository.

Upload missing archetype(s) first.
A template alone does not include archetype definitions.

3 Likes