Running the NCPDP validation utility
The NCPDP validation utility uses the existing NCPDP Telecom schemas in the pack for initial validation, with the restriction list checking disabled. The base ncpdp_vd_0.mtt and ncpdp_vf6.mtt (schema if using Design Server) are used for this.
About this task
Code values are checked against the input file element_restriction_list.json, using the codeListDate in the ncpdp_parameter.json file to determine the start date for code list values that may have been added in recent standard updates. This file has values for both F6 and D0 versions, using a new field version at all levels to distinguish any segments, fields, or values that are only used in F6 or D0.
The situational and field format rules are defined in segment_rules.json and segment_rules_f6.json. In this case both files are needed to support the two different versions, but the initial processing in the validation map will determine the version of the NCPDP input file, and select the correct segment rules input appropriately.
Failures from component rules or cardinality in the schema will be reported by error checking in the NCPDP validation utility through map rules and/or the Java exit that is invoked.
Follow these steps to run the NCPDP validation utility: