Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encounter Eligibility Check Rule is not working #1464

Closed
vedfordev opened this issue Jul 17, 2024 · 1 comment
Closed

Encounter Eligibility Check Rule is not working #1464

vedfordev opened this issue Jul 17, 2024 · 1 comment

Comments

@vedfordev
Copy link
Contributor

vedfordev commented Jul 17, 2024

Describe the bug
When returned false from an encounter eligibility check rule, it still shows up the encounter.

rule :

//SAMPLE RULE EXAMPLE
'use strict';
({params, imports}) => {
  const individual = params.entity;
  return false;
};

To Reproduce
Steps to reproduce the behavior:
prod env, 9.0

  1. Add the above rule in child followup encounter of org 'JNPCT Adoloscent UAT'
  2. use user dinesh@adjnpctuat
  3. search for individual test01 july17
  4. see that it shows child followup

Expected behaviour
encounter eligibility rule should work properly

Screenshots
Screenshot 2024-07-17 at 11 56 12 AM

Analysis notes:
Related card in implementation: avniproject/JNPCT-Adolescent#54

AC:

should see what to do to avoid confusion, since the visit button is generally used for unplanned visit.

Analysis:

Its evident that the scheduled encounter is what will get filled, since on clicking 'New Program Visit' as well, we show both planned and unplanned encounters. So no need any improvements.

@mahalakshme
Copy link
Contributor

not a bug since looks like on clicking the button it fills the planned encounter

@mahalakshme mahalakshme moved this from In Analysis Review to Done in Avni Product Jul 17, 2024
@mahalakshme mahalakshme moved this from Done to Triaged in Avni Product Jul 17, 2024
@mahalakshme mahalakshme moved this from Triaged to Done in Avni Product Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants