Skip to content

Commit

Permalink
Update ofType to correctly handle decimal type
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Oct 2, 2023
1 parent 3a79381 commit fd9d18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhirpathpy/engine/invocations/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def check_fhir_type(ctx, x, tp):
if tp == "integer" and isinstance(x, int) and not isinstance(x, bool):
return True

if tp == "decimal" and isinstance(x, (int, Decimal)) and not isinstance(x, bool):
if tp == "decimal" and isinstance(x, Decimal):
return True

return False
Expand Down

0 comments on commit fd9d18d

Please sign in to comment.