From 229fa3ec8f0a6e8d1efac773c65a8aa7ec45f5d9 Mon Sep 17 00:00:00 2001 From: William Van Woensel Date: Wed, 7 Jul 2021 16:57:45 -0300 Subject: [PATCH] initial commit --- .../src/main/java/org/openehr/am/template/Flattener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oet-parser/src/main/java/org/openehr/am/template/Flattener.java b/oet-parser/src/main/java/org/openehr/am/template/Flattener.java index a9db2108..456ba8ed 100755 --- a/oet-parser/src/main/java/org/openehr/am/template/Flattener.java +++ b/oet-parser/src/main/java/org/openehr/am/template/Flattener.java @@ -1265,7 +1265,8 @@ protected void applyQuantityConstraint(CComplexObject ccobj, if(valueAttr != null) { valueAttr.removeAllChildren(); CDvQuantity cdq = CDvQuantity.singleRequired(valuePath, item); - valueAttr.addChild(cdq); + valueAttr.addChild(cdq); + return; } } else if(includedUnits != null && includedUnits.length == 1) {