Aller au contenu
Skillpedia
Sécurité5.8k · #14686

configuring-privacy-policies

Ce qu’il fait

Cette compétence aide à choisir et à personnaliser le profil de confidentialité utilisé pour dépersonnaliser les textes cliniques, comme HIPAA Safe Harbor, la pseudonymisation RGPD ou un jeu de données de recherche. Elle s'adresse aux équipes qui ont besoin du bon niveau de protection pour leur cadre réglementaire.

Quand l’utiliser

  • ✓Quand vous devez choisir un profil de confidentialité pour HIPAA Safe Harbor, le RGPD, PIPEDA ou un jeu de données de recherche.
  • ✓Quand un travail de recherche doit conserver les dates et les lieux tout en retirant les identifiants directs.
  • ✓Quand vous avez besoin d'un format de substitut personnalisé, comme votre propre motif de numéro de dossier.

Lien du skill

https://github.com/maziyarpanahi/openmed/blob/master/skills/configuring-privacy-policies/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/maziyarpanahi/openmed/blob/master/skills/configuring-privacy-policies/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Quel profil de dépersonnalisation dois-je utiliser pour un jeu de données de recherche qui a encore besoin des dates et des codes postaux ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent relie votre contexte réglementaire à l'un des sept profils fournis, explique ce qu'il modifie, et ajuste les réglages pour la recherche ou les formats personnalisés si nécessaire.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Configuring privacy policies

A policy profile is a named bundle of de-identification decisions: which action (mask/redact/replace/keep) applies to each label, how aggressively detectors arbitrate, whether the mandatory safety sweep runs, and whether a reversible mapping is produced. OpenMed ships seven profiles. Pass one by name to deidentify(policy=...) and you get a compliance-aligned default without hand-wiring 50+ per-label actions. Everything runs on-device.

When to use this skill

Use it to pick the right policy= for a regulatory context, to understand what a profile actually changes, or to go beyond the bundle — keeping quasi- identifiers for research, or registering a custom surrogate generator (e.g. your own MRN format).

Quick start

import openmed

note = "Jane Roe, DOB 1979-04-11, lives in Cambridge MA 02139. SSN 123-45-6789."

# HIPAA Safe Harbor: mask every identifier class.
safe = openmed.deidentify(note, policy="hipaa_safe_harbor")

# GDPR pseudonymization: replace with fakes AND keep a reversible mapping.
gdpr = openmed.deidentify(note, policy="gdpr_pseudonymization")
mapping = gdpr.mapping          # present because the profile sets keep_mapping=True

# Research limited dataset: mask direct identifiers, KEEP quasi-identifiers
# (dates, age, ZIP, geography) so the data stays analytically useful.
lds = openmed.deidentify(note, policy="research_limited_dataset")

The seven bundled profiles

Each profile lives in openmed/core/policies/<name>.json. Summary of what each actually configures:

Profile Default action Quasi-identifiers Mapping Safety sweep Use case
hipaa_safe_harbor mask all masked none mandatory HIPAA §164.514(b)(2) Safe Harbor — strip all 18 identifier classes
hipaa_expert_review_assist redact redacted; clinical concepts kept none optional Assist Expert Determination (§164.514(b)(1)); keeps microbiology/clinical terms for a statistician to assess residual risk
gdpr_pseudonymization replace replaced; clinical kept kept + reversible mandatory GDPR Art. 4(5) pseudonymization — reversible under controlled key
canada_pipeda replace (IDs masked) replaced kept + reversible mandatory PIPEDA-aligned; like GDPR but masks ID_NUM/SSN outright
research_limited_dataset mask direct ids keeps dates, age, ZIP, geography, org, job none mandatory HIPAA Limited Data Set (§164.514(e)) — usable for research with a DUA
clinical_minimal_redaction mask direct ids keeps quasi-identifiers none optional Internal clinical use where readability matters; lighter cascade
strict_no_leak mask everything masked; even clinical concepts masked none mandatory Maximum-recall, union arbitration, all cascade tiers — zero-leakage posture

Key dimensions to reason about:

  • default_action — mask ([NAME]), redact, replace (fake value), or keep. Set per label in the profile's actions map.
  • policy_label_actions — coarse action by class: DIRECT_IDENTIFIER / QUASI_IDENTIFIER / CLINICAL_CONCEPT. Research and minimal-redaction profiles keep quasi-identifiers; strict-no-leak masks even clinical concepts.
  • keep_mapping / reversible_id — only GDPR and PIPEDA produce a reversible mapping. Treat that mapping as PHI.
  • safety_sweep_mandatory — deterministic structured-ID sweep (SSN, MRN- like, emails) that runs regardless of model confidence. Off only for the two "minimal/assist" profiles.
  • arbitration_mode / forced_cascade_tiers — strict_no_leak uses high_recall_union across tiers R0–R3 (most aggressive); minimal redaction uses only R0–R1.

Choosing: map regulation → profile

  • Publish or share data with no DUA, US → hipaa_safe_harbor.
  • Statistician will certify low risk (keep clinical signal) → hipaa_expert_review_assist, then human Expert Determination.
  • EU subjects, need reversibility under a key → gdpr_pseudonymization.
  • Canadian subjects → canada_pipeda.
  • Research cohort needing dates/age/geography → research_limited_dataset (requires a Data Use Agreement).
  • Internal clinical workflow, readability first → clinical_minimal_redaction.
  • Adversarial / zero-tolerance leakage → strict_no_leak.

Customizing beyond the bundle

When a profile is close but not

Questions fréquentes

Combien de profils existe-t-il ?

OpenMed fournit sept profils de confidentialité intégrés, chacun étant un ensemble nommé de décisions de dépersonnalisation.

Le texte quitte-t-il mon ordinateur ?

Non. Les profils s'exécutent sur l'appareil, le texte reste donc là.

Puis-je créer mon propre générateur ?

Oui. La compétence couvre l'enregistrement d'un générateur de substituts personnalisé, comme un générateur pour un format de numéro de dossier.

Détails

Description originale de l’auteur

Select and customize OpenMed's seven bundled privacy policy profiles for de-identification, and build custom surrogate generators. Use when the user asks which policy fits HIPAA Safe Harbor vs Expert Determination vs GDPR vs PIPEDA vs a research limited dataset vs strict no-leak, wants to pass policy= to deidentify(), needs to keep quasi-identifiers for research, or must register a custom MRN/name/address surrogate provider. Covers the profile-to-use-case map, AnonymizerConfig/Anonymizer for fine control, and register_clinical_provider / register_label_generator. Pairs with OpenMed deidentifyi

repo: maziyarpanahi/openmed

Popularité

Étoiles GitHub
5.8k
Position au classement
#14686
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires