diff --git a/fhirpathpy/engine/invocations/math.py b/fhirpathpy/engine/invocations/math.py index d37f778..0483abe 100644 --- a/fhirpathpy/engine/invocations/math.py +++ b/fhirpathpy/engine/invocations/math.py @@ -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