fhircore
fhircore copied to clipboard
Resources and Rules not Accessible Inside Views in Profile Configs
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 tonull
. - Trying to access a rule (e.g.,
data.get('topLevelRuleName')
) defined in the top level rules evaluates tonull
.
To Reproduce Steps to reproduce the behavior:
- Define a top-level rule in a profile, e.g.,
data.get('rule1')
- Create another rule under
views
>registerCard
>rules
that accessesrule1
above, i.e.,data.put('rule2', data.get('rule1'))
-
rule2
evaluates to null even ifrule1
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.