R2 records
Each transaction set in the hipaa_x12_structure.dat file has an additional structure record with a validation type of R2 (relaxed Type 2).
These rules are applied to the R2 records:
- The segments that define loops do not change. These segments must be kept intact to determine
the correct loop IDs. This includes the segments: HL,
NM1, N1, and ENT.
If data fails both T2 (standard WEDI/SNIP type 2) and R2 (relaxed Type 2) structure checking, validation is stopped and only the structural errors are reported on the acknowledgment.
- The qualifier is removed from these records, making the checking relaxed for those segments that are used for choice and unordered loops. This includes instances of the following segments: REF, DTP, AMT, CRC, DTM, HI, III, NTE, PER, QTY, PWK. If the qualifier is not checked, any segments with invalid, or too many qualifiers, continues in the validation process.
- The cardinality of any segment that is not a loop defining segment, is relaxed to match the cardinality of standard X12 (Type 1) validation, except in the cases where Type 2 is more relaxed than Type 1.
- The results of the first Type 2 structure check are reported along with the results of the relaxed structure check. This results in duplicate reporting, but does allow all of the errors to be reported in one pass of the compliance check application.
Any segment that is not allowed for use under HIPAA, is not allowed in the relaxed validation, and produces an error if encountered.
If the data fails at both standard WEDI/SNIP type 2 and relaxed type 2 structure checking, then validation stops and only the errors as reported in the structure checking are reported.