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 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.
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.
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.
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 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.
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.
I copied the data from the 2022 data entry form. Then I pasted it to the 2023 data entry form. But the pasted data was not automatically saved as it was when entered from the keyboard. Please guide me, I sincerely thank you!