Entity relationships
This section is intended to declare the relationships between the entities declared in the previous section.
Validation files
This section is intended to declare validation rules that will follow the entities declared in the previous section.
The format of the rules follows the operation syntax of the high performance analytical database system DuckDB (For more information, visit DuckDB).
The tool does not validate the rules uploaded by the user. In case it cannot identify the type of rule entered it is assigned to a general rule type for further debugging by the user.
Example of rules:
- Check null values. (Comparisons).
age IS NULL- Value of the variable within an interval. (Comparisons).
age BETWEEN 18 AND 115- Comparison between variables. (Comparisons).
discharge_dt >= admission_dt- Values of a variable contained in a table of values. (IN Operator).
country_cd IN ('ES', 'BE', 'DE', NULL)- Complex rules. (Expressions).
((sex_cd = '2') AND (age BETWEEN 16 AND 65))It is recommended to download the template of the entity that needs validation rules, look at the examples and modify them to fit the purpose.
Once the rules are declared, upload the file in the corresponding entity.
This step is not mandatory and will only affect the synthetic data generation at this point. You can modify the validation rules file in the following path of the generated structure:
use_case/docs/CDM/entities/entityX/validation-rules/your_validation_file.json
And in the configuration file located at:
use_case/docs/CDM/cdmb_config.json