From 53d89338d850752fa15ec45e6c2fb5ecbcf9a796 Mon Sep 17 00:00:00 2001 From: wolandscat Date: Wed, 20 Sep 2023 16:43:37 -0600 Subject: [PATCH] Fix instance generator logic. --- .../src/am/archetype/constraint_model/c_instance_generator.e | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/openehr/src/am/archetype/constraint_model/c_instance_generator.e b/libraries/openehr/src/am/archetype/constraint_model/c_instance_generator.e index 72f15b06b..1708a4db7 100644 --- a/libraries/openehr/src/am/archetype/constraint_model/c_instance_generator.e +++ b/libraries/openehr/src/am/archetype/constraint_model/c_instance_generator.e @@ -394,8 +394,8 @@ feature {NONE} -- Implementation across bmm_class.flat_properties as bmm_prop_csr loop prop_name := bmm_prop_csr.item.name if not instantiated_attrs.has (prop_name) - and not is_ignored (a_node.rm_type_name, prop_name) - or is_required (a_node.rm_type_name, prop_name) + and (not is_ignored (a_node.rm_type_name, prop_name) + or is_required (a_node.rm_type_name, prop_name)) then prop_type := bmm_prop_csr.item.bmm_type.type_name