Control data quality¶
About data quality checks¶
The Data Quality app contains tools to validate the accuracy and reliability of the data in the system. You can assess different dimensions of data quality as outlined in the table below:
| Dimensión | Descripción |
|---|---|
| Exactitud | Los datos deben estar dentro del rango normal para los datos recopilados en ese establecimiento. No debe haber grandes discrepancias en comparación con los datos de los elementos de datos relacionados. |
| Completitud | Deberían haberse presentado los datos de todos los elementos de datos de todas las unidades organizativas informantes. |
| Consistencia | Los datos deben ser consistentes con los datos introducidos durante meses y años anteriores, permitiendo al mismo tiempo cambios con la reorganización, aumento de la carga de trabajo, etc. y consistencia con otras instalaciones similares. |
| Puntualidad | Todos los datos de todas las unidades organizativas informantes deben enviarse a la hora especificada. |
Puede verificar la calidad de los datos de diferentes maneras, por ejemplo:
-
At point of data entry, DHIS 2 can check the data entered to see if it falls within the minimum maximum value ranges of that data element (based on all previous data registered).
-
By defining validation rules, which can be run once the user has finished data entry. The user can also check the entered data for a particular period and organization unit(s) against the validation rules, and display the violations for these validation rules.
-
Al analizar conjuntos de datos, es decir, examinar las lagunas de los datos.
-
By data triangulation, that is, comparing the same data or indicator from different sources.
Validation rule analysis¶
About validation rule analysis¶
A validation rule is based on an expression which defines a numeric relationship between data element values. The expression forms a condition which should assert that certain logical criteria are met.
La expresión consiste en:
-
Un lado izquierdo
-
Un lado derecho
-
Un operador
A validation rule could assert that "Suspected malaria cases tested" >= "Confirmed malaria cases".
Los lados izquierdo y derecho deben devolver valores numéricos.
The validation rule analysis tests validation rules against the data registered in the system. Validation violations are reported when the condition defined in the validation rule expression is not met, which means when the condition is false.
You can configure a validation rule analysis to automatically send out information about validation violations to selected user groups. These messages are called validation notifications and you create them in the Maintenance app. Validation notifications are sent via the internal DHIS 2 messaging system.
Workflow¶
-
In the Maintenance app, create validation rules and validation rule groups.
-
(Optional) In the Maintenance app, create validation notifications.
-
Ejecutar el análisis por reglas de validación, de forma automática o manual.
-
In the Scheduler app, you schedule the validation rule analysis to run automatically for all validation rules included in one or several validation rule groups. After the system has run the analysis, you'll see the validation violations (if any) in the validation notifications sent via the internal DHIS 2 messaging system.
-
In the Data Quality app, you run the validation rule analysis manually for selected validation rules. After the analysis process has finished, you'll see a list of validation violations (if any).
-
Schedule a validation rule analysis to run automatically¶
Note
Only validation rules that are included in one or several validation notifications will be a part of the validation rule analysis. If there is no corresponding validation notification for a validation rule, no notification will be sent.
Note
While running validation rule analysis automatically, any results not already persisted, will be persisted during this run. Persisted results can currently only be accessed trough the API. Consult the developers guide for more information about how persisted validation rule violations can be accessed.
-
Verify that you have created all the validation rules, validation rule groups and validation notifications you need.
-
Abrir la aplicación Planificador y click en el botón de añadir en la esquina inferior derecha.
-
Elija un nombre adecuado para el nuevo trabajo.
-
Select the Monitoring Job type using the drop-down menu.
-
Seleccionar una frecuencia de ejecución para el trabajo, es decir, cuándo y con qué frecuencia debe ejecutarse el trabajo.
-
Llene la sección Parámetros, incluyendo los grupos de reglas de validación.
-
Presione el botón Agregar trabajo para confirmar la creación del trabajo. Para obtener más información sobre cómo agregar trabajos, consulte Planificador.
Run a validation rule analysis manually¶

-
Verify that you have created all the validation rules, validation rule groups and validation notifications you need.
-
Open the Data Quality app and click Validation rule analysis.
-
Seleccionar una Fecha de inicio y Fecha de fin.
-
Select which Validation rule group you want to include in the analysis.
You can select all validation rules or all validation rules from a single validation rule group.
-
(Optional) Select Send notifications to trigger validation notifications.
Note
If you want to send out validation notifications, you must first create them in the Maintenance app.
-
(Optional) Select Persist new results to persist any non-persisted results found during the analysis
-
Seleccionar padre de unidad organizativa.
-
Click en Validar.
The analysis process duration depends on the amount of data that is being analysed. If there are no violations of the validation rules, you'll see a message saying Validation passed successfully. If there are validation violations, they will be presented in a list.

-
(Optional) Click the show details icon to get more information about a validation violation. In the pop-up window you'll find information about the data elements included in the validation rules and their corresponding data values. You can use this information to identify the source of the validation rule violation.
-
(Optional) Click Download as PDF, Download as Excel or Download as CSV to download the validation violations list in PDF, Excel or CSV formats.
See also¶
Outlier detection¶
About outlier detection¶
The outlier detection tool identifies values which are numerically distant from the rest of the data, potentially indicating that they are outliers. The analysis is based on the standard normal distribution. DHIS 2 calculates the mean of all values for an organisation unit, data element, category option combination and attribute option combination.
Note
As indicated above, this data quality analysis is only appropriate for data which is normally distributed. Data with large seasonal variation, or which may be distributed according to other statistical models (e.g. logistical ) may lead values being flagged which actually should be considered valid. It is therefore recommended to first confirm whether the data actually is normally distributed before running a standard deviation outlier analysis.
Run outlier detection¶

-
Abrir la aplicación Calidad de datos y click en Detección de valores atípicos.
-
Seleccionar uno o varios sets de datos.
-
Seleccionar Unidad organizativa.
Se pueden seleccionar varias unidades organizativas. El análisis se realiza sobre datos brutos para todas las unidades organizativas en la sub-jerarquía de las unidades seleccionadas, no sobre datos agregados.
-
Seleccionar Desde la fecha y Hasta la fecha.
-
Set the Algorithm to use.
Z-score (basado en la media de los valores de datos), Z-score modificado (basado en la mediana de los valores de datos) y Valores mín-máx (basado en valores de datos mínimo-máximo almacenados) son algoritmos disponibles.
-
Seleccionar un Umbral.
Esto se refiere al número de desviaciones estándar que los datos pueden desviarse de la media antes de clasificarlos como valores atípicos.
- Seleccionar Resultados máximos
Esto se refiere al número máximo de valores atípicos enumerados en los resultados.
- (Opcional) Seleccione una Fecha de inicio de datos y Fecha de fin de datos.
Estos campos se pueden utilizar para realizar análisis de detección de valores atípicos en un subconjunto de datos dentro del rango de fechas proporcionado. Cuando se deja en blanco, se utilizará la fecha natural de inicio y fin del set de datos (en la sección avanzada).
- (Opcional) Seleccione una medida para Ordenar por.
Los valores atípicos se pueden ordenar por Z-score o por Desviación absoluta de la media (En la sección avanzada).
-
Click en Iniciar The analysis process duration depends on the amount of data that is being analysed. If there are standard deviations outliers, they will be presented in a list.
For each outlier, you will see the data element, period, organisation unit, value, z-score, deviation, standard deviation, mean, min, and max. The minimum and maximum values refer to the border values derived from the number of standard deviations selected for the analysis. -
(Opcional) Click en Descargar como CSV para descargar la lista en formato CSV.
Consejo
Click en la casilla de verificación para marcar un valor atípico para su posterior seguimiento.
Minimum maximum outlier detection¶
About minimum maximum value based outlier detection¶
You can verify the data quality at the point of data entry by setting a minimun/maximum value range for each data value. You can define the value ranges manually or generate them automatically.
The auto-generated minimum maximum value range is suitable only for normally distributed data. DHIS2 will determine the arithmetic mean and standard deviation of all values for a given data element, category option, organisation unit and attribute combination. Then the system will calculate the minimum maximum value range based on the Data analysis std dev factor specified in the System Settings app.
For data which is highly-skewed or zero inflated (as is often the case with aggregate data), the values which DHIS2 auto-generates may not provide an accurate minimum maximum value range. This can lead to excessive false violations, for example if you analyse values related to seasonal diseases.
Note
Minimum maximum value ranges are calculated across all attribute combination options for a given data element, category option and organisation unit combination.
Workflow¶
-
Create a minimum maximum value range, either automatically or manually.
-
In the Data Administration app, you generate value ranges automatically.
-
In the Data Entry app, you may set value ranges manually.
-
-
En la aplicación Calidad de datos, ejecute el Análisis de valores atípicos mín.-máx..
Configure a minimum maximum outlier detection¶
Create minimum maximum value range automatically¶
Note
Auto-generated minimum maximum value ranges can be useful for many situations, but it's recommended to verify that the data is actually normally distributed prior to using this function.
You generate minimum maximum value ranges calculated by data set in the Data Administration app. The new value ranges override any value ranges that the system has calculated previously.
-
Establezca el factor de desviación estándar de análisis de datos (std dev):
-
Abrir la aplicación Configuración del sistema y click en General.
-
En el campo Factor de desviación estándar de análisis de datos (Data analysis std dev factor), introduzca un valor.
This sets the number of standard deviations to use in the outlier analysis. The default value is 2. Higher values indicate a broader distribution, which may lead to outliers not being flagged correctly by the analysis.
-
-
Abrir la aplicación Administración de datos y click en Generación de valor mínimo-máximo.
-
Seleccionar el (los) set(s) de dato(s).
-
Seleccionar una Unidad organizativa.
-
Click en Generar.
New minimum maximum value ranges for all data elements in the selected data sets for all organisation units (including descendants) of the selected organisation units are generated.
Create minimum/maximum value range manually¶

-
En la aplicación Entrada de datos, abra un formulario de entrada de datos.
-
Haga doble click en el campo para el que desea establecer el rango de valor mínimo/máximo.
-
Introduzca límite mínimo y límite máximo en el cuadro de diálogo que aparece.
-
Click en Guardar.
If values don't fall within the new value range the next time you enter data, the data entry cell will appear with an orange background.
-
(Optional) Type a comment to explain the reason for the discrepancy, for example an event at a facility which may have generated a large number of clients.
-
(Opcional) Click en Guardar comentario.
Consejo
Click en el icono de estrella para marcar el valor para seguimiento posterior.
Delete minimum maximum value range¶
You can permanently delete all minimum maximum value ranges for selected data sets and organisation units in the Data Administration app.
-
Abrir la aplicación Administración de datos y click en Generación de valor mínimo-máximo.
-
Seleccionar el (los) set(s) de dato(s).
-
Select an Organisation unit. Note, that the selection cascades to descendant organisation units!
-
Click en Eliminar.
Run a minimum maximum outlier detection¶

-
Verifique que haya creado rangos de valores mínimos y máximos.
-
Abrir la aplicación Calidad de datos y click en Detección de valores atípicos.
-
Seleccionar el (los) set(s) de dato(s).
-
Seleccionar padre de unidad organizativa.
Se pueden seleccionar varias unidades organizativas. El análisis se realiza sobre datos brutos para todas las unidades organizativas en la sub-jerarquía de las unidades seleccionadas, no sobre datos agregados.
-
Seleccionar Desde la fecha y Hasta la fecha.
-
Establecer Algoritmo en Valores mínimo-máximo.
-
Seleccionar Resultados máximos
Esto se refiere al número máximo de valores atípicos enumerados en los resultados.
-
Click en Iniciar
The analysis process duration depends on the amount of data that is being analysed. If there are standard deviations outliers, they will be presented in a list.

For each outlier, you will see the data element, period, organisation unit, value, deviation, min, and max.
-
(Opcional) Click en Descargar como CSV para descargar la lista en formato CSV.
Consejo
Click en la casilla de verificación para marcar el valor para un seguimiento posterior.
Follow-up analysis¶
About follow-up analysis¶
The follow-up analysis creates a list of all data values marked for follow-up. You can mark a data value for follow-up in the Data Entry app and in the result list you get from a standard deviation outlier or minimum maximum outlier analysis.
Create list of data values marked for follow-up¶

-
Abrir la aplicación Calidad de datos y click en Análisis por seguimiento.
-
Seleccionar un set de datos o varios sets de datos.
-
Seleccionar Unidad organizativa.
Se pueden seleccionar varias unidades organizativas. El análisis se realiza sobre datos brutos "bajo" la unidad organizativa, no sobre datos agregados.
-
Select a Start Date and End Date which defines the periods which you are interested in looking for values which have been marked for follow up.
-
Press Follow up to generate a list of values which have been marked for follow up.
-
(Opcional) Haga click en Descargar como PDF, Descargar como Excel o Descargar como CSV para descargar la lista de infracciones de validación en formato PDF, Excel o CSV.

Tip
Check the Unfollow checkbox in the list and click the Unfollow-button to remove the follow-up tags from the marked data values. You can also enter a comment in the field to indicate any additional information regarding the value.