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

...

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.pngImage Added

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.pngImage Added
  • When you select the deprecate option, you will be informed of how many modules use this case type and the impact of the deprecation.

Image Added
  •  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.pngImage Added

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.pngImage Added

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.

Image AddedImage Added
  • 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.

Image Added
  • 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.

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

Image Added

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.pngImage Added

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

show-deprecated-case-props.pngImage Added

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 Added

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.

Image Added

Deleting 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

Overview

You can delete case types or case properties using the Data Dictionary. This is useful when a project space has many case type and case properties which were created in error but are actually not relevant to you. A deleted case type 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. 

Deleting Case Types using Data Dictionary

You can delete a case type in the Data Dictionary in following conditions:

  • There is no case data stored for the case type in the project space

  • There was case data stored for the case type but all of the case data of that case type is now archived 

Deleting a Case Type

To delete a case type from the Data Dictionary:

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

  • Navigate to the case type under Data Dictionary and select the case type you want to delete. 

  • At the Case Type level, you should see an option to delete the case type

    • Note : In case you are not able to see an option to delete the case type, it means that case type stores some data for the project and hence cannot be deleted.

  • Upon clicking on the “Delete Case Type” button, you will see a pop-up message seeking confirmation from you to proceed with the deletion of the case type. Clicking on “Delete” will delete the case type from the Data Dictionary. 

Delete Case Type and Case Properties from Data Dictionary-Delete Case Type (2).jpgImage Added

Restoring a Deleted Case Type

You cannot restore the deleted case type from the Data Dictionary. You can however, simply create the deleted case type again. Alternatively, if the case type is being used by an application, making an update to the application will cause the case type to automatically be created in the Data Dictionary.

The Impact of Deleting a Case Type

Once a case type is deleted from the Data Dictionary : 

  • All the features using the case type filter dropdown option will not include deleted case types as available options, This includes features like Case Lists, Case List Explorer, Case Data Exports etc.

  • It will not be possible to create a new case data export using a deleted case type.

    • Existing exports using deleted case types will not be affected.

  • Users will not be able to import deleted case types using Excel.

  • A new automatic rule cannot be created using a deleted case type. Existing rules using deleted case types will not be affected.

  • All case properties defined under this case type in the Data Dictionary will also be deleted. 

    • The Application using the case type remains unaffected.  When a case type is deleted from the Data Dictionary the underlying case properties can still be referred back in an application. And if the case type is added back to Data Dictionary, the deleted case properties  will automatically added back to data dictionary configuration of that case type

Difference between Deprecating and Deleting a Case Type

  • One major difference between deprecating a Case Type and deleting a case type from the Data Dictionary is that you can only delete a case type which doesn’t have associated data with it but you can deprecate a case type even if it has data associated with it. 

  • You can un-deprecate a deprecated case type but there is no way to undelete a deleted case type. You can however, always add the deleted case type back to the Data Dictionary. 

Deleting Case Properties using Data Dictionary

You can delete the case property using the Data Dictionary for the following scenarios:

  • None of the cases for the particular case type has any data stored into that case property

  • The case property did store some data for the particular case type but all of that data has been archived. 

Deleting a Case Property

To delete a case property under a case type from the Data Dictionary:

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

  • Navigate to the case type under Data Dictionary and select the case type. 

  • You should see an option to delete the case property  (shown as “Garbage bin icon” on the right). 

    • Note : If you cannot see the delete option for the case property, it means that it has some data stored for the project.

  • Upon clicking on the “Delete” button, you will see a pop-up message seeking confirmation from you to proceed with the deletion of the case property. Clicking on “Delete” in the confirmation popup will mark the case property for deletion in the Data Dictionary. 

  • Similar to deprecating a case property, the action for deleting a case property will only happen once the “Save” button is clicked in the upper-right corner. If you would like to cancel deleting a case property, you can simply refresh the page or navigate to a different case type.

Delete Case Type and Case Properties from Data Dictionary-Delete Case Properties.jpgImage Added

Restoring a Deleted Case Property

You cannot restore the deleted case property from the Data Dictionary. You can however, always add the case property back which you had deleted initially. 

The Impact of Deleting a Case Property

Once a case property of a case type is deleted from the Data Dictionary : 

  • Deleted case property will not be available for configuration of reports using features like Case Data Export setups and Case List Explorer. 

  • Existing exports using deleted case properties will not be affected.

  • Custom descriptions for the case property will no longer show up in the form builder or case exports.

  • Any validation rules set up on this case property will no longer be applied on case imports.

Difference between Deprecating and Deleting a Case Property

  • One major difference between deprecating a case property and deleting a case property from the Data Dictionary is that you can only delete a case property which doesn’t have associated data with it but you can deprecate a case property even if it has data associated with it. 

  • You can un-deprecate a deprecated case property but there is no way to undelete a deleted case property. You can however, always add back the deleted case property in the Data Dictionary.