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: