tricc-oo 1.6.20__py3-none-any.whl → 1.6.22__py3-none-any.whl
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/strategies/output/xls_form.py +4 -2
- tricc_oo/visitors/tricc.py +3 -1
- {tricc_oo-1.6.20.dist-info → tricc_oo-1.6.22.dist-info}/METADATA +1 -1
- {tricc_oo-1.6.20.dist-info → tricc_oo-1.6.22.dist-info}/RECORD +7 -7
- {tricc_oo-1.6.20.dist-info → tricc_oo-1.6.22.dist-info}/WHEEL +0 -0
- {tricc_oo-1.6.20.dist-info → tricc_oo-1.6.22.dist-info}/licenses/LICENSE +0 -0
- {tricc_oo-1.6.20.dist-info → tricc_oo-1.6.22.dist-info}/top_level.txt +0 -0
|
@@ -25,6 +25,7 @@ from tricc_oo.models.tricc import (
|
|
|
25
25
|
TriccNodeCalculateBase,
|
|
26
26
|
TriccNodeBaseModel,
|
|
27
27
|
TriccNodeSelectOption,
|
|
28
|
+
TriccNodeSelect,
|
|
28
29
|
TriccNodeInputModel,
|
|
29
30
|
TriccNodeDisplayModel,
|
|
30
31
|
TRICC_FALSE_VALUE,
|
|
@@ -87,6 +88,8 @@ OPERATOR_COALESCE_FALLBACK = {
|
|
|
87
88
|
TriccOperator.MORE_OR_EQUAL: -2147483648,
|
|
88
89
|
TriccOperator.LESS: 2147483647,
|
|
89
90
|
TriccOperator.LESS_OR_EQUAL: 2147483647,
|
|
91
|
+
TriccOperator.CONTAINS: "''",
|
|
92
|
+
TriccOperator.SELECTED: "''",
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
|
|
@@ -127,7 +130,6 @@ class XLSFormStrategy(BaseOutPutStrategy):
|
|
|
127
130
|
"df_calculate": self.df_calculate,
|
|
128
131
|
"calculates": self.calculates,
|
|
129
132
|
}
|
|
130
|
-
|
|
131
133
|
|
|
132
134
|
def generate_export(self, node, **kwargs):
|
|
133
135
|
return generate_xls_form_export(self, node, **kwargs)
|
|
@@ -743,7 +745,7 @@ class XLSFormStrategy(BaseOutPutStrategy):
|
|
|
743
745
|
elif isinstance(r, TriccNodeSelectOption):
|
|
744
746
|
logger.debug(f"select option {r.get_name()} from {r.select.get_name()} was used as a reference")
|
|
745
747
|
return get_export_name(r)
|
|
746
|
-
elif issubclass(r.__class__, TriccNodeInputModel):
|
|
748
|
+
elif issubclass(r.__class__, (TriccNodeInputModel, TriccNodeSelect)):
|
|
747
749
|
return f"coalesce(${{{get_export_name(r)}}},{coalesce_fallback})"
|
|
748
750
|
elif issubclass(r.__class__, TriccNodeBaseModel):
|
|
749
751
|
return f"${{{get_export_name(r)}}}"
|
tricc_oo/visitors/tricc.py
CHANGED
|
@@ -2194,7 +2194,9 @@ def get_prev_node_expression(node, processed_nodes, get_overall_exp=False, exclu
|
|
|
2194
2194
|
|
|
2195
2195
|
for act_id in prev_activities:
|
|
2196
2196
|
act_expression_inputs = []
|
|
2197
|
+
none_input_prev_node = False
|
|
2197
2198
|
for prev_node in prev_activities[act_id]:
|
|
2199
|
+
none_input_prev_node = none_input_prev_node or not issubclass(prev_node.__class__, TriccNodeInputModel)
|
|
2198
2200
|
if (
|
|
2199
2201
|
excluded_name is None
|
|
2200
2202
|
or prev_node != excluded_name
|
|
@@ -2230,7 +2232,7 @@ def get_prev_node_expression(node, processed_nodes, get_overall_exp=False, exclu
|
|
|
2230
2232
|
negate=False,
|
|
2231
2233
|
process=process,
|
|
2232
2234
|
)
|
|
2233
|
-
elif
|
|
2235
|
+
elif none_input_prev_node:
|
|
2234
2236
|
# For non-input nodes, AND the activity relevance with the prev expression
|
|
2235
2237
|
activity_relevance = get_node_expression(
|
|
2236
2238
|
prev_node.activity,
|
|
@@ -36,16 +36,16 @@ tricc_oo/strategies/output/fhir_form.py,sha256=hbL921pe1Doun4IQrJuZ_Sq2fCh98G3gr
|
|
|
36
36
|
tricc_oo/strategies/output/html_form.py,sha256=qSleEZOMV_-Z04y-i-ucyd5rgAYWAyjPwMrw0IHtCRM,8604
|
|
37
37
|
tricc_oo/strategies/output/openmrs_form.py,sha256=ne6TwAyhafR-WDs27QTKKFl85VD5sij_VEJtK6ZjOIE,28996
|
|
38
38
|
tricc_oo/strategies/output/spice.py,sha256=QMeoismVC3PdbvwTK0PtUjWX9jl9780fbQIXn76fMXw,10761
|
|
39
|
-
tricc_oo/strategies/output/xls_form.py,sha256=
|
|
39
|
+
tricc_oo/strategies/output/xls_form.py,sha256=ISpZEjPHiKV9TEDwQnGf0hf2eLSw4RXP_SVbiMEBIEY,33434
|
|
40
40
|
tricc_oo/strategies/output/xlsform_cdss.py,sha256=X00Lt5MzV8TX14dR4dFI1MqllI5S1e13bKbeysWM9uA,17435
|
|
41
41
|
tricc_oo/strategies/output/xlsform_cht.py,sha256=lY1xIDxqYxl_lYNVCl3msXZL88No49yEVCpahcHGOn0,28675
|
|
42
42
|
tricc_oo/strategies/output/xlsform_cht_hf.py,sha256=xm6SKirV3nMZvM2w54_zJcXAeAgAkq-EEqGEjnOWv6c,988
|
|
43
43
|
tricc_oo/visitors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
-
tricc_oo/visitors/tricc.py,sha256=
|
|
44
|
+
tricc_oo/visitors/tricc.py,sha256=f66dadGtQittZvSyJNPi21pXL2HVOczLOVsJDmD2i6w,112456
|
|
45
45
|
tricc_oo/visitors/utils.py,sha256=j83aAq5s5atXi3OC0jc_uJd54a8XrHHmizeeEbWZQJg,421
|
|
46
46
|
tricc_oo/visitors/xform_pd.py,sha256=ryAnI3V9x3eTmJ2LNsUZfvl0_yfCqo6oBgeSu-WPqaE,9613
|
|
47
|
-
tricc_oo-1.6.
|
|
48
|
-
tricc_oo-1.6.
|
|
49
|
-
tricc_oo-1.6.
|
|
50
|
-
tricc_oo-1.6.
|
|
51
|
-
tricc_oo-1.6.
|
|
47
|
+
tricc_oo-1.6.22.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
48
|
+
tricc_oo-1.6.22.dist-info/METADATA,sha256=At70THgAUro2_V5Oz8mx8_Q_GqqR78d8rPmwu57DCHA,8600
|
|
49
|
+
tricc_oo-1.6.22.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
50
|
+
tricc_oo-1.6.22.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
|
|
51
|
+
tricc_oo-1.6.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|