Skip to content

Commit

Permalink
Merge branch 'master' into 354-generic-resource-list
Browse files Browse the repository at this point in the history
  • Loading branch information
ir4y committed Dec 17, 2024
2 parents 1af194a + 459dba9 commit 2d33024
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ export function useAnswerReference<R extends Resource = any, IR extends Resource
return overrideGetDisplay;
}

return (resource: R) => evaluate(resource, choiceColumn![0]!.path!, context)[0];
return (resource: R, includedResources: ResourcesMap<R|IR>) => evaluate(
resource, choiceColumn![0]!.path!,
{
...context,
...includedResources,
resource,
})[0];
}, [choiceColumn, context, overrideGetDisplay]);

// TODO: add support for fhirpath and application/x-fhir-query
Expand Down

0 comments on commit 2d33024

Please sign in to comment.