From 4529fdd2e1f569973a91cb753a98098734eaed99 Mon Sep 17 00:00:00 2001 From: atuonufure Date: Wed, 27 Sep 2023 14:00:29 +0200 Subject: [PATCH] Update create_reduce_member_invocation --- fhirpathpy/engine/evaluators/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fhirpathpy/engine/evaluators/__init__.py b/fhirpathpy/engine/evaluators/__init__.py index e2b062c..583d84e 100644 --- a/fhirpathpy/engine/evaluators/__init__.py +++ b/fhirpathpy/engine/evaluators/__init__.py @@ -186,6 +186,9 @@ def func(acc, res): toAdd = None toAdd_ = None + if isinstance(res.data, nodes.FP_Quantity): + toAdd = res.data.value + if isinstance(actualTypes, list): # Use actualTypes to find the field's value for actualType in actualTypes: