Home →
Redaction Guides
→ Redact Medical Record Numbers
How to Redact Medical Record Numbers in a PDF
Medical record numbers appear in clinical reports, billing statements, and patient documentation. Use label-aware patterns to avoid removing unrelated identifiers.
Important: PermanentRedaction permanently removes text from text-based PDFs. Scanned/image-only PDFs are not supported.
Quick notes
Tip: Many PDF editors can only mask text with black rectangles. Masking is not the same as permanently deleting text from the PDF layer.
Step-by-step
Step 1
Identify MRN fields within medical reports or patient records.
Step 2
Use a label-aware regex rule.
See Example: Medical Record Number label
Regex
(?i)\b(?:mrn|medical\s*record\s*number)\b\s*[:\-]?\s*\d{5,15}\b
Matches
- MRN: 12345678
- Medical Record Number 987654321
Hospitals use different MRN formats. Preview matches to confirm accuracy.
Using regex rules in PermanentRedaction
PermanentRedaction supports deterministic redaction rules using regular expressions.
Patterns like this can be applied across an entire document to permanently remove matching text.
Step 3
Preview matches across the full document.
Step 4
Export the final PDF with permanent removal.
Step 5
Verify the exported PDF and review the verification report.
Common mistakes to avoid
Matching patient IDs incorrectly
Hospitals may use several identifiers besides MRN.
Using overly broad digit rules
Many medical documents contain long numeric identifiers.
Skipping preview
Always confirm matches before exporting.
FAQ
Is MRN considered sensitive data?
Yes. MRNs are often treated as protected identifiers.
Do MRN formats vary by hospital?
Yes. Hospitals use different numbering systems.
Are scanned records supported?
Not currently.