In Ocean Template Designer, why does renaming the Archetype in a slot cause automatically changing its cardinality from 0…* to 0… 1?
For example, in the openEHR-EHR-SECTION.immunisation_list.v0, openEHR-EHR-ACTION.medication.v1 was dragged into the SLOT “Vaccinations administered”. When renaming the imported Archetype from “药物管理”(zh-CN; en: Medication management) to “预防接种条目” or any other names, its cardinality would be automatically changed from 0…* to 0… 1. But I need its cardinality keep unchanged.
Template Designer is following some older RM/AOM rules which insisted that a renamed slot had to be restricted in this way.
Since then the rule has been relaxed, so that the ‘no duplicate names’ rules is applied at run-time, not at design-time but TD has not been updated for some time AFAIK.
It was for us, one of the big benefits of moving to ArchetypeDesigner.
If still sticking with the Ocean Template Designer, is there any workaround for this?
Using a text editor, the cardinality could be manually restored to default (0…*). But once it’s opened and saved again in the Ocean Template Designer, my effort will be in vain.