Data elements assignation

Hi dhis2 devs,

I have to assign many data elements to a data set, so I would like to automatically do it.

Is there any possibility to do it, like a csv importation?

Thank you in advance.

Best

Diao

···

**DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District Health Information Software )

Projet de Renforcement du Système d’Information Sanitaire en Guinée

Phone : 623909413 | 662256106

Skype : diawwdiallo

www.jsi.com

Hi Diao,

Are you able to use the web api? The section in the developer’s manual ‘Metadata create, read, update, delete, validate’ should be helpful.

Regards,

Michael

···

On 27 January 2018 at 15:30, Mamadou Diao Diallo diao_diallo@gn.jsi.com wrote:

Hi dhis2 devs,

I have to assign many data elements to a data set, so I would like to automatically do it.

Is there any possibility to do it, like a csv importation?

Thank you in advance.

Best

Diao


**DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District Health Information Software )

Projet de Renforcement du Système d’Information Sanitaire en Guinée

Phone : 623909413 | 662256106

Skype : diawwdiallo

www.jsi.com


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

Hi Mamadou,

I agree with Michael that the most flexible way is to use the web API and create a JSON structure (e.g. with MS Excel), in particular

https://docs.dhis2.org/master/en/developer/html/webapi_metadata_crud.html#webapi_adding_removing_objects_collections

However, if you find this too cumbersome, you could do something like this:

  1. Give your dataelements a unique PREFIX to enable you to filter them out

  2. Import them as CSV

  3. Create a group for them

  4. Go to the group editor, filter and select:

https://play.dhis2.org/2.28/dhis-web-maintenance/#/group-editor

  1. Create your dataset and filter by the group

The problem with this method is the PREFIX which you may not want to keep…

Knut

···

On Sun, Jan 28, 2018 at 1:45 AM, Michael Mwebaze michael.mwebaze@gmail.com wrote:

Hi Diao,

Are you able to use the web api? The section in the developer’s manual ‘Metadata create, read, update, delete, validate’ should be helpful.

Regards,

Michael


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

On 27 January 2018 at 15:30, Mamadou Diao Diallo diao_diallo@gn.jsi.com wrote:

Hi dhis2 devs,

I have to assign many data elements to a data set, so I would like to automatically do it.

Is there any possibility to do it, like a csv importation?

Thank you in advance.

Best

Diao


**DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District Health Information Software )

Projet de Renforcement du Système d’Information Sanitaire en Guinée

Phone : 623909413 | 662256106

Skype : diawwdiallo

www.jsi.com


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

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Oops, you cannot select by group anymore. However, you can skip step 3) and 4) and rather do the filtering of data elements directly in 5)

···

On Mon, Jan 29, 2018 at 12:43 PM, Knut Staring knutst@gmail.com wrote:

Hi Mamadou,

I agree with Michael that the most flexible way is to use the web API and create a JSON structure (e.g. with MS Excel), in particular

https://docs.dhis2.org/master/en/developer/html/webapi_metadata_crud.html#webapi_adding_removing_objects_collections

However, if you find this too cumbersome, you could do something like this:

  1. Give your dataelements a unique PREFIX to enable you to filter them out
  1. Import them as CSV
  1. Create a group for them
  1. Go to the group editor, filter and select:

https://play.dhis2.org/2.28/dhis-web-maintenance/#/group-editor

  1. Create your dataset and filter by the group

The problem with this method is the PREFIX which you may not want to keep…

Knut

On Sun, Jan 28, 2018 at 1:45 AM, Michael Mwebaze michael.mwebaze@gmail.com wrote:

Hi Diao,

Are you able to use the web api? The section in the developer’s manual ‘Metadata create, read, update, delete, validate’ should be helpful.

Regards,

Michael


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

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

On 27 January 2018 at 15:30, Mamadou Diao Diallo diao_diallo@gn.jsi.com wrote:

Hi dhis2 devs,

I have to assign many data elements to a data set, so I would like to automatically do it.

Is there any possibility to do it, like a csv importation?

Thank you in advance.

Best

Diao


**DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District Health Information Software )

Projet de Renforcement du Système d’Information Sanitaire en Guinée

Phone : 623909413 | 662256106

Skype : diawwdiallo

www.jsi.com


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

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

Many thanks, will try it.

Diao

···

On Mon, Jan 29, 2018 at 11:45 AM, Knut Staring knutst@gmail.com wrote:

Oops, you cannot select by group anymore. However, you can skip step 3) and 4) and rather do the filtering of data elements directly in 5)

On Mon, Jan 29, 2018 at 12:43 PM, Knut Staring knutst@gmail.com wrote:

Hi Mamadou,

I agree with Michael that the most flexible way is to use the web API and create a JSON structure (e.g. with MS Excel), in particular

https://docs.dhis2.org/master/en/developer/html/webapi_metadata_crud.html#webapi_adding_removing_objects_collections

However, if you find this too cumbersome, you could do something like this:

  1. Give your dataelements a unique PREFIX to enable you to filter them out
  1. Import them as CSV
  1. Create a group for them
  1. Go to the group editor, filter and select:

https://play.dhis2.org/2.28/dhis-web-maintenance/#/group-editor

  1. Create your dataset and filter by the group

The problem with this method is the PREFIX which you may not want to keep…

Knut


Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

On Sun, Jan 28, 2018 at 1:45 AM, Michael Mwebaze michael.mwebaze@gmail.com wrote:

Hi Diao,

Are you able to use the web api? The section in the developer’s manual ‘Metadata create, read, update, delete, validate’ should be helpful.

Regards,

Michael


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

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

On 27 January 2018 at 15:30, Mamadou Diao Diallo diao_diallo@gn.jsi.com wrote:

Hi dhis2 devs,

I have to assign many data elements to a data set, so I would like to automatically do it.

Is there any possibility to do it, like a csv importation?

Thank you in advance.

Best

Diao


**DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District Health Information Software )

Projet de Renforcement du Système d’Information Sanitaire en Guinée

Phone : 623909413 | 662256106

Skype : diawwdiallo

www.jsi.com


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

**DIALLO Mamadou Diao Conseiller IT, Specialiste de DHIS 2 **( District Health Information Software )

Projet de Renforcement du Système d’Information Sanitaire en Guinée

Phone : 623909413 | 662256106

Skype : diawwdiallo

www.jsi.com