From fd9d18d319dabc8a0185c09b71d0d003950daf87 Mon Sep 17 00:00:00 2001 From: atuonufure Date: Mon, 2 Oct 2023 07:26:38 +0200 Subject: [PATCH] Update ofType to correctly handle decimal type --- fhirpathpy/engine/invocations/filtering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhirpathpy/engine/invocations/filtering.py b/fhirpathpy/engine/invocations/filtering.py index 23e1d53..3c525bb 100644 --- a/fhirpathpy/engine/invocations/filtering.py +++ b/fhirpathpy/engine/invocations/filtering.py @@ -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