# Clinical Anonymization

> Anonymizes clinical text by removing or replacing personally identifiable information (PHI/PII) such as names, dates, locations, identifiers, and contact details. Use when processing clinical notes, patient records, or any sensitive healthcare data.

- **Type:** Skill
- **Install:** `agentstack add skill-elisaterumi-ai-clinical-agent-skills-anonymization`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [elisaterumi-ai](https://agentstack.voostack.com/s/elisaterumi-ai)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [elisaterumi-ai](https://github.com/elisaterumi-ai)
- **Source:** https://github.com/elisaterumi-ai/clinical-agent-skills/tree/main/skills/anonymization

## Install

```sh
agentstack add skill-elisaterumi-ai-clinical-agent-skills-anonymization
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

When anonymizing clinical text, follow these steps:

## 1. Identify sensitive information

Detect and classify all Personally Identifiable Information (PII/PHI), including:

- Names (patients, doctors, relatives)
- Dates (birth, admission, discharge, events)
- Locations (cities, hospitals, addresses)
- Identification numbers (CPF, RG, SSN, medical record numbers)
- Contact information (phone numbers, emails)
- Organization names (clinics, hospitals, employers)
- Geographic details smaller than a state level
- Any unique identifiers that can re-identify a person

## 2. Apply anonymization

Replace each entity with a consistent placeholder:

- [PATIENT_1], [DOCTOR_1]
- [DATE_1]
- [LOCATION_1]
- [ID_1]
- [CONTACT_1]
- [ORG_1]

Rules:

- Maintain consistency: the same entity must always map to the same placeholder
- Do not invent or infer missing data
- Do not remove clinical meaning
- Use consistent indexed placeholders per entity type. If multiple entities of the same type exist, assign incremental IDs (e.g., [PATIENT_1], [PATIENT_2]).

## 3. Preserve clinical utility

- Keep all medical information intact:
  - symptoms
  - diagnoses
  - medications
  - procedures
- Maintain sentence structure and readability
- Avoid over-anonymization that removes useful context

## 4. Generalization (when needed)

If exact anonymization is not possible, generalize:

- Exact age → age range (e.g., "84 years" → "80+ years")
- Specific date → month/year or relative time ("March 2023" → "[DATE_1]")
- Precise location → broader region

## 5. Validate output

Before returning the result:

- Ensure no PII/PHI remains
- Ensure consistency of placeholders
- Ensure medical meaning is preserved

## 6. Output format

Return only the anonymized text.

Do not include explanations.
Do not include metadata unless explicitly requested.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [elisaterumi-ai](https://github.com/elisaterumi-ai)
- **Source:** [elisaterumi-ai/clinical-agent-skills](https://github.com/elisaterumi-ai/clinical-agent-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-elisaterumi-ai-clinical-agent-skills-anonymization
- Seller: https://agentstack.voostack.com/s/elisaterumi-ai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
