Automatically copy data from current period to new period

Hello,

We want to achieve the following in DHIS2: At Mid night of period end we want to copy data from the current period to new period automatically without any user intervention

As an example, For OrgUnit Z and Dataset X, frequency is “Yearly” which have two Data Elements A and B.

Current
period is 2013. And the values of A and B for 2013 is 5 and 7 for Orgunit Z. At midnight of 31st Dec 2013, we want the data element of A and B values (i.e. 5 and 7) will be copied to next period 2014.

So now when the data entry staff open the dataset X for period 2014 it will show value of 5 and 7 for A and B.

Please let us know the best possible option to achieve this in DHIS2.

Thanks,

Barnali

Hello Barnali,

thanks for your request. Currently we have no plans to support such a requirement. However, this should not be hard to accomplish through an external script. You could use the web api to pull out the values you need, save it, change the year of the data value set and push the values back in using curl or other http clients. Since it only happens once a year you may consider triggering the script manually.

Documentation here:

http://dhis2.org/doc/snapshot/en/user/html/ch25.html

regards,

Lars

···

On Sat, Apr 20, 2013 at 11:44 AM, Barnali Bhaduri barnali760@yahoo.co.in wrote:

Hello,

We want to achieve the following in DHIS2: At Mid night of period end we want to copy data from the current period to new period automatically without any user intervention

As an example, For OrgUnit Z and Dataset X, frequency is “Yearly” which have two Data Elements A and B.

Current period is 2013. And the values of A and B for 2013 is 5 and 7 for Orgunit Z. At midnight of 31st Dec 2013, we want the data element of A and B values (i.e. 5 and 7) will be copied to next period 2014.

So now when the data entry staff open the dataset X for period 2014 it will show value of 5 and 7 for A and B.

Please let us know the best possible option to achieve this in DHIS2.

Thanks,

Barnali


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

Agree with Lars, that this is something better accomplished with a script. I have outlined a similar approach here for projection of population data from year to year (in your case, there is no projection). The example is not totally complete, but there are other examples in this presentation and the main documentation about how to interface a scripting language like R with DHIS2. This would also be quite simple to achieve with an SQL script, which could be executed at the appropriate time periods directly on the database.

Regards,

Jason

···

On Sat, Apr 20, 2013 at 6:29 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hello Barnali,

thanks for your request. Currently we have no plans to support such a requirement. However, this should not be hard to accomplish through an external script. You could use the web api to pull out the values you need, save it, change the year of the data value set and push the values back in using curl or other http clients. Since it only happens once a year you may consider triggering the script manually.

Documentation here:

http://dhis2.org/doc/snapshot/en/user/html/ch25.html

regards,

Lars


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

On Sat, Apr 20, 2013 at 11:44 AM, Barnali Bhaduri barnali760@yahoo.co.in wrote:

Hello,

We want to achieve the following in DHIS2: At Mid night of period end we want to copy data from the current period to new period automatically without any user intervention

As an example, For OrgUnit Z and Dataset X, frequency is “Yearly” which have two Data Elements A and B.

Current period is 2013. And the values of A and B for 2013 is 5 and 7 for Orgunit Z. At midnight of 31st Dec 2013, we want the data element of A and B values (i.e. 5 and 7) will be copied to next period 2014.

So now when the data entry staff open the dataset X for period 2014 it will show value of 5 and 7 for A and B.

Please let us know the best possible option to achieve this in DHIS2.

Thanks,

Barnali


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

Thank you very much Lars.It will be very helpful for us.

Regards

Barnali

···

From: Lars Helge Øverland larshelge@gmail.com
To: Barnali Bhaduri barnali760@yahoo.co.in
Cc: "dhis2-devs@lists.launchpad.net" dhis2-devs@lists.launchpad.net
Sent: Saturday, 20 April 2013 8:44 AM
Subject: Re: [Dhis2-devs] Automatically copy data from current period to new period

Hello Barnali,

thanks for your request. Currently we have no plans to support such a requirement. However, this should not be hard to accomplish through an external script. You could use the web api to pull out the values you need, save it, change the year of the data value set and push the values back in using curl or other http clients. Since it only happens once a year you may consider triggering the script manually.

Documentation here:

http://dhis2.org/doc/snapshot/en/user/html/ch25.html

regards,

Lars

On Sat, Apr 20, 2013 at 11:44 AM, Barnali Bhaduri barnali760@yahoo.co.in wrote:

Hello,

We want to achieve the following in DHIS2: At Mid night of period end we want to copy data from the current period to new period automatically without any user intervention

As an example, For OrgUnit Z and Dataset X, frequency is “Yearly” which have two Data Elements A and B.

Current
period is 2013. And the values of A and B for 2013 is 5 and 7 for Orgunit Z. At midnight of 31st Dec 2013, we want the data element of A and B values (i.e. 5 and 7) will be copied to next period 2014.

So now when the data entry staff open the dataset X for period 2014 it will show value of 5 and 7 for A and B.

Please let us know the best possible option to achieve this in DHIS2.

Thanks,

Barnali


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