Re: [Dhis2-devs] Documentation links are down from dhis2.org

2018-10-10 Thread Em Le Hong
We can checkout and build the docs from Github.
https://github.com/dhis2/dhis2-docs

On Thu, Oct 11, 2018 at 10:44 AM Em Le Hong 
wrote:

> Hi all,
>
> Looks like all links from https://www.dhis2.org/documentation are down
> now.
> The link https://docs.dhis2.org/ is down also.
>
> Regards,
>
> On Tue, Oct 9, 2018 at 9:28 PM Sergio Valenzuela <
> sergio.valenzu...@ehas.org> wrote:
>
>> Hi Jason!
>>
>> These are the ones which are not working (at least for me):
>> [image: image.png]
>> i.e: User Manual
>>  Developer
>> Manual
>> 
>>
>> Thanks for your link. Those are working fine.
>>
>> Best regards!
>>
>>
>> *Sergio Valenzuela*
>> Fundación EHAS
>> Telemedicina para países en desarrollo -* www.ehas.org
>> *
>> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
>> Madrid - España
>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>
>>
>>
>>
>> El mar., 9 oct. 2018 a las 9:57, Jason Pickering (<
>> jason.p.picker...@gmail.com>) escribió:
>>
>>> Hi Sergio,
>>> Maybe its a bad link? Where is it?
>>>
>>> Try here https://docs.dhis2.org/
>>>
>>> These seem to be working.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Tue, Oct 9, 2018 at 9:36 AM Sergio Valenzuela <
>>> sergio.valenzu...@ehas.org> wrote:
>>>
 Dear all,

 I've been trying to download 2.31 documentation from dhis2.org during
 the past few days and the links are down.
 Could you please take a look?

 Thanks and best regards!


 *Sergio Valenzuela*
 Fundación EHAS
 Telemedicina para países en desarrollo -* www.ehas.org
 *
 E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
 Madrid - España
 Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62


 ___
 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

>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>> ___
>> 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
>>
>
>
> --
> *Em Le Hong*
> DHIS2 Implementation| *HISP Vietnam *
> em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
>
>
>
>
>
>

-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
___
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] Documentation links are down from dhis2.org

2018-10-10 Thread Em Le Hong
Hi all,

Looks like all links from https://www.dhis2.org/documentation are down now.
The link https://docs.dhis2.org/ is down also.

Regards,

On Tue, Oct 9, 2018 at 9:28 PM Sergio Valenzuela 
wrote:

> Hi Jason!
>
> These are the ones which are not working (at least for me):
> [image: image.png]
> i.e: User Manual
>  Developer
> Manual
> 
>
> Thanks for your link. Those are working fine.
>
> Best regards!
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> *
> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
>
> El mar., 9 oct. 2018 a las 9:57, Jason Pickering (<
> jason.p.picker...@gmail.com>) escribió:
>
>> Hi Sergio,
>> Maybe its a bad link? Where is it?
>>
>> Try here https://docs.dhis2.org/
>>
>> These seem to be working.
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Oct 9, 2018 at 9:36 AM Sergio Valenzuela <
>> sergio.valenzu...@ehas.org> wrote:
>>
>>> Dear all,
>>>
>>> I've been trying to download 2.31 documentation from dhis2.org during
>>> the past few days and the links are down.
>>> Could you please take a look?
>>>
>>> Thanks and best regards!
>>>
>>>
>>> *Sergio Valenzuela*
>>> Fundación EHAS
>>> Telemedicina para países en desarrollo -* www.ehas.org
>>> *
>>> E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040
>>> Madrid - España
>>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>>
>>>
>>> ___
>>> 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
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
> ___
> 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
>


-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
___
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] Edit Numerator/Edit Denominator of Indicators error

2018-10-10 Thread DHIS2 Support
Dear all,

When I attempt to edit numerator or denominator of indicators, data
elements fail to load and I get the following
error: java.lang.ArrayIndexOutOfBoundsException
in the log

Kindly assist. thanks

Dr David.
___
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] Create New User error: An exception occurred

2018-10-10 Thread DHIS2 Support
Dear all,

When I attempt to create a new user, I receive the error:

An exception occurred
Sorry! The system failed to execute the operation. Usually, no data is lost
and you can continue working by going back to the previous page.

The log contains this:

p.org.springframework.dao.DataIntegrityViolationException: could not
execute statement; SQL [n/a]; constraint [secret]; nested exception is
org.hibernate.exception.ConstraintViolationException: could not execute
statement
at
org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:241)

Caused by: org.hibernate.exception.ConstraintViolationException: could not
execute statement
at
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)
at
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)


Caused by: org.postgresql.util.PSQLException: ERROR: null value in column
"secret" violates not-null constraint
  Detail: Failing row contains (614731, ZszWxT3M8UX, null, 2018-10-10
19:17:47.078, 2018-10-10 19:17:47.487, 50, 50, xdfdgrtrthff001,
$2a$10$Ynj1r3231cJFy6QeNSUpNu8u0CiCFLFc6W3cIl3Qw8Qr6/FZrl8wa, f, null,
null, 2018-10-10 19:17:47.078, null, null, null, null, f, f, f, null, null).

Kindly assist with a solution, thanks.

Dr David
___
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] un-complete a data set by Web API

2018-10-10 Thread Nibras Rakib
Dear Carlos,

All you have to do is send a delete request where endpoint will be
completeDataSetRegistrations.
As I am using DHIS2 version 2.29, my endpoint is "/
dhis/api/29/completeDataSetRegistrations?ds=datasetid=201801=orgunitid
".

Here is the documentation -
https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html
.

Hope this will help.

Thanks & Regards,
Nibras Ar Rakib,
Programmer, MCHD, icddrb
email: nibrasarra...@gmail.com | nibras.ra...@icddrb.org

On Tue, Oct 9, 2018 at 8:51 PM Carlos Nyembwe  wrote:

> Hi All,
>
> I need to un-complete a dataset registration by Web API in our instance.
>
> Who did it before and can help me?
>
> Regards
>
> --
> *Carlos Nyembwe*
> *I'm just a Computer Scientist*
>
> *Skype: carloscnk1*
> *Cell: (+243)813166381*
> *Find me in: | Google Plus  | 
> **Linkedin
>  | Facebook
>  | Twitter
>  |*
> ___
> 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] Generating sequential numbers in program rule

2018-10-10 Thread Zubair Asghar Raja
Hi Terence,
There could be many reasons for that.
Have you tried implementing what Nick suggested? The only limitation is
that the TextPattern option is only available for TEAttribute and not to
DataElement.


Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Wed, Oct 10, 2018 at 2:48 PM Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Dear Zubair
>
> Thank you for your rapid response. I have attempted to do this without
> success. I think I am misunderstanding.
>
> 1) I created the program variable "auto-increment' as suggested
> 2) In this step - is this a new program rule? I created a program rule as
> follows: "d2:hasValue #UID", Assign "#auto-increment + 1" to field
> "auto-increment". I then set this as priority 2.
> 3) I created my UID program rule as with the following action:
> "d2:concatenate( V{enrollment_date}, '-', A{Closest Health Center},
> #{auto-increment})" assigned to the attribute for UID. This is set as
> priority 1.
>
> Unfortunately, this does not create the sequential number, but the
> concatenated sequence is showing in the UID Attribute.
>
> Do I have my priorities incorrect or have I done something else
> incorrectly?
>
> Kind regards,
> Terence
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
>
>
> On Wed, Oct 10, 2018 at 2:01 PM Zubair Asghar Raja 
> wrote:
>
>> Hi Terence,
>> Should be possible using CALCULATED_VALUE.
>> Program rule variable having source type as CALCULATED_VALUE will get its
>> value assigned by some other program rule. Try these steps
>> 1. create program rule variable of source type CALCULATED_VALUE // Let
>> say "auto-increment"
>> 2. create program rule with Program Rule Action as Assign Value and
>> select variable created in step 1 and assign it "#{auto-increment} + 1"
>> 3. Use it in your program rule where ever needed for example
>> v{current-date}-#{orgunit}-#{auto-increment}
>>
>> In order to use CALCULATED_CALUE make sure you are correctly setting rule
>> *priority*.
>>
>> Zubair Asghar
>> DHIS-2 Developer
>> University of Oslo
>> zub...@dhis2.org 
>> https://www.dhis2.org
>>
>>
>> On Wed, Oct 10, 2018 at 1:25 PM Terence Scott <
>> terence.sc...@rabiesalliance.org> wrote:
>>
>>> Dear All
>>>
>>> I am creating a program rule to develop a UID for the patient. I have
>>> currently created a program rule using d2:concatenate to bring various
>>> attributes and DEs together into the Unique ID (such as date and OrgUnit
>>> code). However, I would also like to include sequential numbering after
>>> this to ensure that more than 1 case can be registered on a single day.
>>>
>>> I have looked through all of the documentation and am unable to find
>>> anything along these lines. Is it possible?
>>>
>>> Example:
>>> 2018-10-10-OrgUnit code-1;
>>> 2018-10-10-OrgUnit code-2;
>>> 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
>>> numbers generated).
>>>
>>> I have also looked at Program Rule variables and am unsure as to what
>>> the "Calculated value" source type is, as in the documentation it is listed
>>> as "TBA" with no further information.
>>>
>>> I would appreciate any help or advise.
>>>
>>> Kind regards,
>>> Terence
>>>
>>>
>>>
>>>
>>> Terence Scott
>>>
>>> Global Alliance for Rabies Control (GARC)
>>> Pan-African Rabies Control Network (PARACON) Steering Committee
>>> terence.sc...@rabiesalliance.org
>>> https://paracon.rabiesalliance.org
>>> Skype: tpscott1987
>>>
>>> ___
>>> 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] Generating sequential numbers in program rule

2018-10-10 Thread Terence Scott
Hi Zubair

Unfortunately, I am running 2.28 at the moment and therefore cannot do what
Nick suggested.

I will have to look into upgrading in any case, so I think that may be the
best option for now.

Thank you again for both of your help - I really appreciate it!

Kind regards,
Terence

Terence Scott

Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.sc...@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987



On Wed, Oct 10, 2018 at 3:06 PM Zubair Asghar Raja  wrote:

> Hi Terence,
> There could be many reasons for that.
> Have you tried implementing what Nick suggested? The only limitation is
> that the TextPattern option is only available for TEAttribute and not to
> DataElement.
>
>
> Zubair Asghar
> DHIS-2 Developer
> University of Oslo
> zub...@dhis2.org 
> https://www.dhis2.org
>
>
> On Wed, Oct 10, 2018 at 2:48 PM Terence Scott <
> terence.sc...@rabiesalliance.org> wrote:
>
>> Dear Zubair
>>
>> Thank you for your rapid response. I have attempted to do this without
>> success. I think I am misunderstanding.
>>
>> 1) I created the program variable "auto-increment' as suggested
>> 2) In this step - is this a new program rule? I created a program rule as
>> follows: "d2:hasValue #UID", Assign "#auto-increment + 1" to field
>> "auto-increment". I then set this as priority 2.
>> 3) I created my UID program rule as with the following action:
>> "d2:concatenate( V{enrollment_date}, '-', A{Closest Health Center},
>> #{auto-increment})" assigned to the attribute for UID. This is set as
>> priority 1.
>>
>> Unfortunately, this does not create the sequential number, but the
>> concatenated sequence is showing in the UID Attribute.
>>
>> Do I have my priorities incorrect or have I done something else
>> incorrectly?
>>
>> Kind regards,
>> Terence
>>
>> Terence Scott
>>
>> Global Alliance for Rabies Control (GARC)
>> Pan-African Rabies Control Network (PARACON) Steering Committee
>> terence.sc...@rabiesalliance.org
>> https://paracon.rabiesalliance.org
>> Skype: tpscott1987
>>
>>
>>
>> On Wed, Oct 10, 2018 at 2:01 PM Zubair Asghar Raja 
>> wrote:
>>
>>> Hi Terence,
>>> Should be possible using CALCULATED_VALUE.
>>> Program rule variable having source type as CALCULATED_VALUE will get
>>> its value assigned by some other program rule. Try these steps
>>> 1. create program rule variable of source type CALCULATED_VALUE // Let
>>> say "auto-increment"
>>> 2. create program rule with Program Rule Action as Assign Value and
>>> select variable created in step 1 and assign it "#{auto-increment} + 1"
>>> 3. Use it in your program rule where ever needed for example
>>> v{current-date}-#{orgunit}-#{auto-increment}
>>>
>>> In order to use CALCULATED_CALUE make sure you are correctly setting
>>> rule *priority*.
>>>
>>> Zubair Asghar
>>> DHIS-2 Developer
>>> University of Oslo
>>> zub...@dhis2.org 
>>> https://www.dhis2.org
>>>
>>>
>>> On Wed, Oct 10, 2018 at 1:25 PM Terence Scott <
>>> terence.sc...@rabiesalliance.org> wrote:
>>>
 Dear All

 I am creating a program rule to develop a UID for the patient. I have
 currently created a program rule using d2:concatenate to bring various
 attributes and DEs together into the Unique ID (such as date and OrgUnit
 code). However, I would also like to include sequential numbering after
 this to ensure that more than 1 case can be registered on a single day.

 I have looked through all of the documentation and am unable to find
 anything along these lines. Is it possible?

 Example:
 2018-10-10-OrgUnit code-1;
 2018-10-10-OrgUnit code-2;
 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
 numbers generated).

 I have also looked at Program Rule variables and am unsure as to what
 the "Calculated value" source type is, as in the documentation it is listed
 as "TBA" with no further information.

 I would appreciate any help or advise.

 Kind regards,
 Terence




 Terence Scott

 Global Alliance for Rabies Control (GARC)
 Pan-African Rabies Control Network (PARACON) Steering Committee
 terence.sc...@rabiesalliance.org
 https://paracon.rabiesalliance.org
 Skype: tpscott1987

 ___
 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] Generating sequential numbers in program rule

2018-10-10 Thread Terence Scott
Dear Zubair

Thank you for your rapid response. I have attempted to do this without
success. I think I am misunderstanding.

1) I created the program variable "auto-increment' as suggested
2) In this step - is this a new program rule? I created a program rule as
follows: "d2:hasValue #UID", Assign "#auto-increment + 1" to field
"auto-increment". I then set this as priority 2.
3) I created my UID program rule as with the following action:
"d2:concatenate( V{enrollment_date}, '-', A{Closest Health Center},
#{auto-increment})" assigned to the attribute for UID. This is set as
priority 1.

Unfortunately, this does not create the sequential number, but the
concatenated sequence is showing in the UID Attribute.

Do I have my priorities incorrect or have I done something else incorrectly?

Kind regards,
Terence

Terence Scott

Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.sc...@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987



On Wed, Oct 10, 2018 at 2:01 PM Zubair Asghar Raja  wrote:

> Hi Terence,
> Should be possible using CALCULATED_VALUE.
> Program rule variable having source type as CALCULATED_VALUE will get its
> value assigned by some other program rule. Try these steps
> 1. create program rule variable of source type CALCULATED_VALUE // Let say
> "auto-increment"
> 2. create program rule with Program Rule Action as Assign Value and select
> variable created in step 1 and assign it "#{auto-increment} + 1"
> 3. Use it in your program rule where ever needed for example
> v{current-date}-#{orgunit}-#{auto-increment}
>
> In order to use CALCULATED_CALUE make sure you are correctly setting rule
> *priority*.
>
> Zubair Asghar
> DHIS-2 Developer
> University of Oslo
> zub...@dhis2.org 
> https://www.dhis2.org
>
>
> On Wed, Oct 10, 2018 at 1:25 PM Terence Scott <
> terence.sc...@rabiesalliance.org> wrote:
>
>> Dear All
>>
>> I am creating a program rule to develop a UID for the patient. I have
>> currently created a program rule using d2:concatenate to bring various
>> attributes and DEs together into the Unique ID (such as date and OrgUnit
>> code). However, I would also like to include sequential numbering after
>> this to ensure that more than 1 case can be registered on a single day.
>>
>> I have looked through all of the documentation and am unable to find
>> anything along these lines. Is it possible?
>>
>> Example:
>> 2018-10-10-OrgUnit code-1;
>> 2018-10-10-OrgUnit code-2;
>> 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
>> numbers generated).
>>
>> I have also looked at Program Rule variables and am unsure as to what the
>> "Calculated value" source type is, as in the documentation it is listed as
>> "TBA" with no further information.
>>
>> I would appreciate any help or advise.
>>
>> Kind regards,
>> Terence
>>
>>
>>
>>
>> Terence Scott
>>
>> Global Alliance for Rabies Control (GARC)
>> Pan-African Rabies Control Network (PARACON) Steering Committee
>> terence.sc...@rabiesalliance.org
>> https://paracon.rabiesalliance.org
>> Skype: tpscott1987
>>
>> ___
>> 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] [Dhis2-users] Generating sequential numbers in program rule

2018-10-10 Thread Shurajit Dutta
Hi Terence

Please have a look at textpattern to generate UID's:

https://docs.dhis2.org/2.29/en/user/html/working-with-textpattern.html

This is available as of 2.29 and believe it should be able to generate what
you need.

Nick

On Wed, Oct 10, 2018 at 4:55 PM Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Dear All
>
> I am creating a program rule to develop a UID for the patient. I have
> currently created a program rule using d2:concatenate to bring various
> attributes and DEs together into the Unique ID (such as date and OrgUnit
> code). However, I would also like to include sequential numbering after
> this to ensure that more than 1 case can be registered on a single day.
>
> I have looked through all of the documentation and am unable to find
> anything along these lines. Is it possible?
>
> Example:
> 2018-10-10-OrgUnit code-1;
> 2018-10-10-OrgUnit code-2;
> 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
> numbers generated).
>
> I have also looked at Program Rule variables and am unsure as to what the
> "Calculated value" source type is, as in the documentation it is listed as
> "TBA" with no further information.
>
> I would appreciate any help or advise.
>
> Kind regards,
> Terence
>
>
>
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
> ___
> 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
>


-- 
Shurajit Dutta (MPH, MHI)
Health Information Systems Adviser
___
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] Generating sequential numbers in program rule

2018-10-10 Thread Zubair Asghar Raja
Hi Terence,
Should be possible using CALCULATED_VALUE.
Program rule variable having source type as CALCULATED_VALUE will get its
value assigned by some other program rule. Try these steps
1. create program rule variable of source type CALCULATED_VALUE // Let say
"auto-increment"
2. create program rule with Program Rule Action as Assign Value and select
variable created in step 1 and assign it "#{auto-increment} + 1"
3. Use it in your program rule where ever needed for example
v{current-date}-#{orgunit}-#{auto-increment}

In order to use CALCULATED_CALUE make sure you are correctly setting rule
*priority*.

Zubair Asghar
DHIS-2 Developer
University of Oslo
zub...@dhis2.org 
https://www.dhis2.org


On Wed, Oct 10, 2018 at 1:25 PM Terence Scott <
terence.sc...@rabiesalliance.org> wrote:

> Dear All
>
> I am creating a program rule to develop a UID for the patient. I have
> currently created a program rule using d2:concatenate to bring various
> attributes and DEs together into the Unique ID (such as date and OrgUnit
> code). However, I would also like to include sequential numbering after
> this to ensure that more than 1 case can be registered on a single day.
>
> I have looked through all of the documentation and am unable to find
> anything along these lines. Is it possible?
>
> Example:
> 2018-10-10-OrgUnit code-1;
> 2018-10-10-OrgUnit code-2;
> 2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
> numbers generated).
>
> I have also looked at Program Rule variables and am unsure as to what the
> "Calculated value" source type is, as in the documentation it is listed as
> "TBA" with no further information.
>
> I would appreciate any help or advise.
>
> Kind regards,
> Terence
>
>
>
>
> Terence Scott
>
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org
> https://paracon.rabiesalliance.org
> Skype: tpscott1987
>
> ___
> 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] Generating sequential numbers in program rule

2018-10-10 Thread Terence Scott
Dear All

I am creating a program rule to develop a UID for the patient. I have
currently created a program rule using d2:concatenate to bring various
attributes and DEs together into the Unique ID (such as date and OrgUnit
code). However, I would also like to include sequential numbering after
this to ensure that more than 1 case can be registered on a single day.

I have looked through all of the documentation and am unable to find
anything along these lines. Is it possible?

Example:
2018-10-10-OrgUnit code-1;
2018-10-10-OrgUnit code-2;
2018-10-10-OrgUnit code-3; etc.  (where 1,2 and 3 are the sequential
numbers generated).

I have also looked at Program Rule variables and am unsure as to what the
"Calculated value" source type is, as in the documentation it is listed as
"TBA" with no further information.

I would appreciate any help or advise.

Kind regards,
Terence




Terence Scott

Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.sc...@rabiesalliance.org
https://paracon.rabiesalliance.org
Skype: tpscott1987
___
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] Problem creating a data export in 2.30

2018-10-10 Thread Elmarie Claasen
Hi all,



We having a problem in creating a data export in 2.30 instance on local
instance. The file generated is empty. There is no error in the browser
console or in the log file in fact no entry in the log file at the time
when the export is generated.



The version used

Version:

2.30

Build revision:

ade885d

Build date:

2018-10-08 03:06



The Play demo does not create the same problem when data is exported for
July there are data in the export file but when exported for Sep for all or
any datasets the export also comes up empty.



Regards,



*Elmarie Claasen*

[image: Hisp logo]

Project Manager

Health Information Systems Program

Tel:  041-367 1027

Cell: 082 374 2209

E-mail: elma...@hisp.org

Skype:  elmarie.claasen52

-- 


*This message and any attachments are subject to a disclaimer published

at http://www.hisp.org/policies.html#comms_disclaimer 
. 
Please read the 
disclaimer before opening any attachment or taking any other
action in 
terms of this electronic transmission.  If you cannot access the

disclaimer, kindly send an email to disclai...@hisp.org 
 and a copy will be provided to you. By

replying to this e-mail or opening any attachment you agree to be bound by 
the
provisions of the disclaimer.*
___
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] TypeError: Cannot read property 'match' of undefined

2018-10-10 Thread Uddin Fatema
Dear All,

My tracker entity instance list is not coming in tracker capture module for
a specific facility but rest is working fine . It shows error like;

TypeError: Cannot read property 'match' of undefined
at services.js:1325n
at Object.r [as forEach] (angular.js:323)
at services.js:1302
at angular.js:13248
at n.$eval (angular.js:14466)
at n.$digest (angular.js:14282)
at n.$apply (angular.js:14571)
at dhis2.storage.IndexedDBAdapter. (services.js:1259)
at fire (jquery.js:3317)
at Object.fireWith [as resolveWith] (jquery.js:3447)

Also,  it is showing error in " GET
https://communitydhis.mohfw.gov.bd/nationalcc/api/28/trackedEntityInstances/query.json?ou=dNLjKwsVjod=DESCENDANTS=qzIEXMgPh1E=50=1=true
"

I have run it through postman. the value is not coming. It is showing 504
gateway fail but if i change DESCENDANTS to SELECTED it is working fine.

Can anyone please help me on it.

Thank you in advance.
Regards,
*Fatema Uddin*
Deputy Team Leader
Support to the National HMIS
MIS, Directorate General of Health Services
Ministry of Health and Family Welfare

T +880-2- 58816459 <+880%202-58816459>, 58816412 ext 118
F +88 02 58813 875
M+880 1772999745
E fatema...@gmail.com
S uddin_fatema
L *https://www.linkedin.com/in/fatema-uddin-85128029/
*
TypeError: Cannot read property 'match' of undefined
at services.js:1325
at Object.r [as forEach] (angular.js:323)
at services.js:1302
at angular.js:13248
at n.$eval (angular.js:14466)
at n.$digest (angular.js:14282)
at n.$apply (angular.js:14571)
at dhis2.storage.IndexedDBAdapter. (services.js:1259)
at fire (jquery.js:3317)
at Object.fireWith [as resolveWith] (jquery.js:3447)
(anonymous) @ angular.js:11655
(anonymous) @ angular.js:8596
(anonymous) @ angular.js:13256
$eval @ angular.js:14466
$digest @ angular.js:14282
$apply @ angular.js:14571
(anonymous) @ services.js:1259
fire @ jquery.js:3317
fireWith @ jquery.js:3447
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:264
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
success (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
IndexedDB (async)
request.onsuccess @ dhis2-storage-idb-e5bdf19229.js:262
angular.js:9866 GET 
https://communitydhis.mohfw.gov.bd/nationalcc/api/28/trackedEntityInstances/query.json?ou=dNLjKwsVjod=DESCENDANTS=qzIEXMgPh1E=50=1=true
___
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