SCRIPT validation

The ncpdp_script_v10_6 schema describes the NCPDP SCRIPT messages and enveloping structures. SCRIPT V10.6 is backward compatible with SCRIPT V8.1. This schema contains component rules and restriction lists to enforce standard syntax and data integrity, as in the following:

  • valid segments
  • segment order
  • maximum segment and loop occurrences
  • element attributes, for example, size and data
  • required, or intra-segment situational data elements (element cardinality within segments)
The ncpdp_script_v10_6 schema does not enforce the following:
  • inter-segment situations, for example, If A occurs then B must be populated
  • restriction lists not documented in the SCRIPT implementation guide, or external code list and data dictionary
  • conflicting syntax, restriction lists, or rules based on V10.6 and V8.1 implementation guides
  • balancing rules, for example, element A equals B plus C.