Skip to content

Commit

Permalink
Update create_reduce_member_invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Sep 27, 2023
1 parent e7685ae commit 4529fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fhirpathpy/engine/evaluators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

1 comment on commit 4529fdd

@atuonufure
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ir4y that's the solution to this test:

  - expression: "(2 years).value" # test of internal structure, not FHIRPath
    result: [2]

Please sign in to comment.