100% Offline Reference HIPAA Safe Harbor

De-Identifying 837, 835 & 271 Unit-Test Fixtures Offline (HIPAA Safe Harbor)

Committing raw production claims into Git violates 45 CFR § 164.514(b), yet naive regex masking breaks fixed-width fields, 80840 NPI check digits, and cross-file CLM-01 ↔ CLP-01 joins.

X12 Segments Carrying HIPAA Safe Harbor Identifiers

SegmentSensitive ElementsValidation Constraint Preserved by EdiPrism
NM1NM1-03 (Last/Org), NM1-04 (First), NM1-05, NM1-09 (Member ID / SSN / NPI)Preserves entity type (1 vs 2) and generates valid 10-digit 80840 Luhn NPIs when NM1-08=XX.
N3 / N4N3-01/02 (Street), N4-01 (City), N4-03 (ZIP)Keeps valid US state codes (N4-02) and 5/9-digit numeric postal formatting.
DMGDMG-02 (Birth Date CCYYMMDD)Produces valid calendar dates preserving age-bracket semantics (adult vs. pediatric).
PERPER-02 (Contact Name), PER-04/06/08 (TE/EM/FX)Emits syntactically valid 10-digit reserved 555 phone numbers and example domains.
REF / CLMREF-02 (SSN/SY, Tax ID/EI, MRN/EA), CLM-01, CLP-01, TRN-02Deterministic keyed HmacSHA256 keeps identical synthetic IDs across paired 837 & 835 files.

Recommended 30-Second Workflow for Regression Test Suites

  1. Open the failing production batch locally inside IntelliJ IDEA, PyCharm, DataGrip, or Rider (zero network egress).
  2. Place your caret on the failing CLM or CLP segment and press Alt+Shift+X (Slice Minimal Fixture) to isolate just that claim + ancestor HL chain.
  3. Run Scrub HIPAA / PII Test Fixture to produce a deterministic Safe-Harbor anonymized .x12 fixture ready to commit to Git.
EdiPrism Offline Inspector — Zero Network Calls
How to HIPAA Scrub ASC X12 837 & 835 Unit-Test Fixtures Offline — EdiPrism inside JetBrains IDE with EdiPrism

Frequently Asked Engineering Questions

Why does replacing NM1-09 with 9999999999 fail X12 5010 validation?

When NM1-08 equals XX (CMS National Provider Identifier), clearinghouses validate NM1-09 against the ISO/IEC 7812 Luhn Mod-10 check digit prefixed with 80840. For 999999999, the valid 10th check digit is 5 (9999999995), so 9999999999 fails with IK4-03 = I12.

Inspect, Diff, Validate & Scrub This Payload Offline in Your JetBrains IDE

Never paste regulated healthcare PHI (837/835/271) or supply-chain payloads (850/ORDERS) into browser parsers. EdiPrism X12 EDIFACT runs 100% air-gapped inside IntelliJ IDEA, PyCharm, DataGrip, Rider, GoLand, and WebStorm with a free core tier and a 14-day [Pro] trial.

Install Free from JetBrains Marketplace → Read Air-Gap Security Architecture