Skip to content

Commit

Permalink
Update HapiFhirEngineImplementation.java
Browse files Browse the repository at this point in the history
Fix boolean casting
  • Loading branch information
luis-pabon-tf committed Mar 15, 2024
1 parent 2e3217e commit 81b8295
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ public Boolean evaluateCondition(IBaseResource root, String expression) throws E

boolean retVal;
if (value.size() == 1 && value.get(0).isBooleanPrimitive()) {
retVal =
value.get(0)
.castToBoolean(base)
.booleanValue(); // not sure if resource is the right param here...
retVal = base.castToBoolean(value.get(0)).booleanValue();
} else if (value.isEmpty()) {
// The FHIR utilities that test for booleans only return one if the resource exists
// if the resource does not exist, they return []
Expand Down

0 comments on commit 81b8295

Please sign in to comment.