Install
openclaw skills install redactaRedacta pseudonymises medical documents — replacing patient identifiers (NHS numbers, dates of birth, postcodes, phone numbers, hospital numbers) with labell...
openclaw skills install redactaRedacta pseudonymises medical documents before AI processing. It detects patient identifiers and replaces them with labelled tokens, preserving clinical meaning while protecting privacy.
When a user shares medical text, scan it for patient identifiers and replace them with pseudonymised tokens. The output should be clinically readable but contain no real patient data.
Apply these pattern rules automatically:
NHS Numbers (UK)
943 476 5919) or 10 consecutive digits[NHS_NUMBER]Dates of Birth / Dates
[DATE_OF_BIRTH] (when contextually a DOB) or [DATE] (other dates)UK Postcodes
[POSTCODE]Phone Numbers
[PHONE_NUMBER]Email Addresses
[EMAIL]Hospital / MRN Numbers
[HOSPITAL_NUMBER]UK National Insurance Numbers
[NI_NUMBER]Use your understanding of clinical documents to detect:
Patient Names
[PATIENT_NAME][PATIENT_NAME_1], [PATIENT_NAME_2]Patient Addresses
[ADDRESS]Ages
[AGE]Return two sections:
The full document with all identifiers replaced by tokens. Preserve all formatting, paragraph breaks, and clinical content.
A summary of what was found and replaced:
Redaction Report
================
Items pseudonymised: 7
- [NHS_NUMBER] × 1 (line 3)
- [PATIENT_NAME] × 2 (lines 1, 5)
- [DATE_OF_BIRTH] × 1 (line 2)
- [POSTCODE] × 1 (line 8)
- [PHONE_NUMBER] × 1 (line 9)
- [AGE] × 1 (line 4)
Clinical content preserved: ✓
Clinician names preserved: Dr. Sarah Chen, Mr. James Wright
[PATIENT_NAME])Input:
Dear Mrs Patricia Hartley,
DOB: 14/03/1952 (age 73)
NHS Number: 943 476 5919
Hospital Number: RXH-2847561
I am writing to inform you of the results of your recent investigations.
Mrs Hartley attended the cardiology outpatient clinic on 10 February 2026
under the care of Dr Sarah Chen.
Address: 14 Oakfield Road, Headingley, Leeds LS6 3PJ
Tel: 0113 278 4532
Output:
Dear [PATIENT_NAME],
DOB: [DATE_OF_BIRTH] (age [AGE])
NHS Number: [NHS_NUMBER]
Hospital Number: [HOSPITAL_NUMBER]
I am writing to inform you of the results of your recent investigations.
[PATIENT_NAME] attended the cardiology outpatient clinic on 10 February 2026
under the care of Dr Sarah Chen.
Address: [ADDRESS], [POSTCODE]
Tel: [PHONE_NUMBER]
This skill processes text locally within your AI agent session. No patient data is sent to external services. However, the text is processed by the underlying language model — ensure your model provider's data handling meets your organisation's requirements.
Built by PharmaTools.AI — applied AI for pharma and healthcare.