Skip to content

Commit

Permalink
Engine: Initialize a FhirEvalutionContext via ctor
Browse files Browse the repository at this point in the history
Static method FhirEvaluationContext.CreateDefault() is marked as
obsolete initialize a FhirEvalutionContext via the ctor instead.
  • Loading branch information
kennethmyhra committed Oct 16, 2024
1 parent ab93537 commit 529faf9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static IEnumerable<Base> SelectNew(
FhirEvaluationContext ctx = null)
{
var inputNav = input.ToTypedElement();
var result = inputNav.Select(expression, ctx ?? FhirEvaluationContext.CreateDefault());
var result = inputNav.Select(expression, ctx ?? new FhirEvaluationContext());
return result.ToFhirValues();
}

Expand Down Expand Up @@ -64,4 +64,4 @@ public static IEnumerable<Base> ToFhirValues(this IEnumerable<ITypedElement> res
};
});
}
}
}

0 comments on commit 529faf9

Please sign in to comment.