10.9. Manage option sets

10.9.1. About option sets

Option sets provide a pre-defined drop-down (enumerated) list for use in DHIS2. You can define any kind of options.

Example 10.11. 

An option set called "Delivery type" would have the options: "Normal", "Breach", "Caesarian" and "Assisted".


Table 10.16. Option set objects in the Maintenance app

Object type

Available functions

Option set

Create, edit, clone, share, delete, show details and translate


10.9.2. Create an option set

[Important]Important

Option sets must have a code as well as a name. You can change the names but you can't change the codes. Both names and codes of all options must be unique, even across different option sets.

To create an option set:

  1. Click Apps > Maintenance > Option set.

  2. Click the add button.

  3. In the Primary details tab, define the option set:

    1. In the Name field, type the name of the constant.

    2. In the Code field, assign a code.

    3. Select a Value type.

    4. Click Save.

  4. For each option you need, perform the following tasks:

    1. Click the Options tab.

    2. Click the add button.

    3. Type a Name and a Code.

    4. Sort the options by name, code/value or manually.

    5. Click Save.

10.9.3. Edit metadata objects

  1. Open the Maintenance app and find the type of metadata object you want to edit.

  2. In the object list, click the options menu and select Edit.

  3. Modify the options you want.

  4. Click Save.

10.9.4. Clone metadata objects

  1. Open the Maintenance app and find the type of metadata object you want to clone.

  2. In the object list, click the options menu and select Clone.

  3. Modify the options you want.

  4. Click Save.

10.9.5. Change sharing settings for metadata objects

  1. Open the Maintenance app and find the type of metadata object you want to modify.

  2. In the object list, click the options menu and select Sharing settings.

  3. (Optional) Search for a user group and select it. The user group is added to the list.

  4. Change the settings for the user groups you want to modify.

    • Can view: Everyone in the user group can view the object

    • Can edit: Everyone in the user group can view and edit the object

    The default setting is that everyone (Public access) can view and edit objects.

  5. Click Close.

10.9.6. Delete metadata objects

  1. Open the Maintenance app and find the type of metadata object you want to delete.

  2. In the object list, click the options menu and select Delete.

  3. Click Confirm.

10.9.7. Display details of metadata objects

  1. Open the Maintenance app and find the type of metadata object you want to view.

  2. In the object list, click the options menu and select Show details.

10.9.8. Translate metadata objects

  1. Open the Maintenance app and find the type of metadata object you want to translate.

  2. In the object list, click the options menu and select Translate.

  3. Select a locale.

  4. Type a Name, Short name and Description.

  5. Click Save.