Constants are static values which can be made available to users for use in data elements and indicators. Some indicators, such as “Couple year protection rate” depend on constants which usually do not change over time.
In the Maintenance app, you manage the following constant objects:
Create, edit, clone, share, delete, show details and translate
Open the Maintenance app and click Other > Constant .
Click the add button.
In the Name field, type the name of the constant.
(Optional) In the Short name field, type an abbreviated name of the constant.
(Optional) In the Code field, assign a code.
In the Description field, type a brief, informative description of the constant.
In the Value field, define the constant’s value.
Click Save .
The constant is now available for use.
Cloning a data element or other objects can save time when you create many similar objects.
Open the Maintenance app and find the type of metadata object you want to clone.
In the object list, click the options menu and select Clone .
Modify the options you want.
Click Save .
You can assign different sharing settings to metadata objects, for example organisation units and tracked entity attributes. These sharing settings control which users and users groups that can view or edit a metadata object.
Some metadata objects also allows you to change the sharing setting of data entry for the object. These additional settings control who can view or enter data in form fields using the metadata.
The default setting is that everyone ( Public access ) can find, view and edit metadata objects.
Open the Maintenance app and find the type of metadata object you want to modify.
In the object list, click the context menu and select Sharing settings .
(Optional) Add users or user groups: search for a user or a user group and select it. The user or user group is added to the list.
Change sharing settings for the access groups you want to modify.
Can edit and view : The access group can view and edit the object.
Can view only : The access group can view the object.
No access (only applicable to Public access ): The public won’t have access to the object.
Change data sharing settings for the access groups you want to modify.
Can capture data : The access group can view and capture data for the object.
Can view data : The access group can view data for the object.
No access : The access group won’t have access to data for the object.
Click Close .
You can only delete a data element and other data element objects if no data is associated to the data element itself.
Any data set that you delete from the system is irrevocably lost. All data entry forms, and section forms which may have been developed will also be removed. Make sure that you have made a backup of your database before deleting any data set in case you need to restore it at some point in time.
Open the Maintenance app and find the type of metadata object you want to delete.
In the object list, click the options menu and select Delete .
Click Confirm .
Open the Maintenance app and find the type of metadata object you want to view.
In the object list, click the options menu and select Show details .
DHIS2 provides functionality for translations of database content, for example data elements, data element groups, indicators, indicator groups or organisation units. You can translate these elements to any number of locales. A locale represents a specific geographical, political, or cultural region.
To activate a translation, open the System Settings app, click > > Appearance and select a language.
Open the Maintenance app and find the type of metadata object you want to translate.
In the object list, click the options menu and select Translate .
If you want to translate an organisation unit level, click directly on the Translate icon next to each list item.
Select a locale.
Type a Name , Short name and Description .
Click Save .