Skip to content

Commit

Permalink
Update amp: empty collection in concatenation is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Sep 26, 2023
1 parent e41809b commit 2ccb7d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fhirpathpy/engine/invocations/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def ensure_number_singleton(x):


def amp(ctx, x="", y=""):
if isinstance(x, list) and not x:
x = ""
if isinstance(y, list) and not y:
y = ""
return x + y


Expand Down

0 comments on commit 2ccb7d6

Please sign in to comment.