Skip to content

Commit

Permalink
Trace fn params slice
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Jan 11, 2024
1 parent 9927820 commit a91f02e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fhirpathpy/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def doInvoke(ctx, fn_name, data, raw_params):

raise Exception(fn_name + " expects no params")

if invocation["fn"].__name__ == "trace_fn" and raw_params is not None:
raw_params = raw_params[:1]

paramsNumber = 0
if isinstance(raw_params, list):
paramsNumber = len(raw_params)
Expand Down

0 comments on commit a91f02e

Please sign in to comment.