Metadata Transfer
The metadata from a DHIS2 program contains items necessary for rendering within the enabled DHIS2 server. The DHIS2 server includes an Import/Export tool to generate a JSON or CSV file with all configurations in the server. However, certain attributes may need cleaning to prevent errors during import to the target server. These attributes typically involve references to users that don’t exist in the target server. To streamline the process and avoid manual deletion of each attribute, we can use the Program Configuration App (PCA). You can read more about the PCA here.
The PCA offers the same options as the Import/Export tool available within DHIS2 but automates the process to eliminate any references to organization units, users, or user groups that may cause errors in the target server.
To export the program using the PCA:
Select the Program Configuration App within DHIS2.
Search for 'RDQA'.
Click on the three dots in the upper-right corner of the RDQA Program.
Select 'Backup/Restore'.
Choose 'Export JSON Metadata'.
Select ‘Another Server’ in the target server
Click on the ‘Download’ file
Log in into the target server
Open the Import/Export tool
Select the ‘Metadata Import’ Section
Upload file and Select the JSON generated in the previously steps
Click on the ‘Start dry run’ button
Check the Summary Table and Verify that doesn’t exist any issue.
Once the process has been completed without any issue, click on the ‘Start Import’ button.
Verify the already RDQA exists in the server using the Maintenance App
Preparing Organisation Units [Both OU match UIDs, OU do not match]
Exporting data
Preparing data
GET API data
Send data
POST API data