tricc-oo 1.5.26__py3-none-any.whl → 1.5.27__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/converters/tricc_to_xls_form.py +2 -0
- tricc_oo/serializers/xls_form.py +1 -1
- tricc_oo/strategies/output/xls_form.py +3 -14
- {tricc_oo-1.5.26.dist-info → tricc_oo-1.5.27.dist-info}/METADATA +1 -1
- {tricc_oo-1.5.26.dist-info → tricc_oo-1.5.27.dist-info}/RECORD +8 -8
- {tricc_oo-1.5.26.dist-info → tricc_oo-1.5.27.dist-info}/WHEEL +0 -0
- {tricc_oo-1.5.26.dist-info → tricc_oo-1.5.27.dist-info}/licenses/LICENSE +0 -0
- {tricc_oo-1.5.26.dist-info → tricc_oo-1.5.27.dist-info}/top_level.txt +0 -0
|
@@ -51,6 +51,8 @@ def get_export_name(node, replace_dots=True):
|
|
|
51
51
|
export_name = BOOLEAN_MAP[str(TRICC_TRUE_VALUE)]
|
|
52
52
|
elif value == TRICC_FALSE_VALUE:
|
|
53
53
|
export_name = BOOLEAN_MAP[str(TRICC_FALSE_VALUE)]
|
|
54
|
+
elif value == '$this':
|
|
55
|
+
export_name = '.'
|
|
54
56
|
elif isinstance(value, str):
|
|
55
57
|
export_name = f"'{clean_str(value, replace_dots=replace_dots)}'"
|
|
56
58
|
else:
|
tricc_oo/serializers/xls_form.py
CHANGED
|
@@ -376,7 +376,7 @@ def get_attr_if_exists(strategy, node, column, map_array):
|
|
|
376
376
|
|
|
377
377
|
elif isinstance(value, (TriccOperation, TriccStatic, TriccReference)):
|
|
378
378
|
expression = strategy.get_tricc_operation_expression(value)
|
|
379
|
-
return expression
|
|
379
|
+
return expression
|
|
380
380
|
elif value is not None:
|
|
381
381
|
return str(value) if not isinstance(value, dict) else value
|
|
382
382
|
else:
|
|
@@ -131,7 +131,7 @@ class XLSFormStrategy(BaseOutPutStrategy):
|
|
|
131
131
|
return generate_xls_form_export(self, node, **kwargs)
|
|
132
132
|
|
|
133
133
|
def inject_version(self):
|
|
134
|
-
# Add hidden version field using ODK's
|
|
134
|
+
# Add hidden version field using ODK's version()
|
|
135
135
|
empty = langs.get_trads("", force_dict=True)
|
|
136
136
|
self.df_survey.loc[len(self.df_survey)] = [
|
|
137
137
|
"hidden",
|
|
@@ -148,7 +148,7 @@ class XLSFormStrategy(BaseOutPutStrategy):
|
|
|
148
148
|
"", # required
|
|
149
149
|
*list(empty.values()), # required_message
|
|
150
150
|
"", # read only
|
|
151
|
-
"
|
|
151
|
+
"version()", # calculation
|
|
152
152
|
"", # trigger
|
|
153
153
|
"", # repeat_count
|
|
154
154
|
"", # image
|
|
@@ -723,19 +723,8 @@ class XLSFormStrategy(BaseOutPutStrategy):
|
|
|
723
723
|
elif isinstance(r, TriccReference):
|
|
724
724
|
logger.warning(f"reference `{r.value}` still used in a calculate")
|
|
725
725
|
return f"${{{get_export_name(r.value)}}}"
|
|
726
|
-
elif isinstance(r, TriccStatic):
|
|
726
|
+
elif isinstance(r, (TriccStatic, str, int, float)):
|
|
727
727
|
return get_export_name(r)
|
|
728
|
-
elif isinstance(r, str):
|
|
729
|
-
if r == TRICC_TRUE_VALUE:
|
|
730
|
-
return BOOLEAN_MAP[str(TRICC_TRUE_VALUE)]
|
|
731
|
-
elif r == TRICC_FALSE_VALUE:
|
|
732
|
-
return BOOLEAN_MAP[str(TRICC_FALSE_VALUE)]
|
|
733
|
-
elif isinstance(r, str):
|
|
734
|
-
return f"'{r}'"
|
|
735
|
-
else:
|
|
736
|
-
return str(r)
|
|
737
|
-
elif isinstance(r, (int, float)):
|
|
738
|
-
return str(r)
|
|
739
728
|
elif isinstance(r, TriccNodeSelectOption):
|
|
740
729
|
logger.debug(f"select option {r.get_name()} from {r.select.get_name()} was used as a reference")
|
|
741
730
|
return get_export_name(r)
|
|
@@ -7,7 +7,7 @@ tricc_oo/converters/codesystem_to_ocl.py,sha256=Fh7Vk73OsxljZKu1k6H9uzYwz334tpQT
|
|
|
7
7
|
tricc_oo/converters/cql_to_operation.py,sha256=PUyV_YpUY98Ox0H_F_CN3UUf_I-BhFZVOcWWKTtwecM,14492
|
|
8
8
|
tricc_oo/converters/datadictionnary.py,sha256=T2HLCBo4Am1p0kFqSH1r0PqbD8AC2IGuWkbvMvSCru0,3658
|
|
9
9
|
tricc_oo/converters/drawio_type_map.py,sha256=UCPiGs7Lw0bigKScmZUnmOhACBz-FiDq92jHkI7RTSQ,9113
|
|
10
|
-
tricc_oo/converters/tricc_to_xls_form.py,sha256=
|
|
10
|
+
tricc_oo/converters/tricc_to_xls_form.py,sha256=LkgRn8gdX7C-xIRypqgMRs3afuMpigzFN1l5RD-Zyg4,3499
|
|
11
11
|
tricc_oo/converters/utils.py,sha256=JZrtrvvOfXwdkw49pKauzinOcauWwsy-CVcw36TjyLo,1684
|
|
12
12
|
tricc_oo/converters/xml_to_tricc.py,sha256=cDoLTwIMHIqyyNqZGwQte9YdX4y5j1Ac6r7M-zuKWZc,39403
|
|
13
13
|
tricc_oo/converters/cql/cqlLexer.py,sha256=8HArbRphcrpnAG4uogJ2rHv4tc1WLzjN0B1uFeYILAc,49141
|
|
@@ -25,7 +25,7 @@ tricc_oo/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
25
25
|
tricc_oo/parsers/xml.py,sha256=uzkb1y18MHfqVFmZqVh0sKT4cx6u0-NcAT_lV_gHBt8,4208
|
|
26
26
|
tricc_oo/serializers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
tricc_oo/serializers/planuml.py,sha256=t57587-6L3aDncpHh58lS77Zft8yxDE9DPtXx2BeUSU,132
|
|
28
|
-
tricc_oo/serializers/xls_form.py,sha256=
|
|
28
|
+
tricc_oo/serializers/xls_form.py,sha256=CTv2-UtpoCsgrLCdY1SEmpP6cZfnniKSEyTwuyct6Gg,21567
|
|
29
29
|
tricc_oo/strategies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
tricc_oo/strategies/input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
tricc_oo/strategies/input/base_input_strategy.py,sha256=BEODXS74na1QRRcJVQ4cxiD8F7uRqaLyhE3QzKpGVvk,3891
|
|
@@ -35,7 +35,7 @@ tricc_oo/strategies/output/fhir_form.py,sha256=hbL921pe1Doun4IQrJuZ_Sq2fCh98G3gr
|
|
|
35
35
|
tricc_oo/strategies/output/html_form.py,sha256=qSleEZOMV_-Z04y-i-ucyd5rgAYWAyjPwMrw0IHtCRM,8604
|
|
36
36
|
tricc_oo/strategies/output/openmrs_form.py,sha256=aiHUi_lDm48yaKqZGWyFMVPIj6OhQGcAADFDoYJteW0,27175
|
|
37
37
|
tricc_oo/strategies/output/spice.py,sha256=QMeoismVC3PdbvwTK0PtUjWX9jl9780fbQIXn76fMXw,10761
|
|
38
|
-
tricc_oo/strategies/output/xls_form.py,sha256=
|
|
38
|
+
tricc_oo/strategies/output/xls_form.py,sha256=c4eaQn411W57mTvCH7delAoDrP0IsaCtp-_D25btXg4,29310
|
|
39
39
|
tricc_oo/strategies/output/xlsform_cdss.py,sha256=X00Lt5MzV8TX14dR4dFI1MqllI5S1e13bKbeysWM9uA,17435
|
|
40
40
|
tricc_oo/strategies/output/xlsform_cht.py,sha256=RY_mre9j6w2vVnRFSGn5R3CuTWFjIbQyl1uWwz9Ay5E,22965
|
|
41
41
|
tricc_oo/strategies/output/xlsform_cht_hf.py,sha256=xm6SKirV3nMZvM2w54_zJcXAeAgAkq-EEqGEjnOWv6c,988
|
|
@@ -43,8 +43,8 @@ tricc_oo/visitors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
43
43
|
tricc_oo/visitors/tricc.py,sha256=RtE1oY6pWBasOmx_njexBg4qlHwPZd08QR45St5fPW0,107095
|
|
44
44
|
tricc_oo/visitors/utils.py,sha256=j83aAq5s5atXi3OC0jc_uJd54a8XrHHmizeeEbWZQJg,421
|
|
45
45
|
tricc_oo/visitors/xform_pd.py,sha256=ryAnI3V9x3eTmJ2LNsUZfvl0_yfCqo6oBgeSu-WPqaE,9613
|
|
46
|
-
tricc_oo-1.5.
|
|
47
|
-
tricc_oo-1.5.
|
|
48
|
-
tricc_oo-1.5.
|
|
49
|
-
tricc_oo-1.5.
|
|
50
|
-
tricc_oo-1.5.
|
|
46
|
+
tricc_oo-1.5.27.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
47
|
+
tricc_oo-1.5.27.dist-info/METADATA,sha256=Ak89Fpv6LVki7GoZYYjwx4on0UB8LflW4QrcBcxjMjI,8577
|
|
48
|
+
tricc_oo-1.5.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
+
tricc_oo-1.5.27.dist-info/top_level.txt,sha256=NvbfMNAiy9m4b1unBsqpeOQWh4IgA1Xa33BtKA4abxk,15
|
|
50
|
+
tricc_oo-1.5.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|