Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Multiexcerpt include macro
macro_uuid9078ada9-7c16-4fe4-af1c-4ddd91c1ebe9
nameSoftware Plan - Advanced
templateDataeJyLjgUAARUAuQ==
page[Internal] CommCare Public Management
addpanelfalse

...

Table of Contents

Table of Contents
minLevel1
maxLevel2
outlinefalse
styledefault
typelist
printabletrue

About the

...

Data Dictionary

The Data Dictionary provides a method for documenting case properties by grouping them and adding descriptions and labels. By doing so, it is easier to visualize and contextualize the property within the context of the case.

...

The screenshot below displays an example of the case data page. In this example, the data dictionary was used to configure the way the case properties are presented. We can see different data sets represented in different tables, with the black "i" icon, that provides additional information about the case property when hovered over.

...

All properties in the data dictionary show up on CommCareHQ's Case Data page. The "---" indicate that no value has been set. Blank means the property has been set to an empty string ("") - often when it's been cleared out deliberately by a user.

...

To edit the case data page through the data dictionary, navigate to Data Dictionary located under Data tab in CommCareHQ. Once the relevant dictionary is selected, you will see multiple options per case property, as displayed in the screenshot below.

...

3. Import the file: Select the file and select the "upload data dictionary" option. After the import is completed, CommCare will display a message about the import. 

...

  • If an invalid case property name or case type name is included in the import spreadsheet, appropriate error messages will be displayed until all issues are resolved. You can refer to the screenshot below for an example.

4. Check the updated definitions: On the left menu, click the Data Dictionary option to view the updated definitions.

...

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#EAE6FF

There are certain criterias to the name of case-types and case properties,

  • In Data Dictionary, CommCare doesn't allow special characters in the names of case-types and their case-properties.  It can only start with a letter, and only contain letters, numbers, hyphens, and underscores. 

  • In case of invalid names of case-types and case-properties, CommCare will show an error :

    b8da86df-bdb1-4bb2-9473-ce3ec18057bc.png

     

    25a30398-5ee8-44ab-b104-513a417656a2.png

Deprecating Case Types and Case Properties using Data Dictionary

Expand

Multiexcerpt include macro
macro_uuid9078ada9-7c16-4fe4-af1c-4ddd91c1ebe9
nameSoftware Plan - Advanced
templateDataeJyLjgUAARUAuQ==
page[Internal] CommCare Public Management
addpanelfalse

About the Case Type and Case Property Deprecation

You can deprecate case types or case properties using the Data Dictionary . This is useful for when you don't want to delete historical case types or case properties but you wish to hide them. A deprecated case will no longer be selectable as a filter in the reporting filtering menu, and will not be a case type filter option for case exports/imports. Furthermore, a deprecated case type will not be available as a case type filter for functionalities under the EDIT DATA sub menu. Deprecated case properties will no longer be available in the data export unless if you select to view them. These options can become useful when an application case structure has grown to a point where it has become difficult to manage. 

Deprecating Case Types

You can use the Data Dictionary to mark a case type as deprecated. It is possible to publish new releases and submit forms with an application using deprecated case types. However, it's recommended to transition to non-deprecated case types for better compatibility and performance in the long run.

Showing Deprecated Case Types

Deprecated case types are not shown by default when loading the Data Dictionary. You can show deprecated case types by clicking on the “Show Deprecated Case Types” button.

show-deprecated-filter.png

Deprecating a Case Type

You can deprecate a case type by following these steps:

  • Click on the "Data" menu item and then select "Data Dictionary" from the left pane 

  • Then click on the case type to be deprecated in list of available case types.

deprecate-case-type.png
  • When you select the deprecate option, you will be informed of how many modules use this case type and the impact of the deprecation.

  •  Click on the confirm button to deprecate the case type, and it will be marked as deprecated, as shown in the below example. 

deprecated-case-types.png

Restoring a Case Type

  • To restore a case type once it has been deprecated, select the case type from the case type list in the Data dictionary

  • Then click  on the "Restore Case Type" button 

restore-case-type.png

The case type will be restored and will no longer be tagged as deprecated.

The Impact of deprecating a Case Type

Below is a list of the impact that deprecating a case type has:

  • The reports case type filter dropdown option will not include deprecated case types as available options.

  • It will not be possible to create a new case data export using a deprecated case type. Existing exports using deprecated case types will not be affected, but a deprecated tag will appear next to the export.

  • A new automatic rule cannot be created using a deprecated case type. Existing rules using deprecated case types will not be affected, but a deprecated tag will appear next to them.

  • A warning banner will be shown when building a new release on an application that uses one or more deprecated case types. The warning will not prevent a user from making a new build on the application.

  • A warning banner will be shown on the case details page for a case that has a deprecated case type. 

Deprecating/un-deprecating Case Properties

You may deprecate case properties or case group properties by selecting the deprecate icon next to each of the definitions for the property.

deprecate-case-prop.png

You can view deprecated properties by clicking the "Show Deprecated" button. 

show-deprecated-case-props.png

Once the button has been clicked, the deprecated properties will be displayed. Upon activating the button, the option to restore the deprecated properties will be displayed.

restore-case-prop.pngImage Modified

Effects of Deprecating Case Properties

  • Deprecated case properties will not be displayed in a new Case Data Export unless you select the option to see deprecated properties.

...