avniproject / avniproject/rules-config
Make sample message rule more relevant based on entity
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
**Case:**
Currently in sample message rule independent of for which entity type(Individual/Encounter/Enrolment) it is for, it has the below line: ```const individual = params.entity;```
Instead if it is for encounter, the code should have been ```const encounter = params.entity;``` like we have already done in visit schedule rule and decision rule.
**Need to fix:**
For self-implementing organisations and implementation team, this will help to understand better how to access the entity.
Contributor guide
No contributing guide indexed for this repository
Research direction
Find the sample message rule and compare its entity handling with the existing visit schedule rule and decision rule. Update the example so the variable matches the entity type being handled, and verify that Individual, Encounter, and Enrolment examples access their entities consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100