Edi Lenient Mode
Fusion Registry may be run in "EDI Lenient" mode. When running in this mode certain aspects of EDI which are enforced by the EDI standard are ignored.
EDI does not permit a structure to reference another structure belonging to a different Agency. When running in EDI Leniency mode, this restriction is disabled and the structures will all be stated as belonging to the same agency. For example, a Data Structure Definition in Agency 1 if it refers to a Codelist in Agency 2 cannot strictly be converted into EDI since EDI cannot express that the DSD and Codelist are in different agencies. In EDI Leniency mode, the outputted EDI file would state that both are owned by Agency1.
The EDI standard does not support uncoded dimensions in a Data Structure. All dimensions must be explicitly coded. When running in EDI Leniency mode, Data Structures with uncoded dimensions may be read or written without an exception being thrown.
EDI enforces the following limits on a data file:
- The Observation Value is limited to a maximum of 15 characters
- The Observation Attribute “OBS_STATUS” is limited to a maximum of 35 characters
- The Observation Attribute “OBS_CONF” is limited to a maximum of 35 characters
- The Observation Attribute “OBS_PRE_BREAK” is limited to a maximum of 15 characters
When running in EDI Leniency mode, none of the above restrictions apply when reading or writing a data file.
Enabling EDI Leniency Mode
To run the Registry in EDI Lenience Mode, the Registry must be started and a Java System variable called "edi.lenient.enabled" must be specified and set to "true". This is supplied via the -D parameter thus:
When using Apache Tomcat, the simplest way to perform this is by modifying the setenv.bat or setenv.sh file. To illustrate this:
(For Windows systems)
(For Unix systems)