From 5f4493a1350c754462cc01f89ed2d1f393dfed0b Mon Sep 17 00:00:00 2001 From: atuonufure Date: Mon, 14 Aug 2023 09:52:13 +0200 Subject: [PATCH] Delete a duplicate function --- fhirpathpy/engine/invocations/strings.py | 2 +- fhirpathpy/engine/util.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fhirpathpy/engine/invocations/strings.py b/fhirpathpy/engine/invocations/strings.py index 7d2ebc5..f74c5c6 100644 --- a/fhirpathpy/engine/invocations/strings.py +++ b/fhirpathpy/engine/invocations/strings.py @@ -66,7 +66,7 @@ def trim(ctx, coll): def join(ctx, coll, separator=""): stringValues = [] for n in coll: - d = util.valData(n) + d = util.get_data(n) if isinstance(d, str): stringValues.append(d) else: diff --git a/fhirpathpy/engine/util.py b/fhirpathpy/engine/util.py index 7839e80..589f2e9 100644 --- a/fhirpathpy/engine/util.py +++ b/fhirpathpy/engine/util.py @@ -74,9 +74,3 @@ def uniq(arr): key = str(x) ordered_dict[key] = x return list(ordered_dict.values()) - - -def valData(val): - # Returns the data value of the given parameter, which might be a ResourceNode. - # Otherwise, it returns the value that was passed in. - return val.data if isinstance(val, ResourceNode) else val