Redacts PHI from FHIR resources following HIPAA Safe Harbor. Strips, masks, or truncates names, identifiers, addresses, telecom, birth dates, photos, and narratives.
How this skill is triggered — by the user, by Claude, or both
Slash command
/healthclaw-guardrails:phi-redactionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Standard redaction profile for Protected Health Information (PHI) applied on all
Standard redaction profile for Protected Health Information (PHI) applied on all read paths in the FHIR MCP guardrail stack. Based on HIPAA Safe Harbor method.
All redaction is applied at read time, not at storage time.
HumanName)[Redacted]<div xmlns="http://www.w3.org/1999/xhtml">[Redacted]</div>empty[Redacted]import json
def apply_redaction(resource):
"""Deep-copy the resource and redact PHI fields."""
redacted = json.loads(json.dumps(resource))
_redact_fields(redacted)
for contained in redacted.get('contained', []):
if isinstance(contained, dict):
_redact_fields(contained)
return redacted
Key implementation notes:
This redaction profile covers these Safe Harbor identifiers:
Not covered by this profile (would need additional implementation):
photo field, not scanned in attachments)The redaction is applied automatically by the guardrail stack. MCP tools like
fhir.read, fhir.search, fhir.lastn, and context.get all return
redacted data. No additional action is needed by the agent.
The $deidentify operation provides explicit HIPAA Safe Harbor de-identification
on demand, useful for export or analysis workflows.
npx claudepluginhub aks129/healthclawguardrails --plugin healthclaw-guardrailsFHIR agent guardrails for clinical data access via MCP. Provides 12+ tools for reading/writing resources with automatic PHI redaction, audit trails, and step-up authorization.
Guides PHI data handling per HIPAA: 18 identifiers, Safe Harbor/Expert Determination de-identification, minimum necessary principle, RBAC access controls, audit logging, encryption at rest/transit, secure disposal.
De-identifies PHI via HIPAA safe harbor (removes 18 identifiers) and expert determination methods. Assesses re-identification risks, limited datasets, and data agreements.