[Dhis2-users] Add period in sms data entry

2018-04-03 Thread DJIBRIL Hakim
Hi,
Please there is a way to add period while sending data by sms into dhis2.
What is the format to do that ? like
*smsCommand period values *

*example : report 201801 A.4.B.1.C.9 *
Regards
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Shurajit Dutta
Thanks Markus, just wanted to confirm.

https://jira.dhis2.org/browse/DHIS2-3312

On Tue, Apr 3, 2018 at 2:30 AM, Markus Bekken  wrote:

> Nayeem, thanks for the workaround.
>
> Nick, the proposed usage should have worked. Age should be treated as a
> normal date data type in the program indicators. Can you create a bug in
> jira?
>
> Markus
>
> 3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah :
>
> Hi Nick
> I have also notice the same problem. Later created a data element in
> program stage and assign age in year as a calculative value from program
> attribute 'age'.
>
> It works!
>
> Regards,
> Nayeem Al Mifthah
> Consultant for HSS, HMIS, M, GIS and Surveillance
>
> Kindly ignore typos.
>
> On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  wrote:
>
>> Hi
>>
>> I am trying to figure out the best method to use age-type attributes in
>> program indicator calculations. As a simple example, let us say I want a
>> program indicator which displays the age in years of a person. From what I
>> can see, the age-type attribute stores its value as a date, according to
>> the date of birth either selected or estimated based on what is entered in
>> the years, weeks and months fields respectively during registration. If I
>> want to use this date in a program indicator however it seems to not work
>> correctly.
>>
>> ie d2:yearsBetween(age, event_date) when used as an expressions as an
>> example would not give me the correct age in years. Is there another way in
>> which to make these types of program indicators work with the age-type
>> attribute?
>>
>> Thanks,
>> Nick
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>


-- 
Shurajit Dutta (MPH, MHI)
Health Information Systems Adviser
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] User password reset through API

2018-04-03 Thread Hendrik de Graaf
Hi Muhammad,

Make sure you include the `userCredentials.id` field in your PUT request too. 
That should be enough for updating a user.

However, when you want to set fields for a new user (POST request), you must 
make sure to also to create a `userCredentials.userInfo.id` field.

You can use the d2 `generateUid` method ( 
http://dhis2.github.io/d2/module-uid.html#.generateUid) to generate a uuid on 
the client.

Good luck,
Hendrik


On 31 Mar 2018, 17:21 +0200, Hannan Khan , wrote:
> Hello Experts
>
> Hope you are all enjoying Easter.
>
> I am trying to reset/update password through API. Is it possible to send PUT 
> request with jason payload with only ID, username and password? I use
>
> curl -X PUT -u user:pass -d @u.json -H "Content-Type: application/json" 
> https://server/api/26/users/ID
>
>  I am getting following error:
>
> {"httpStatus":"Conflict","httpStatusCode":409,"status":"ERROR","message":"org.hisp.dhis.user.User
>  does not exist: ID"}
>
> Please advice.
>
> Regards
> --
> Muhammad Abdul Hannan Khan
> Team Leader
> Support to the National HMIS
> MIS, Director General of Health Service
> Ministry of Health and Family Welfare
>
> T +880-2- 58816459, 58816412 ext 118
> F +88 02 58813 875
> M+88 01819 239 241
> M+88 01534 312 066
> E hann...@gmail.com
> S hannan.khan.dhaka
> B hannan-tech.blogspot.com
> L https://bd.linkedin.com/in/hannankhan
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] VALUES NOT SHOWING IN PIVOT TABLES

2018-04-03 Thread Stanley Kalyati
I have two instances and they were working properly until one after the
other stopped showing values after i run analytics and cleared cache.

Both instances are running on 2.27 Build revision: dbacc42  and Build
revision:e33b34d

We have not had any upgrades lately and all was well until this morning
when i noticed i can not see my graphs with data on the dashboard.

Anyone with an idea?

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


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Seleman Ally
 Dear Markus and Nayeem, 
Thanks a lot, i will test that and definitely I will share my feedback. 
Thanks a lot 
Regards

On Tuesday, April 3, 2018, 10:23:04 AM GMT+3, Nayeem Al Mifthah 
 wrote:  
 
 Hi SaleCreate a data element ie. age in yearAssign to stage.Create a program 
rule variable with age/DoB attribute as any name ie. DOBCreate program rule to 
assign value to newly created data elementThe calculation should be 
d2:yearsBetween(DoB, event_date)


Nayeem Al Mifthah
Consultant for HSS, Health MIS, M and Surveillance
Email: n.mift...@gmail.com 
Cell:+8801914030574
Skype: nayeem.a.m
On Tue, Apr 3, 2018 at 12:57 PM, Seleman Ally  wrote:

 Hi Nayeem, this is very useful but the statement below was not very clear at 
least for me.  
"Later created a data element in program stage and assign age in year as a 
calculative value from program attribute 'age'."

Do you mind to elaborate a bit more, and which version  of DHIS2 are referring 
to? 
Thanks in advance
Regards
Sele 
On Tuesday, April 3, 2018, 4:42:08 AM GMT+3, Nayeem Al Mifthah 
 wrote:  
 
 Hi NickI have also notice the same problem. Later created a data element in 
program stage and assign age in year as a calculative value from program 
attribute 'age'.
It works! 

Regards,
Nayeem Al Mifthah
Consultant for HSS, HMIS, M, GIS and Surveillance

Kindly ignore typos.
On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  wrote:

Hi
I am trying to figure out the best method to use age-type attributes in program 
indicator calculations. As a simple example, let us say I want a program 
indicator which displays the age in years of a person. From what I can see, the 
age-type attribute stores its value as a date, according to the date of birth 
either selected or estimated based on what is entered in the years, weeks and 
months fields respectively during registration. If I want to use this date in a 
program indicator however it seems to not work correctly.
ie d2:yearsBetween(age, event_date) when used as an expressions as an example 
would not give me the correct age in years. Is there another way in which to 
make these types of program indicators work with the age-type attribute?
Thanks,Nick__ _
Mailing list: https://launchpad.net/~dhis2- users
Post to     : dhis2-users@lists.launchpad. net
Unsubscribe : https://launchpad.net/~dhis2- users
More help   : https://help.launchpad.net/ ListHelp

__ _
Mailing list: https://launchpad.net/~dhis2- users
Post to    : dhis2-users@lists.launchpad. net
Unsubscribe : https://launchpad.net/~dhis2- users
More help  : https://help.launchpad.net/ ListHelp
  

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


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Nayeem Al Mifthah
Hi Sale
Create a data element ie. age in year
Assign to stage.
Create a program rule variable with age/DoB attribute as any name ie. DOB
Create program rule to assign value to newly created data element
The calculation should be d2:yearsBetween(DoB, event_date)



*Nayeem Al Mifthah*
*Consultant for HSS, Health MIS, M and Surveillance*
Email: n.mift...@gmail.com
Cell:+8801914030574
Skype: nayeem.a.m

On Tue, Apr 3, 2018 at 12:57 PM, Seleman Ally 
wrote:

> Hi Nayeem, this is very useful but the statement below was not very clear
> at least for me.
>
> "Later created a data element in program stage and assign age in year as a
> calculative value from program attribute 'age'."
>
> Do you mind to elaborate a bit more, and which version  of DHIS2 are
> referring to?
>
> Thanks in advance
>
> Regards
>
> Sele
>
> On Tuesday, April 3, 2018, 4:42:08 AM GMT+3, Nayeem Al Mifthah <
> n.mift...@gmail.com> wrote:
>
>
> Hi Nick
> I have also notice the same problem. Later created a data element in
> program stage and assign age in year as a calculative value from program
> attribute 'age'.
>
> It works!
>
> Regards,
> Nayeem Al Mifthah
> Consultant for HSS, HMIS, M, GIS and Surveillance
>
> Kindly ignore typos.
>
> On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  wrote:
>
> Hi
>
> I am trying to figure out the best method to use age-type attributes in
> program indicator calculations. As a simple example, let us say I want a
> program indicator which displays the age in years of a person. From what I
> can see, the age-type attribute stores its value as a date, according to
> the date of birth either selected or estimated based on what is entered in
> the years, weeks and months fields respectively during registration. If I
> want to use this date in a program indicator however it seems to not work
> correctly.
>
> ie d2:yearsBetween(age, event_date) when used as an expressions as an
> example would not give me the correct age in years. Is there another way in
> which to make these types of program indicators work with the age-type
> attribute?
>
> Thanks,
> Nick
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to: dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help  : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Markus Bekken
Hey Seleman,
The issue you are referring to here asks for a change in how the Age data type 
functions. I think the behavior you want should already be supported, but with 
the syntax that Nick provided below.

One strength of calculating the age using the d2:yearsBetween() is that you 
would explicitly state the point in time where you want the calculation to be 
based on. If you look at an Age data element in the user interface, the 
calculation is done based on the current date - but this is not always what you 
want when writing program indicators. Nicks example below was calculating based 
on event date for example.

Markus

> 3. apr. 2018 kl. 08:52 skrev Seleman Ally :
> 
> Hi Markus and the team, 
> 
> I think the issue is already created on JIRA since last year. May be we 
> should push for it because this is stopping community from benefiting with 
> this useful feature. The Jira link to the link is
> 
> https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22 
> 
> 
> Issue Navigator - DHIS 2 JIRA 
> 
> 
> 
> Issue Navigator - DHIS 2 JIRA
>  
> 
> 
> Regards
> 
> Sele
> On Tuesday, April 3, 2018, 9:30:31 AM GMT+3, Markus Bekken  
> wrote:
> 
> 
> Nayeem, thanks for the workaround.
> 
> Nick, the proposed usage should have worked. Age should be treated as a 
> normal date data type in the program indicators. Can you create a bug in jira?
> 
> Markus
> 
>> 3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah > >:
>> 
>> Hi Nick
>> I have also notice the same problem. Later created a data element in program 
>> stage and assign age in year as a calculative value from program attribute 
>> 'age'.
>> 
>> It works! 
>> 
>> Regards,
>> Nayeem Al Mifthah
>> Consultant for HSS, HMIS, M, GIS and Surveillance
>> 
>> Kindly ignore typos.
>> 
>> On Mon, 2 Apr 2018, 23:07 Shurajit Dutta, > > wrote:
>> Hi
>> 
>> I am trying to figure out the best method to use age-type attributes in 
>> program indicator calculations. As a simple example, let us say I want a 
>> program indicator which displays the age in years of a person. From what I 
>> can see, the age-type attribute stores its value as a date, according to the 
>> date of birth either selected or estimated based on what is entered in the 
>> years, weeks and months fields respectively during registration. If I want 
>> to use this date in a program indicator however it seems to not work 
>> correctly.
>> 
>> ie d2:yearsBetween(age, event_date) when used as an expressions as an 
>> example would not give me the correct age in years. Is there another way in 
>> which to make these types of program indicators work with the age-type 
>> attribute?
>> 
>> Thanks,
>> Nick
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> 
>> Post to : dhis2-users@lists.launchpad.net 
>> 
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> 
>> More help   : https://help.launchpad.net/ListHelp 
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> 
>> Post to : dhis2-users@lists.launchpad.net 
>> 
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> 
>> More help   : https://help.launchpad.net/ListHelp 
>> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> 
> Post to: dhis2-users@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-users 
> 
> More help  : https://help.launchpad.net/ListHelp 
> 

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


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Seleman Ally
 Hi Nayeem, this is very useful but the statement below was not very clear at 
least for me.  
"Later created a data element in program stage and assign age in year as a 
calculative value from program attribute 'age'."

Do you mind to elaborate a bit more, and which version  of DHIS2 are referring 
to? 
Thanks in advance
Regards
Sele 
On Tuesday, April 3, 2018, 4:42:08 AM GMT+3, Nayeem Al Mifthah 
 wrote:  
 
 Hi NickI have also notice the same problem. Later created a data element in 
program stage and assign age in year as a calculative value from program 
attribute 'age'.
It works! 

Regards,
Nayeem Al Mifthah
Consultant for HSS, HMIS, M, GIS and Surveillance

Kindly ignore typos.
On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  wrote:

Hi
I am trying to figure out the best method to use age-type attributes in program 
indicator calculations. As a simple example, let us say I want a program 
indicator which displays the age in years of a person. From what I can see, the 
age-type attribute stores its value as a date, according to the date of birth 
either selected or estimated based on what is entered in the years, weeks and 
months fields respectively during registration. If I want to use this date in a 
program indicator however it seems to not work correctly.
ie d2:yearsBetween(age, event_date) when used as an expressions as an example 
would not give me the correct age in years. Is there another way in which to 
make these types of program indicators work with the age-type attribute?
Thanks,Nick___
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

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


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Seleman Ally
 Hi Markus and the team, 
I think the issue is already created on JIRA since last year. May be we should 
push for it because this is stopping community from benefiting with this useful 
feature. The Jira link to the link is
https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22

Issue Navigator - DHIS 2 JIRA



| 
| 
|  | 
Issue Navigator - DHIS 2 JIRA


 |

 |

 |



Regards
SeleOn Tuesday, April 3, 2018, 9:30:31 AM GMT+3, Markus Bekken 
 wrote:  
 
 Nayeem, thanks for the workaround.
Nick, the proposed usage should have worked. Age should be treated as a normal 
date data type in the program indicators. Can you create a bug in jira?
Markus

3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah :
Hi NickI have also notice the same problem. Later created a data element in 
program stage and assign age in year as a calculative value from program 
attribute 'age'.
It works! 

Regards,
Nayeem Al Mifthah
Consultant for HSS, HMIS, M, GIS and Surveillance

Kindly ignore typos.
On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  wrote:

Hi
I am trying to figure out the best method to use age-type attributes in program 
indicator calculations. As a simple example, let us say I want a program 
indicator which displays the age in years of a person. From what I can see, the 
age-type attribute stores its value as a date, according to the date of birth 
either selected or estimated based on what is entered in the years, weeks and 
months fields respectively during registration. If I want to use this date in a 
program indicator however it seems to not work correctly.
ie d2:yearsBetween(age, event_date) when used as an expressions as an example 
would not give me the correct age in years. Is there another way in which to 
make these types of program indicators work with the age-type attribute?
Thanks,Nick___
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

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


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


Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-03 Thread Markus Bekken
Nayeem, thanks for the workaround.

Nick, the proposed usage should have worked. Age should be treated as a normal 
date data type in the program indicators. Can you create a bug in jira?

Markus

> 3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah :
> 
> Hi Nick
> I have also notice the same problem. Later created a data element in program 
> stage and assign age in year as a calculative value from program attribute 
> 'age'.
> 
> It works! 
> 
> Regards,
> Nayeem Al Mifthah
> Consultant for HSS, HMIS, M, GIS and Surveillance
> 
> Kindly ignore typos.
> 
> On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  > wrote:
> Hi
> 
> I am trying to figure out the best method to use age-type attributes in 
> program indicator calculations. As a simple example, let us say I want a 
> program indicator which displays the age in years of a person. From what I 
> can see, the age-type attribute stores its value as a date, according to the 
> date of birth either selected or estimated based on what is entered in the 
> years, weeks and months fields respectively during registration. If I want to 
> use this date in a program indicator however it seems to not work correctly.
> 
> ie d2:yearsBetween(age, event_date) when used as an expressions as an example 
> would not give me the correct age in years. Is there another way in which to 
> make these types of program indicators work with the age-type attribute?
> 
> Thanks,
> Nick
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> 
> Post to : dhis2-users@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-users 
> 
> More help   : https://help.launchpad.net/ListHelp 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp

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