tricc-oo 1.6.13__tar.gz → 1.6.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tricc_oo-1.6.13/tricc_oo.egg-info → tricc_oo-1.6.15}/PKG-INFO +1 -1
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/pyproject.toml +1 -1
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/xml_to_tricc.py +6 -2
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/visitors/tricc.py +24 -11
- {tricc_oo-1.6.13 → tricc_oo-1.6.15/tricc_oo.egg-info}/PKG-INFO +1 -1
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/LICENSE +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/README.md +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/setup.cfg +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tests/build.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tests/test_cql.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tests/to_ocl.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/codesystem_to_ocl.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/cql/cqlLexer.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/cql/cqlListener.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/cql/cqlParser.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/cql/cqlVisitor.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/cql_to_operation.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/datadictionnary.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/drawio_type_map.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/tricc_to_xls_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/converters/utils.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/base.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/calculate.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/lang.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/ocl.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/ordered_set.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/models/tricc.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/parsers/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/parsers/xml.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/serializers/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/serializers/planuml.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/serializers/xls_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/input/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/input/base_input_strategy.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/input/drawio.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/base_output_strategy.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/dhis2_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/fhir_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/html_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/openmrs_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/spice.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/xls_form.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/xlsform_cdss.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/xlsform_cht.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/strategies/output/xlsform_cht_hf.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/visitors/__init__.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/visitors/utils.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo/visitors/xform_pd.py +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo.egg-info/SOURCES.txt +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo.egg-info/dependency_links.txt +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo.egg-info/requires.txt +0 -0
- {tricc_oo-1.6.13 → tricc_oo-1.6.15}/tricc_oo.egg-info/top_level.txt +0 -0
|
@@ -483,7 +483,7 @@ def set_additional_attributes(attribute_names, elm, node):
|
|
|
483
483
|
# input expression can add a condition to either relevance (display) or calculate expression
|
|
484
484
|
if attributename == "expression_inputs":
|
|
485
485
|
attribute = [attribute]
|
|
486
|
-
elif attributename
|
|
486
|
+
elif attributename in ["priority", "instance"]:
|
|
487
487
|
attribute = int(attribute)
|
|
488
488
|
else:
|
|
489
489
|
attribute
|
|
@@ -612,7 +612,11 @@ def inject_bridge_path(node, nodes):
|
|
|
612
612
|
calc = TriccNodeDisplayBridge(**data)
|
|
613
613
|
else:
|
|
614
614
|
calc = TriccNodeBridge(**data)
|
|
615
|
-
|
|
615
|
+
if node:
|
|
616
|
+
priority = getattr(node, 'priority', None)
|
|
617
|
+
if priority:
|
|
618
|
+
calc.priority = priority
|
|
619
|
+
|
|
616
620
|
for e in node.activity.edges:
|
|
617
621
|
if e.target == node.id:
|
|
618
622
|
if e.source in node.activity.nodes and len(node.activity.nodes[e.source].next_nodes):
|
|
@@ -405,6 +405,11 @@ def get_bridge_path(prev_nodes, node=None, edge_only=False):
|
|
|
405
405
|
calc = TriccNodeDisplayBridge(**data)
|
|
406
406
|
else:
|
|
407
407
|
calc = TriccNodeBridge(**data)
|
|
408
|
+
if node:
|
|
409
|
+
priority = getattr(node, 'priority', None)
|
|
410
|
+
if priority:
|
|
411
|
+
calc.priority = priority
|
|
412
|
+
|
|
408
413
|
return calc
|
|
409
414
|
|
|
410
415
|
|
|
@@ -1735,13 +1740,13 @@ def replace_next_node(prev_node, next_node, old_node):
|
|
|
1735
1740
|
|
|
1736
1741
|
|
|
1737
1742
|
# Priority constants
|
|
1738
|
-
SAME_GROUP_PRIORITY =
|
|
1739
|
-
PARENT_GROUP_PRIORITY =
|
|
1740
|
-
ACTIVE_ACTIVITY_PRIORITY =
|
|
1741
|
-
NON_START_ACTIVITY_PRIORITY =
|
|
1742
|
-
ACTIVE_ACTIVITY_LOWER_PRIORITY =
|
|
1743
|
-
FLOW_CALCULATE_NODE_PRIORITY_TOP_UP =
|
|
1744
|
-
RHOMBUS_PRIORITY_TO_UP =
|
|
1743
|
+
SAME_GROUP_PRIORITY = 70
|
|
1744
|
+
PARENT_GROUP_PRIORITY = 60
|
|
1745
|
+
ACTIVE_ACTIVITY_PRIORITY = 50
|
|
1746
|
+
NON_START_ACTIVITY_PRIORITY = 40
|
|
1747
|
+
ACTIVE_ACTIVITY_LOWER_PRIORITY = 30
|
|
1748
|
+
FLOW_CALCULATE_NODE_PRIORITY_TOP_UP = 3
|
|
1749
|
+
RHOMBUS_PRIORITY_TO_UP = 3
|
|
1745
1750
|
|
|
1746
1751
|
|
|
1747
1752
|
def reorder_node_list(node_list, group, processed_nodes):
|
|
@@ -1751,8 +1756,13 @@ def reorder_node_list(node_list, group, processed_nodes):
|
|
|
1751
1756
|
def get_priority(node):
|
|
1752
1757
|
if node.id in MAP_PRIORITIES:
|
|
1753
1758
|
return MAP_PRIORITIES[node.id]
|
|
1759
|
+
if isinstance(node, (TriccNodeActivityStart, TriccNodeMainStart)):
|
|
1760
|
+
return get_priority(node.activity)
|
|
1761
|
+
if isinstance(node, (TriccNodeSelectOption)):
|
|
1762
|
+
return get_priority(node.select)
|
|
1763
|
+
|
|
1754
1764
|
# Cache attributes to avoid repeated getattr calls
|
|
1755
|
-
priority = int(getattr(node, "priority", 0) or 0)
|
|
1765
|
+
priority = int(getattr(node, "priority", 0) or 0)
|
|
1756
1766
|
node_group = getattr(node, "group", None)
|
|
1757
1767
|
activity = getattr(node, "activity", None)
|
|
1758
1768
|
|
|
@@ -1982,7 +1992,7 @@ def get_prev_instance_skip_expression(node, processed_nodes, process, expression
|
|
|
1982
1992
|
|
|
1983
1993
|
# end def
|
|
1984
1994
|
def get_process_skip_expression(node, processed_nodes, process, expression=None):
|
|
1985
|
-
list_ends =
|
|
1995
|
+
list_ends = [x for x in processed_nodes if isinstance(x, TriccNodeEnd)]
|
|
1986
1996
|
if list_ends:
|
|
1987
1997
|
end_expressions = []
|
|
1988
1998
|
f_end_expression = get_end_expression(list_ends)
|
|
@@ -1991,8 +2001,11 @@ def get_process_skip_expression(node, processed_nodes, process, expression=None)
|
|
|
1991
2001
|
b_end_expression = get_end_expression(list_ends, "pause")
|
|
1992
2002
|
if b_end_expression:
|
|
1993
2003
|
end_expressions.append(b_end_expression)
|
|
1994
|
-
|
|
1995
|
-
|
|
2004
|
+
process_index = None
|
|
2005
|
+
if process and process[0] in PROCESSES:
|
|
2006
|
+
process_index = PROCESSES.index(process[0])
|
|
2007
|
+
if process_index is not None:
|
|
2008
|
+
for p in PROCESSES[process_index + 1:]:
|
|
1996
2009
|
p_end_expression = get_end_expression(list_ends, p)
|
|
1997
2010
|
if p_end_expression:
|
|
1998
2011
|
end_expressions.append(p_end_expression)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|