Manually Creating or Updating COCs in DHIS2


A question was asked: can we create specific COCs and upload those specific COCs to DHIS2?

The answer is “Yes” to both. However there are strict controls in place due to the importance of COCs as the backbone of DHIS2 disaggregations.

The disclaimer on this task is that the import file must be quality assured and all objects linked appropriately. It is very easy to mess things up when dealing with COCs

The basic steps are as follows:

  1. Export COC(s) from /api/metadata.
  2. Make changes and specify new UID if necessary.
  3. Make sure the CC and the COs are accurate and already exist
  4. Import.
  5. Run Analytics
  6. Check Data via Data Visualizer

These are “basic” steps because various levels of automation can increase the complexity of the task. There should be testing processes as well as other ETL processes included but they are dependent on the work load and the specific requirements. For example, for editing many COCs, it could be accomplished manually in many ways or via a script.