Code list validation Architecture

Business rules related to code list validates:

Code list business rules

Architecture for Code List validation

The validation of the code lists needs an extra step on the process before executing the Schematron process. This is because it needs Genericode (GC) as input files.

  1. The first step is the generation of Genericode (GC) files. These files contains information about the values and identifiers of each code list.

    1. GC files are found in the /codelists/gc folder.

  2. Design and implementation of the CVA files. CVA stands for Context and Value Association:

  3. Execution of the implemented validations in the CVA files:

    1. Transformation of CVA files into SCH files.

    2. Continue with the Schematron execution process: (1) transformation of SCH files into XSLT and execution of the validations using the XSLT files to get the final report.

Architecture for code list validation

What does the SCH file contain?

  1. Association between one or more elements of the XML and one or more code list (specified in the Genericodes).

  2. The declaration of which attributes of the XML identify information of the Genericode.

The implementation of the CVA file has the following structure:

CVA example

Execution

As a basis of the implementation, it has been taken into account:

  1. Schematron implementation of CVA files for validation from CRANE SOFTWRIGHTS LTD

Code List Validation Execution files

This example describes the execution of the validation process using the Saxon library to execute XSLT files and the XSLT provided as a basis:

Execution of the validation process in code lists