by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Shubhangi
@ashubhu123
code :

({params, imports}) => {
const workLists = params.workLists;
const context = params.context;
const WorkItem = imports.models.WorkItem;

const individualRegistraion = (workLists) => {
const currentWorklist = workLists.currentWorklist;
const waterEncounter = () => workLists.addItemsToCurrentWorkList(
    new WorkItem("4aafc2d9-d7b5-4972-9c4e-e02f8de90ead",WorkItem.type.ENCOUNTER,{
            encounterType:'New need assesment',
            subjectUUID: _.get(context, "entity.encounter.uuid"),
            saveAndProceedLabel :'Water encounter'
        }));
const main = () => {
    const currentWorkItem = workLists.getCurrentWorkItem();
    if (currentWorkItem.type === WorkItem.type.REGISTRATION) {
        individualRegistraion(workLists);
    return workLists;
};
return main();
};

};

nupoorkhandelwal
@nupoorkhandelwal
@ashubhu123 where is the call for waterEncounter()?
Shubhangi
@ashubhu123

({params, imports}) => {
const workLists = params.workLists;
const context = params.context;
const WorkItem = imports.models.WorkItem;

const individualRegistraion = (workLists) => {
const currentWorklist = workLists.currentWorklist;
const waterEncounter = () => workLists.addItemsToCurrentWorkList(
    new WorkItem("4aafc2d9-d7b5-4972-9c4e-e02f8de90ead",WorkItem.type.ENCOUNTER,{
            encounterType:'New need assesment',
            subjectUUID: _.get(context, "entity.encounter.uuid"),
            saveAndProceedLabel :'Water encounter'
        }));
    const individual = context.entity;
    const ruleCondition = new RuleCondition({individual})
            .whenItem(individual.registrationDate.is.truthy);
        if (ruleCondition.matches()) {
            waterEncounter();
        }
};
const main = () => {
    const currentWorkItem = workLists.getCurrentWorkItem();
    if (currentWorkItem.type === WorkItem.type.REGISTRATION) {
        individualRegistraion(workLists);
    return workLists;
};
return main();
};

};

@nupoorkhandelwal .... in rule condition....
please sugguest where am I getting it wrong..... Thank You
nupoorkhandelwal
@nupoorkhandelwal
Rule condition seems to be wrong...it should be whenItem(condition).is.truthy;
Shubhangi
@ashubhu123
ok...thank you...will check that
Divya Sodha
@Divya-Sodha
Hello, I have tried to explore the Data Uploading part of Avni. After doing so, I am having a couple of queries on it.
1) Currently, it seems uploading the data for Program Exit Form is not supported. Is it possible to do it, in case we need to add data for the Program Exit form as well?
2) Also, is it possible to upload dates for the CheckListItem Form, in case we want to record the dates whenever the particular vaccination was given?
vindeolal
@vindeolal
@Divya-Sodha Currently both of these not supported in data upload. Do you need these features to upload your data?
Divya Sodha
@Divya-Sodha
Yes, it would be good to have them, especially for Program Exit form, if possible.
Hiren Thacker
@hithacker
@Divya-Sodha For what reason do you want to do exits via upload? What is the user requirement driving this ?
Divya Sodha
@Divya-Sodha
We have to capture some data in ANC Exit form and then enrol them to PNC. Will confirm it though once again
and let you know.
Shubhangi
@ashubhu123
Hi.... how can I void or delete the completed encounters if filled multiple times? Thank You
Vivek Singh
@petmongrels
Did we check https://codemirror.net/ for syntax highlighting library? It supports multiple languages. Looking at it because it is possible that we may use groovy for certain new type of server side rules.
Hiren Thacker
@hithacker
@petmongrels Don’t think we tried it.
Vivek Singh
@petmongrels
ok…anyway I feel replacing one with other or having both may not be a big deal.
Hiren Thacker
@hithacker
yeh
Shubhangi
@ashubhu123
Hi all ... Is there any update about the issue 'How to void or delete the completed encounters if filled multiple times?', Thank You
vindeolal
@vindeolal
@ashubhu123 You cannot perform this operation from the client. If there are visits that you want to void, then you can provide us with individual(name and location) and visit details(visit name, visit type, date when it was performed) and we'll void those entries from the backend.
Shubhangi
@ashubhu123
@vindeolal ....Ok... Will share the details .... Thank You
Arjun Khandelwal
@arjunk
@ashubhu123 for my better understanding, can you explain what is the usecase for you to void encounters?
is it just to eliminate duplicates or there is more?
Shubhangi
@ashubhu123
@arjunk .... Yes, to eliminate the duplicates only.
Shubhangi
@ashubhu123
IMG-20200701-WA0003.jpg
Hi.... we are getting this error while sync.... how to resolve this ? Thank you
Shubhangi
@ashubhu123
Hi..... I tried uploading the bundle yesterday and got some issues.... some new concepts are forms not getting created..... its an urgent required ....please resolve.... Thank You
Arjun Khandelwal
@arjunk
@ashubhu123 what is the error you are getting?
Divya Sodha
@Divya-Sodha
Hello, I have tried exploring Access Control and User Groups. I created a group with 1 user and gave some permissions to that user. It is working good. But while giving permission for checklist, I am getting the error as shown in the image.
Due to this problem, I am not able to give control of Vaccination Program to which checklist is added, to that group. But, if I activate "All privileges" button, say in case of Admin user, then it works. Need a help for this.
userIssueChecklist.PNG
userIssueCheckList2.PNG
Arjun Khandelwal
@arjunk

hi Divya, yes this is a bug already logged in the product. avniproject/avni-webapp#432. We are yet to prioritise it.

Do you have a real usecase where this is required? Is there a separate group of users who are supposed to look after vaccinations?
Also curious why did you model Vaccination as a separate program? Will a specific set of children be enrolled into this program?

Divya Sodha
@Divya-Sodha

Hi Arjun, actually we have "Child Health and Nutrition" and "Child Development" programs for children. And in case, we have to note down vaccination data without enrolling in these program, we have created a separate program for Vaccination.

Now, regarding bug, what my understanding is that admin has overall permissions from generating forms, creating users, monitoring data from web dashboards, etc. And in case of Setco, data entry part is done by Health Workers, who shouldn't get all this permissions. Now, I am a bit confused at what is the difference between "All Privileges" button activation and separately providing permissions to a group. Since, this is a new feature, Avni might be handling this before as well. So, it would be good if you guide us on that and please correct me wherever I am going wrong.

Also, we need to provide special access for Pahel program to CDA users, which is part of Child Module. They shouldn't get access for other programs. So, that's where I started trying all this.
Arjun Khandelwal
@arjunk

Everyone group - a group where everyone is part of (no user can be removed from this group)
All permissions - no restrictions (this is specifically related to data entry app and not admin app. we don't yet have permission framework for admin related part)
If all permissions is given to everyone group it means effectively access control feature is not getting used. most implementation currently go with this option.

If a permissions are required that "All permission" is removed from "Everyone" group, specific groups are to be created giving specific permissions.

Divya Sodha
@Divya-Sodha
Thanks for the information Arjun. I will also go through the documentation once again. We can discuss this in the call if required.
Arjun Khandelwal
@arjunk

hi Divya, yes this is a bug already logged in the product. avniproject/avni-webapp#432. We are yet to prioritise it.

Do you have a real usecase where this is required? Is there a separate group of users who are supposed to look after vaccinations?
Also curious why did you model Vaccination as a separate program? Will a specific set of children be enrolled into this program?

@Divya-Sodha this is fixed now.

Divya Sodha
@Divya-Sodha

hi Divya, yes this is a bug already logged in the product. avniproject/avni-webapp#432. We are yet to prioritise it.

Do you have a real usecase where this is required? Is there a separate group of users who are supposed to look after vaccinations?
Also curious why did you model Vaccination as a separate program? Will a specific set of children be enrolled into this program?

@Divya-Sodha this is fixed now.

@arjunk Yes. Thanks Arjun. That works. One more thing though. Actually, while giving permissions, I don't get any options for access control of the "Vaccination" Program. For other programs it's there. Is it possible to do something on this?

Shubhangi
@ashubhu123
Hi all.... I want to download or view the image captured during data collection.
how can I do that? Also when I try to view the image using the link provided in the report ... I get this error(image below)...... How to resolve this...please let ne know... Thank You
Screenshot from 2020-07-09 13-46-30.png
vindeolal
@vindeolal

how can I do that? Also when I try to view the image using the link provided in the report ... I get this error(image below)...... How to resolve this...please let ne know... Thank You

Hi, can you try now. You should be able to see the images now.

Shubhangi
@ashubhu123
@vindeolal ....Thank You .... Yes its working now....
Shubhangi
@ashubhu123
@arjunk .... I am unable to access 'https://app.avniproject.org/#/'
can you please check...
Arjun Khandelwal
@arjunk
hi, we are doing some maintenance because of the issue you were facing
Shubhangi
@ashubhu123
@arjunk ....ok... Thank you...
Arjun Khandelwal
@arjunk
our suspicion is the issue was mainly because lot of data was modified from the backend recently when Amar updated the encounters. we are vaccuming the database. should get done in a few more mins.
will update here when system is back up.
Arjun Khandelwal
@arjunk
its back up now
Shubhangi
@ashubhu123
@arjunk .... Yes...Thank you.