fhircore icon indicating copy to clipboard operation
fhircore copied to clipboard

Resources and Rules not Accessible Inside Views in Profile Configs

Open qiarie opened this issue 1 year ago • 0 comments

Describe the bug Resources defined in a profile's fhirResource as well as top-level rules are not not accessible from inside views > registerCard > rules.

  • A rule inside views that accesses the profile's base resource evaluates to null.
  • Trying to access a rule (e.g., data.get('topLevelRuleName')) defined in the top level rules evaluates to null.

To Reproduce Steps to reproduce the behavior:

  1. Define a top-level rule in a profile, e.g., data.get('rule1')
  2. Create another rule under views > registerCard > rules that accesses rule1 above, i.e., data.put('rule2', data.get('rule1'))
  3. rule2 evaluates to null even if rule1 in the top section has a value

Expected behavior It should be possible to use profile-level rules in a profile's subsections to compute other values.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Samsung Galaxy A2 emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 24]

Additional context Add any other context about the problem here.

qiarie avatar Nov 21 '23 06:11 qiarie