X12 837P PER04 (Communication Number): Format, Values, and Testing Notes
PER04 is the payload the rest of the segment exists to deliver — the actual phone number, fax number, or email a payer will use. Its shape changes completely depending on the qualifier that precedes it, which is exactly the kind of conditional logic test data tends to skip.
PER04 is the fourth element of the PER segment in an X12 837P claim — the actual communication number or address, formatted according to whatever type was declared in the preceding PER03 qualifier.
How format depends on the qualifier
Example
PER04 carries two synthetic values here — 3035550142 for the telephone qualifier and a fictitious address for the email qualifier.
Where this trips people up
Phone numbers in PER04 sometimes carry an extension appended with a colon, and test suites that only ever generate a bare ten-digit number never exercise the code path that has to split an extension back out for display or dialing. The same problem shows up with email values — test data that's always a clean, short address never catches a downstream field-length limit or a validation regex that chokes on a longer but still valid address.