Re: [Dhis2-devs] Event Reports App authorities

2018-10-04 Thread Alejandro
Hi,

Any comment from the devs on this subjet? I am interested to know if this
can be done or considered as a new feature. When you are going from
aggregate to individual, having this possibility would save a lot of
configuration work in terms of creation of indicators (to keep the same
level of analysis to users that should only see aggregate data).

Thank you in advance!
Alejandro

On Fri, Sep 21, 2018 at 6:16 PM Alejandro  wrote:

> Hi,
>
> The Event Reports App has two modalities of analysis:
>
> -  Aggregated values
>
> -  Events
>
>
> [image: image.png]
>
>
>
> Is there any way to give different access permissions as a function of
> user/user groups/user roles?
>
> Does it make any sense?
>
> Obviously Events is always seen as sensitive when it comes to data
> protection. It is the exact information introduced in the system line by
> line. However, the feeling is not always the same for Aggregated values,
> although I guess you could end up doing combinations that allow you to
> extract almost the same information (with more effort). Maybe that’s why
> both of them are mixed in the same App.
>
> In any case, this feature would give more granularity to authorities.
>
> Thank you in advance!
>
> Alejandro
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Event Reports App authorities

2018-09-21 Thread Alejandro
Hi,

The Event Reports App has two modalities of analysis:

-  Aggregated values

-  Events


[image: image.png]



Is there any way to give different access permissions as a function of
user/user groups/user roles?

Does it make any sense?

Obviously Events is always seen as sensitive when it comes to data
protection. It is the exact information introduced in the system line by
line. However, the feeling is not always the same for Aggregated values,
although I guess you could end up doing combinations that allow you to
extract almost the same information (with more effort). Maybe that’s why
both of them are mixed in the same App.

In any case, this feature would give more granularity to authorities.

Thank you in advance!

Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Analytics Error: Process failed: StatementCallback; bad SQL grammar [create table analytics_event_temp_zxbjnsrdsai ("uidlevel1" character(11),"uidlevel2" character..

2018-07-27 Thread Alejandro
Hi Allan,

We had a similar error and in our case it was related to this indication in
the update instructions:


   - *PostGIS* is now a required extension for PostgreSQL. Make sure to
   install and enable PostGis in your database before upgrading to DHIS 2.30.
   Please consult the installation guide
   
<https://docs.dhis2.org/master/en/implementer/html/install_server_setup.html#install_postgresql_installation>
   .

Just in case is the same issue.

Cheers,
Alejandro

On Thu, Jul 26, 2018 at 12:53 PM, Allan Makunku  wrote:

> Dear All
>
> I just upgraded my dhis2 instance from 2.29 to 2.30. However whenever I
> want to run analytics, I am getting the above error. Has anyone come
>  dhis.log
> <https://drive.google.com/file/d/1gi9fgKr0u8LGYqFGcmy7JPLNsWg3U_Jr/view?usp=drive_web>
> across this and what can I do to have it resolved. Attached is the log file
>
> Please help.
>
> Allan
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Error in 2.25 displaying graphs and tables when an organisationUnitGroupSet is defined as filter

2017-01-26 Thread Alejandro
Hi,

We found out that the error was due to some organisationUnitGroups being
part of more than one organisationUnitGroupSet. In those cases, if you list
the organisationUnitGroups with an API call you get multiples instances for
those organisationUnitGroups (one per orgUnitGroupSet they belong to). And
in the end, this is the cause of inconsistencies with standard DHIS2
modules such as the one described above. We solved it by duplicating the
orgUnitGroups so they belong only to one orgUnitGroupSet.

This happened to us before with categoryOptionGroups and
categoryOptionGroupSets and we solved it in the same way. But it took us
some time to match both issues.

Just in case you face the same issue!

One question, is this the expected behaviour?

Cheers!
Alejandro

On Thu, Jan 26, 2017 at 10:01 AM, Alejandro <acas...@gmail.com> wrote:

> Hi all!
>
> After upgrading from 2.21 to 2.25 we have found the following error:
>
> [image: Inline image 1]
>
> Code: 500
> Status: Internal Server Error
> Not a valid dimension: BtFXTpKRl6n
>
> This uid, BtFXTpKRl6n, is an organisationUnitGroupSet that, in the Layout
> of a graph/table, is placed in the filter section.
>
> The tricky thing is that the behaviour is not always the same. Sometimes
> we can open those tables and graphs and sometimes not. In particular once
> we get the error, if we perform the Maintenance Task Clear application
> cache, it works again. But suddenly, after some time, we start getting the
> same error again in the same table/graph or in others with the only thing
> in common that they have this organisationUnitGroupSet as a filter.
>
> We are looking into it right now but if any of you have faced a similar
> problem or have an idea on what it could be, thank you for sharing!
>
> Cheers!
> Alejandro
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Error in 2.25 displaying graphs and tables when an organisationUnitGroupSet is defined as filter

2017-01-26 Thread Alejandro
Hi all!

After upgrading from 2.21 to 2.25 we have found the following error:

[image: Inline image 1]

Code: 500
Status: Internal Server Error
Not a valid dimension: BtFXTpKRl6n

This uid, BtFXTpKRl6n, is an organisationUnitGroupSet that, in the Layout
of a graph/table, is placed in the filter section.

The tricky thing is that the behaviour is not always the same. Sometimes we
can open those tables and graphs and sometimes not. In particular once we
get the error, if we perform the Maintenance Task Clear application cache,
it works again. But suddenly, after some time, we start getting the same
error again in the same table/graph or in others with the only thing in
common that they have this organisationUnitGroupSet as a filter.

We are looking into it right now but if any of you have faced a similar
problem or have an idea on what it could be, thank you for sharing!

Cheers!
Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Tracker capture. Error when writing a note.

2016-12-22 Thread Alejandro
Hi Abyot!

Thank you very much! I am going to test it now!

Regards!
Alejandro

On Wed, Dec 21, 2016 at 3:01 PM, Abyot Asalefew Gizaw <ab...@dhis2.org>
wrote:

> Hi Alejandro,
>
> This is now fixed in 2.25 and master.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Fri, Dec 16, 2016 at 9:59 AM, Alejandro <acas...@gmail.com> wrote:
>
>> Hi,
>>
>> Ok, thank you Abyot. Do you want me to report this in JIRA as a bug?
>>
>> Regards!
>> Alejandro
>>
>> On Fri, Dec 16, 2016 at 9:32 AM, Abyot Asalefew Gizaw <ab...@dhis2.org>
>> wrote:
>>
>>> Hi,
>>>
>>> Yes, it affects all programs and I am looking into it.
>>>
>>> --
>>> Abyot A. Gizaw.
>>> Senior Engineer, DHIS2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Fri, Dec 16, 2016 at 9:31 AM, Alejandro <acas...@gmail.com> wrote:
>>>
>>>> Hi Lars!
>>>>
>>>> I used "TB Program" for my test. But I think it is true for all
>>>> programs, not related to a specific one.
>>>>
>>>> Regards!
>>>> Alejandro
>>>>
>>>> On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland <l...@dhis2.org>
>>>> wrote:
>>>>
>>>>> Hi Alejandro,
>>>>>
>>>>> thanks for reporting. Which program did you select for this to happen?
>>>>>
>>>>> regards,
>>>>>
>>>>> Lars
>>>>>
>>>>> On Thu, Dec 15, 2016 at 4:22 PM, Alejandro <acas...@gmail.com> wrote:
>>>>>
>>>>>> Hello devs!
>>>>>>
>>>>>> We just noticed an error in Tracker Capture App related to Notes
>>>>>> (DHIS2 version 2.25). It can be reproduced in the demo server by doing 
>>>>>> the
>>>>>> following steps:
>>>>>>
>>>>>> 1) Register a new patient in one of the individual programs, in
>>>>>> instance, TB Program.
>>>>>>
>>>>>> 2) Add a note, such as in the image below (a dashboard's note, not
>>>>>> the ones you can add associated to the form).
>>>>>>
>>>>>> [image: Inline image 1]
>>>>>> 3) Press the button Back. Look for the same patient and enter again
>>>>>> in the dashboard of the program. Any tentative to complete the program
>>>>>> instance raises the following error:
>>>>>>
>>>>>> [image: Inline image 2]
>>>>>>
>>>>>> Unrecognized field "heading" (class 
>>>>>> org.hisp.dhis.dxf2.events.event.Note),
>>>>>> not marked as ignorable (3 known properties: "value", "storedBy",
>>>>>> "storedDate"]) at [Source: java.io.BufferedInputStream@7c7adc35;
>>>>>> line: 1, column: 420] (through reference chain:
>>>>>> org.hisp.dhis.dxf2.events.enrollment.Enrollment["notes"]->ja
>>>>>> va.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note["
>>>>>> heading"])
>>>>>>
>>>>>> *Note:* This does not happen if the program instance is completed
>>>>>> just after adding the note (without pressing the back button). But in 
>>>>>> this
>>>>>> case, if you enter again in the patient dashboard and you reopen the
>>>>>> program instance, you will get the same error, preventing any 
>>>>>> modification.
>>>>>>
>>>>>> This is normal behavior, since patient data is normally registered at
>>>>>> different times in tracker, and the note can be added at any point in the
>>>>>> process.
>>>>>>
>>>>>> Can you have a look at that?
>>>>>>
>>>>>> Many thanks in advance for your help!
>>>>>> Alejandro
>>>>>>
>>>>>> ___
>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>> Post to : dhis2-devs@lists.launchpad.net
>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Lars Helge Øverland
>>>>> Lead developer, DHIS 2
>>>>> University of Oslo
>>>>> Skype: larshelgeoverland
>>>>> l...@dhis2.org
>>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>>
>>>>>
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>> Post to : dhis2-devs@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Tracker capture. Error when writing a note.

2016-12-16 Thread Alejandro
Hi,

Ok, thank you Abyot. Do you want me to report this in JIRA as a bug?

Regards!
Alejandro

On Fri, Dec 16, 2016 at 9:32 AM, Abyot Asalefew Gizaw <ab...@dhis2.org>
wrote:

> Hi,
>
> Yes, it affects all programs and I am looking into it.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Fri, Dec 16, 2016 at 9:31 AM, Alejandro <acas...@gmail.com> wrote:
>
>> Hi Lars!
>>
>> I used "TB Program" for my test. But I think it is true for all
>> programs, not related to a specific one.
>>
>> Regards!
>> Alejandro
>>
>> On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland <l...@dhis2.org>
>> wrote:
>>
>>> Hi Alejandro,
>>>
>>> thanks for reporting. Which program did you select for this to happen?
>>>
>>> regards,
>>>
>>> Lars
>>>
>>> On Thu, Dec 15, 2016 at 4:22 PM, Alejandro <acas...@gmail.com> wrote:
>>>
>>>> Hello devs!
>>>>
>>>> We just noticed an error in Tracker Capture App related to Notes (DHIS2
>>>> version 2.25). It can be reproduced in the demo server by doing the
>>>> following steps:
>>>>
>>>> 1) Register a new patient in one of the individual programs, in
>>>> instance, TB Program.
>>>>
>>>> 2) Add a note, such as in the image below (a dashboard's note, not the
>>>> ones you can add associated to the form).
>>>>
>>>> [image: Inline image 1]
>>>> 3) Press the button Back. Look for the same patient and enter again in
>>>> the dashboard of the program. Any tentative to complete the program
>>>> instance raises the following error:
>>>>
>>>> [image: Inline image 2]
>>>>
>>>> Unrecognized field "heading" (class org.hisp.dhis.dxf2.events.event.Note),
>>>> not marked as ignorable (3 known properties: "value", "storedBy",
>>>> "storedDate"]) at [Source: java.io.BufferedInputStream@7c7adc35; line:
>>>> 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enro
>>>> llment.Enrollment["notes"]->java.util.ArrayList[0]->org.hisp
>>>> .dhis.dxf2.events.event.Note["heading"])
>>>>
>>>> *Note:* This does not happen if the program instance is completed just
>>>> after adding the note (without pressing the back button). But in this case,
>>>> if you enter again in the patient dashboard and you reopen the program
>>>> instance, you will get the same error, preventing any modification.
>>>>
>>>> This is normal behavior, since patient data is normally registered at
>>>> different times in tracker, and the note can be added at any point in the
>>>> process.
>>>>
>>>> Can you have a look at that?
>>>>
>>>> Many thanks in advance for your help!
>>>> Alejandro
>>>>
>>>> ___
>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>> Post to : dhis2-devs@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> l...@dhis2.org
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Tracker capture. Error when writing a note.

2016-12-16 Thread Alejandro
Hi Lars!

I used "TB Program" for my test. But I think it is true for all programs,
not related to a specific one.

Regards!
Alejandro

On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland <l...@dhis2.org> wrote:

> Hi Alejandro,
>
> thanks for reporting. Which program did you select for this to happen?
>
> regards,
>
> Lars
>
> On Thu, Dec 15, 2016 at 4:22 PM, Alejandro <acas...@gmail.com> wrote:
>
>> Hello devs!
>>
>> We just noticed an error in Tracker Capture App related to Notes (DHIS2
>> version 2.25). It can be reproduced in the demo server by doing the
>> following steps:
>>
>> 1) Register a new patient in one of the individual programs, in instance,
>> TB Program.
>>
>> 2) Add a note, such as in the image below (a dashboard's note, not the
>> ones you can add associated to the form).
>>
>> [image: Inline image 1]
>> 3) Press the button Back. Look for the same patient and enter again in
>> the dashboard of the program. Any tentative to complete the program
>> instance raises the following error:
>>
>> [image: Inline image 2]
>>
>> Unrecognized field "heading" (class org.hisp.dhis.dxf2.events.event.Note),
>> not marked as ignorable (3 known properties: "value", "storedBy",
>> "storedDate"]) at [Source: java.io.BufferedInputStream@7c7adc35; line:
>> 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enro
>> llment.Enrollment["notes"]->java.util.ArrayList[0]->org.hi
>> sp.dhis.dxf2.events.event.Note["heading"])
>>
>> *Note:* This does not happen if the program instance is completed just
>> after adding the note (without pressing the back button). But in this case,
>> if you enter again in the patient dashboard and you reopen the program
>> instance, you will get the same error, preventing any modification.
>>
>> This is normal behavior, since patient data is normally registered at
>> different times in tracker, and the note can be added at any point in the
>> process.
>>
>> Can you have a look at that?
>>
>> Many thanks in advance for your help!
>> Alejandro
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Tracker capture. Error when writing a note.

2016-12-15 Thread Alejandro
Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2
version 2.25). It can be reproduced in the demo server by doing the
following steps:

1) Register a new patient in one of the individual programs, in instance,
TB Program.

2) Add a note, such as in the image below (a dashboard's note, not the ones
you can add associated to the form).

[image: Inline image 1]
3) Press the button Back. Look for the same patient and enter again in the
dashboard of the program. Any tentative to complete the program instance
raises the following error:

[image: Inline image 2]

Unrecognized field "heading" (class org.hisp.dhis.dxf2.events.event.Note),
not marked as ignorable (3 known properties: "value", "storedBy",
"storedDate"]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1,
column: 420] (through reference chain:
org.hisp.dhis.dxf2.events.enrollment.Enrollment["notes"]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note["heading"])

*Note:* This does not happen if the program instance is completed just
after adding the note (without pressing the back button). But in this case,
if you enter again in the patient dashboard and you reopen the program
instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at
different times in tracker, and the note can be added at any point in the
process.

Can you have a look at that?

Many thanks in advance for your help!
Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program rule actions of type ASSIGN not working on SCHEDULED events

2016-11-23 Thread Alejandro
Hi!



Any feedback on this issue so far? In case it is of any help, I noticed the
following. When updating one dataelement in an event that was directly
added (sign + in the user interface of the Tracker Capture) the payload
generated was:


{"event":"donHXNZZSoH","orgUnit":"ElSpSqucvZg","program":"ORvg6A5ed7z","programStage":"tmsr4EJaSPz",
*"status":"ACTIVE"*
,"trackedEntityInstance":"v3YvuAkhpWs","dataValues":[{"dataElement":"xMYPMdmM3aY","value":5,"providedElsewhere":false}]}



On the contrary, when updating the same dataelement in an event filled out
after being scheduled (first scheduled, then assigned a date and filled
out), the resulting payload was:


{"event":"Ev4dLx6ujXm","orgUnit":"ElSpSqucvZg","program":"ORvg6A5ed7z","programStage":"tmsr4EJaSPz",
*"status":"SCHEDULE"*
,"trackedEntityInstance":"v3YvuAkhpWs","dataValues":[{"dataElement":"iiRV3pv52oc","value":5,"providedElsewhere":false}]}



It seems that the flag/property status is not updated to ACTIVE once the
previous scheduled event is filled out and maybe this might be the cause of
not executing programRuleActions (if there is some conditional code
checking the *status*).


This would be a very good improvement to us, since our programs contain
many ASSIGN programRuleActions and not being able to schedule events
prevents us from using standard functionalities such as Upcoming Events and
Overdue Events.



Many thanks in advance!

Alejandro


On Thu, Nov 10, 2016 at 10:05 AM, Victor Garcia <vgarcia...@gmail.com>
wrote:

> Hi all,
>
> we have noticed a buggy behavior when using program rule actions of type
> ASSIGN in scheduled events. The program rule is correctly evaluated, but
> the program rule action does not assign the desired value to the
> dataelement in that event. This happens only when the event is created
> using the visit scheduler. If the event is created using the "Add new
> event" button the program rule action works fine.
>
> The steps to reproduce the issue:
> 1. Create a programRuleVariable of type "DATAELEMENT_CURRENT_EVENT" with
> the dataelement we want to copy.
> 2. Create a programRule limited to that programStage.
> 3. Assign a programRuleAction of type ASSIGN, with the previously crated
> programRuleVariable as the "data" and a dataelement as the target.
>
> I couldn't access demo server to reproduce the issue (it seems that admin
> password has been changed), but I did in dev server and created an example
> that you can easily verify until it is reset tonight. It is in the program
> "WHO RMNCH Tracker", in the stage "Postpartum care visit". I added a new
> dataelement called "Copy HIV test result" just below "HIV test result" that
> copies its value. You can verify that if the stage is created using the
> "Add event button" the value is correctly copied; but it the stage is added
> using the visit scheduler, the value is not copied.
>
> If there is doubt please let me know.
>
> Thank you!
>
> Víctor
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program rule actions of type ASSIGN not working on SCHEDULED events

2016-11-23 Thread Alejandro
Hi!

Any feedback on this issue so far? In case it is of any help, I noticed the
following. When updating one dataelement in an event that was directly
added (sign + in the user interface of the Tracker Capture) the payload
generated was:

   1.
   
{"event":"donHXNZZSoH","orgUnit":"ElSpSqucvZg","program":"ORvg6A5ed7z","programStage":"tmsr4EJaSPz",
   *"status":"ACTIVE"*
   
,"trackedEntityInstance":"v3YvuAkhpWs","dataValues":[{"dataElement":"xMYPMdmM3aY","value":5,"providedElsewhere":false}]}


On the contrary, when updating the same dataelement in an event filled out
after being scheduled (first scheduled, then assigned a date and filled
out), the resulting payload was:

   1.
   
{"event":"Ev4dLx6ujXm","orgUnit":"ElSpSqucvZg","program":"ORvg6A5ed7z","programStage":"tmsr4EJaSPz",
   *"status":"SCHEDULE"*
   
,"trackedEntityInstance":"v3YvuAkhpWs","dataValues":[{"dataElement":"iiRV3pv52oc","value":5,"providedElsewhere":false}]}


It seems that the flag/property status is not updated to ACTIVE once the
previous scheduled event is filled out and maybe this might be the cause of
not executing programRuleActions (if there is some conditional code
checking the *status*).

Many thanks in advance!
Alejandro


On Thu, Nov 10, 2016 at 10:05 AM, Victor Garcia <vgarcia...@gmail.com>
wrote:

> Hi all,
>
> we have noticed a buggy behavior when using program rule actions of type
> ASSIGN in scheduled events. The program rule is correctly evaluated, but
> the program rule action does not assign the desired value to the
> dataelement in that event. This happens only when the event is created
> using the visit scheduler. If the event is created using the "Add new
> event" button the program rule action works fine.
>
> The steps to reproduce the issue:
> 1. Create a programRuleVariable of type "DATAELEMENT_CURRENT_EVENT" with
> the dataelement we want to copy.
> 2. Create a programRule limited to that programStage.
> 3. Assign a programRuleAction of type ASSIGN, with the previously crated
> programRuleVariable as the "data" and a dataelement as the target.
>
> I couldn't access demo server to reproduce the issue (it seems that admin
> password has been changed), but I did in dev server and created an example
> that you can easily verify until it is reset tonight. It is in the program
> "WHO RMNCH Tracker", in the stage "Postpartum care visit". I added a new
> dataelement called "Copy HIV test result" just below "HIV test result" that
> copies its value. You can verify that if the stage is created using the
> "Add event button" the value is correctly copied; but it the stage is added
> using the visit scheduler, the value is not copied.
>
> If there is doubt please let me know.
>
> Thank you!
>
> Víctor
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Bug in the last build of 2.25 when registering a tracked entity in any program

2016-11-16 Thread Alejandro
Hi Abyot and Lars!

Thank you so much for your quick support!

Best regards!
Alejandro

On Wed, Nov 16, 2016 at 11:36 AM, Lars Helge Øverland <l...@dhis2.org>
wrote:

> Hi Alejandro,
>
> this was a regression bug which has been fixed now. New builds are ready
> for download in 20 minutes.
>
>
> best regards,
>
> Lars
>
>
> On Wed, Nov 16, 2016 at 9:58 AM, Alejandro <acas...@gmail.com> wrote:
>
>> Hi!
>>
>> We just updated one of our 2.25 servers to the last build yesterday (
>> 8b67806) and noticed there is a bug in the registration of tracked
>> entities (Tracker Capture). It is raised when you click on save, after the
>> enrollment form, and it prevents the registrations (see below).
>>
>> The same behavior was reproduced in the the demo instance today (692dd9a
>> ): https://play.dhis2.org/demo
>>
>> [image: Inline image 2]
>>
>> [image: Inline image 1]
>>
>> Given the http answer, it seems that registering the organisation unit is
>> the issue.
>>
>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"At 
>> least one organisation unit must be specified"}
>>
>> Can you have a look at it?
>>
>>
>> Many thanks in advance!
>>
>> Alejandro
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Bug in the last build of 2.25 when registering a tracked entity in any program

2016-11-16 Thread Alejandro
Hi!

We just updated one of our 2.25 servers to the last build yesterday (8b67806)
and noticed there is a bug in the registration of tracked entities (Tracker
Capture). It is raised when you click on save, after the enrollment form,
and it prevents the registrations (see below).

The same behavior was reproduced in the the demo instance today (692dd9a):
https://play.dhis2.org/demo

[image: Inline image 2]

[image: Inline image 1]

Given the http answer, it seems that registering the organisation unit is
the issue.

{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"At
least one organisation unit must be specified"}

Can you have a look at it?


Many thanks in advance!

Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Event report tables added to dashboards are displayed 'blank' when period is selected as Start-End dates (2.25)

2016-10-31 Thread Alejandro
Hi!

Mmm. In our case, 2.25, it is just related to that type of period (*Start/end
dates'*), Other Event Reports tables are well rendered in dashboards and
correctly opened in Event Report module (see below)...

[image: Inline image 1]

Regards!
Alejandro

On Wed, Oct 26, 2016 at 10:55 AM, Archana Chillala <
archa...@thoughtworks.com> wrote:

> Agree. We are facing the same issue as well. Event reports are being
> rendered as blank dashboard items, regardless of what configuration they
> have for periods. When we click on 'explore' for that dashboard item, it
> takes us merely to Event Reports App, but does not render the saved report.
>
> Could you please help fix the issue.
>
>
> *Cheers,*
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>
> On Mon, Oct 24, 2016 at 9:36 PM, Alejandro <acas...@gmail.com> wrote:
>
>> Hi!
>>
>>
>> We have noticed (tested in https://play.dhis2.org) that any event report
>> table that is defined with a period type *'Start/end dates'* instead of*
>> 'Fixed and relative periods' *is displayed 'blank' when added to a
>> dashboard (see image below).
>>
>>
>> [image: Inline image 1]
>>
>> The error generated is:
>>
>>
>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"Start
>>  date or end date is invalid: 2016-07-24T00:00:00.000 - 
>> 2016-10-24T00:00:00.000"}
>>
>>
>> It seems to be related to date format, since removing the bold text in the 
>> original query (see below), it works!
>>
>> https://play.dhis2.org/demo/api/analytics/events/query/eBAyeGv0exc.json?stage=Zj7UnCAulEk=ou:O6uvpzGd5pu=eMyVanycQSC=qrur9Dvnyt5-Yf6UHoPkdS6=tUdBD1JDxpn=sGna2pquXOO=Kswd1r4qWLh=gWxh7DiRmG7=x7PaHGvgWY2=XCMi7Wvnplm=hlPt8H4bUOQ=Thkx2BnO5Kq=Y7hKDSuqEtH=K6uUAvq500H=msodh3rEMJa=oZg33kd9taw=GieVkTxp4HH-TBxGTceyzwy=HS8QXAJtuKV=fWIAEtYVEGk=SWfdB5lX0fk=vV9UWAZohSf-OrkEzxZEH4X=2016-07-24*T00:00:00.000*=2016-10-24*T00:00:00.000*=50=1=NAME
>>
>>
>> Cheers!
>>
>> Alejandro
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [DHIS] Updating Program Version

2016-10-31 Thread Alejandro
Hi!

In relation to this thread, we have noticed that whenever the program
version gets incremented, ProgramTrackedEntityAttributes ids change. This
leads to an error during metadata export to another DHIS2 instance (in
which the program already exists) due to ProgramTrackedEntityAttributes id
inconsistencies. It should be taken into account not to compromise
meta-data sync.

Regards!
Alejandro

On Thu, Oct 27, 2016 at 8:10 AM, Archana Chillala <archa...@thoughtworks.com
> wrote:

> Okay. Thanks for the information, Abyot. Could you please let us know the
> timelines around it?
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>
> On Wed, Oct 26, 2016 at 12:30 PM, Abyot Gizaw <aby...@gmail.com> wrote:
>
>> Hi,
>>
>> The program module is getting migrated to maintainance, better to fix it
>> there.
>>
>> ---
>>
>> Thank you,
>> Abyot.
>> (sent from mobile)
>>
>> On Mar 16, 2016 09:53, "Archana Chillala" <archa...@thoughtworks.com>
>> wrote:
>>
>>> Hi Morten,
>>>
>>> I am using DHIS version 2.23. In the Program/attributes module, when we
>>> create a program, one of the properties of the program - *Version -* is
>>> automatically assigned a value 1. When we update the program, the Version
>>> value gets incremented by 1 each time. But, even if we do not make any
>>> changes to the program and just click update button, the program version
>>> still gets incremented by 1.
>>>
>>> Is this the expected functionality? Could you please explain.
>>>
>>>
>>>
>>> *Thanks*
>>>
>>> Archana Chillala
>>> Application Developer
>>> Email archa...@thoughtworks.com
>>> Telephone +91 9100960533 <+91+9100960533>
>>> [image: ThoughtWorks]
>>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature_medium=email_source=thoughtworks-email-signature-generator>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Bug 2.25. Error when entering a program dashboard through the relationship link (for entities enrolled in more than one program)

2016-10-24 Thread Alejandro
Hi,

Tested against https://play.dhis2.org/demo. In Tracker Capture, when there
is a relationship, and we click in the existing link to go to the entity
program dashboards, if that entity is enrolled in more than one program,
the software does not enter in any of them by default. But, it does not
display any active enrollments either...

[image: Inline image 1]

When we select one of the programs in which the entity is enrolled (see
image below), the other enrollments appear again in the section Other
programs.

[image: Inline image 2]

Cheers!
Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Event report tables added to dashboards are displayed 'blank' when period is selected as Start-End dates (2.25)

2016-10-24 Thread Alejandro
Hi!


We have noticed (tested in https://play.dhis2.org) that any event report
table that is defined with a period type *'Start/end dates'* instead of*
'Fixed and relative periods' *is displayed 'blank' when added to a
dashboard (see image below).


[image: Inline image 1]

The error generated is:


{"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"Start
date or end date is invalid: 2016-07-24T00:00:00.000 -
2016-10-24T00:00:00.000"}


It seems to be related to date format, since removing the bold text in
the original query (see below), it works!

https://play.dhis2.org/demo/api/analytics/events/query/eBAyeGv0exc.json?stage=Zj7UnCAulEk=ou:O6uvpzGd5pu=eMyVanycQSC=qrur9Dvnyt5-Yf6UHoPkdS6=tUdBD1JDxpn=sGna2pquXOO=Kswd1r4qWLh=gWxh7DiRmG7=x7PaHGvgWY2=XCMi7Wvnplm=hlPt8H4bUOQ=Thkx2BnO5Kq=Y7hKDSuqEtH=K6uUAvq500H=msodh3rEMJa=oZg33kd9taw=GieVkTxp4HH-TBxGTceyzwy=HS8QXAJtuKV=fWIAEtYVEGk=SWfdB5lX0fk=vV9UWAZohSf-OrkEzxZEH4X=2016-07-24*T00:00:00.000*=2016-10-24*T00:00:00.000*=50=1=NAME


Cheers!

Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Bug in 2.25. Removing dataelements from a dataset with sections

2016-10-24 Thread Alejandro
Hi!


I was trying to remove some dataelements from a dataset with sections in
2.25 (through the dataset menu) and I noticed the following:


-  You cannot see them in the dataset menu any more (as expected).

-  You cannot see them in the section menu any more (as expected).

-  They still appear in the data entry, when opening the just
modified dataset (all cache cleanings done).


I checked the database and it seems that the link between section and
dataelement is still there (table sectiondataelements). Possible solutions
would be to take this into account or not allow to remove a dataelement
from a dataset if it is still assigned to a section.


That behaviour has been reproduced in https://play.dhis2.org/


Regards!

Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp