← Back to team overview

dhis2-devs team mailing list archive

Re: Tracker - enter data for different stages in programme in different orgunits

 

Hi Abyot,

Deepest apologies, you’re right, I’ve just checked and this is exactly the same in 2.24.  (I hadn’t noticed that I’d given all staff ‘data output’ permissions to the entire org unit tree.)

And on reflection, this actually makes a lot of sense the way it is: if a user can see the individual patient records in the Tracker, there’s not much point hiding the same data from them in the analytics.  (If you want to block them from exploring the data, I guess you could just give them the ‘Dashboard’ app, without any other analytics apps.)  The current setup also means you can set wide ‘search org units’ to allow an individual org unit to find any TEI and attach data to it, while still maintaining narrow ‘data output org units’ to prevent them seeing other org units’ data when they open a TEI’s dashboard.

Cheers, Sam.



From: Abyot Asalefew Gizaw <abyot@xxxxxxxxx>
Date: Monday, 31 October 2016 at 11:28
To: Sam Johnson <samuel.johnson@xxxxxxxxxx>
Cc: Olav Poppe <olav.poppe@xxxxxx>, DHIS2 Developers <dhis2-devs@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Dhis2-devs] Tracker - enter data for different stages in programme in different orgunits

Hi Sam,
Yes, by data view I meant data output and analysis organisation units.
Nothing has changed in 2.25. What we have so far, TEI search organisation unit applies only for tracked entity instances. As I mentioned in my earlier mail, we need to do some work from server side so that we allow not only access to TEI but also to related enrollments and events.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Mon, Oct 31, 2016 at 11:10 AM, Sam Johnson <samuel.johnson@xxxxxxxxxx<mailto:samuel.johnson@xxxxxxxxxx>> wrote:
Hi Abyot and Olav,

I’m very interested in this thread, but really confused by it.  ;-)

What do you mean by ‘data view’ org units – are you referring to ‘Data output and analysis organisation units’?

Like Olav, my understanding was that this should be handled by ‘Assign search org units’ – ie if you give a user ‘Data capture’ and ‘Data output’ permissions for just one org unit, but give them ‘Search org units’ for the whole tree, then they can search and view records for any TEI, but can only edit records for their own org unit.

I’m pretty sure that’s how it works in 2.24 – has this changed in 2.25?

Cheers, Sam.


From: Dhis2-devs <dhis2-devs-bounces+samuel.johnson=qebo.co.uk@xxxxxxxxxxxxxxxxxxx<mailto:qebo.co.uk@xxxxxxxxxxxxxxxxxxx>> on behalf of Olav Poppe <olav.poppe@xxxxxx<mailto:olav.poppe@xxxxxx>>
Date: Friday, 28 October 2016 at 19:41
To: Abyot Asalefew Gizaw <abyot@xxxxxxxxx<mailto:abyot@xxxxxxxxx>>
Cc: DHIS2 Developers <dhis2-devs@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-devs@xxxxxxxxxxxxxxxxxxx>>
Subject: Re: [Dhis2-devs] Tracker - enter data for different stages in programme in different orgunits

Thanks, Abyot! I though data view only concerned output (analytics etc), I didn’t know it also had implications for data entry.

Olav



28. okt. 2016 kl. 16.37 skrev Abyot Asalefew Gizaw <abyot@xxxxxxxxx<mailto:abyot@xxxxxxxxx>>:

Just looked at your setting.
You need to give both clinic_dingo and lab_apple data view orgunit. I just assigned Trainingland for both them and it works.


--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org<http://www.dhis2.org/>

On Fri, Oct 28, 2016 at 4:01 PM, Abyot Asalefew Gizaw <abyot@xxxxxxxxx<mailto:abyot@xxxxxxxxx>> wrote:
I see... now I know the difference of scenarios we have been testing. I was using the same user with access to both facilities...

with the scenario you are setting, seems we need to do some work from server side so that we allow not only access to TEI but also to related enrollments and events ... Seems we don't really need TEI Search orgunit rather data view orgunit which we already have ...

Have you set data view orgunit to your user?

May be Lars and Morten can comment on if we are using data view orgunits in enrollments and events

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org<http://www.dhis2.org/>

On Fri, Oct 28, 2016 at 3:52 PM, Olav Poppe <olav.poppe@xxxxxx<mailto:olav.poppe@xxxxxx>> wrote:
Thanks, Abyot. I tried to set up user accounts on play.dhis2.org/demo<http://play.dhis2.org/demo> so that you could see, but for some reason I’m not able to assign "Search orgunits", server returns this error:
{"httpStatus":"Internal Server Error","httpStatusCode":500,"status":"ERROR","message":"Month not valid [1,7]"}

Will share logons to a different server privately.

The steps to reproduce is:
One user assigned to facility A creates a TEI and enrols the TEI in a program in his/her facility.

Another user assigned to facility B searches for the TEI, and opens the TEI dashboard. However, the enrolment done in facility A is not visible. At the same time, it is not possible to enrol the TEI again in facility B, because the TEI has an active enrolment in the same programme.

Olav




28. okt. 2016 kl. 09.21 skrev Abyot Asalefew Gizaw <abyot@xxxxxxxxx<mailto:abyot@xxxxxxxxx>>:

Hi Olav,

I am not able to reproduce. It works fine from my side when testing with Child program.

Can you tell the steps to reproduce?

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org<http://www.dhis2.org/>

On Thu, Oct 27, 2016 at 4:47 PM, Olav Poppe <olav.poppe@xxxxxx<mailto:olav.poppe@xxxxxx>> wrote:
Hi devs,
I struggling to set up tracker so that users in different orgunits can enter data for different stages in the same enrollement. I’ve been testing both in a dev database I’m working on and on play, with 2.24 and 2.25, and the result is the same:
- User A in Facility A enrolls a TEI in a program
- User B in Facility B searches for the TEI, but when opening the dashboard it just shows "No active enrollment.". At the same time, trying to enroll the person also fails, since the TEI is already enrolled…

Any advice on what I’m missing? I’ve even tested with "superusers" with no luck, so I don’t think its a user role issue.

Regards
Olav



_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-devs@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp







References