AGENT SKILL

skill-047

Techniques for anonymizing patient data in compliance with privacy regulations to ensure confidentiality during analysis. This skill focuses on methods to safeguard sensitive information while still allowing for useful data analysis.

License 许可
MIT
最近更新
2026-06-04
Stars
★ 8
Forks
2

01 前言 Front Matter

name
skill-047
description
Techniques for anonymizing patient data in compliance with privacy regulations to ensure confidentiality during analysis. This skill focuses on methods to safeguard sensitive information while still allowing for useful data analysis.

03 SKILL.md 正文

Patient Data Anonymization

Overview

Patient Data Anonymization provides methods and practices for protecting patient identities while maintaining the usability of their data for research and analysis. In today’s data-driven healthcare environment, compliance with privacy regulations like HIPAA is crucial.

This skill covers:

  • Data Masking: Techniques to obscure sensitive patient information.
  • Pseudonymization: Replacing private identifiers with fake identifiers.
  • Generalization: Reducing the precision of data to protect individual identities.
  • Data Aggregation: Combining data in a way that individual patient identities cannot be determined.

When to Use This Skill

Use this skill when:

  • Preparing patient data for research while ensuring compliance with privacy laws.
  • Sharing de-identified data with third parties.
  • Conducting analytics where patient identity must be protected.
  • Ensuring that sensitive information does not compromise patient confidentiality.

Anonymization Techniques

1. Data Masking

Data masking involves altering sensitive information to prevent identification while retaining its analytical value. This technique can be applied to names, addresses, and other identifiable information.

Example of Data Masking:

import pandas as pd

# Sample patient data
patients = pd.DataFrame({
    'PatientID': [1, 2, 3],
    'Name': ['Alice Smith', 'Bob Johnson', 'Charlie Brown']
})

patients['MaskedName'] = patients['Name'].apply(lambda x: 'Patient ' + str(patients.index[patients['Name'] == x][0] + 1))
print(patients)

2. Pseudonymization

Pseudonymization involves replacing private identifiers with a unique pseudonym.

Example of Pseudonymization:

import uuid

# Function to pseudonymize patient IDs
def pseudonymize_id():
    return str(uuid.uuid4())

patients['PseudonymID'] = patients['PatientID'].apply(lambda x: pseudonymize_id())
print(patients)

3. Generalization

Generalization reduces specificity of data. For example, converting exact ages into age ranges.

Example of Generalization:

age = 29
age_range = f'{(age // 10) * 10}-{(age // 10) * 10 + 9}'
print(age_range)  # Outputs: '20-29'

4. Data Aggregation

Aggregating data to present it in summary form can help prevent re-identification of individuals.

Example of Data Aggregation:

# Sample data aggregation
summary = patients.groupby('MaskedName').size()
print(summary)

Conclusion

Patient Data Anonymization is essential for maintaining confidentiality while allowing healthcare analysts to use valuable patient information. The techniques outlined in this skill provide robust methods to safeguard patient identities in compliance with legal and ethical standards.

04 同仓库更多 Skills

legendtkl
legendtkl/agentic-skill-router

foo

A test skill named foo

★ 8
legendtkl
legendtkl/agentic-skill-router

bar

飞书 — bar with quoted Chinese

★ 8
legendtkl
legendtkl/agentic-skill-router

agentic-skill-router

First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-trim

Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-transcode

Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.

★ 8
legendtkl
legendtkl/agentic-skill-router

syn-video-thumbnail

Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.

★ 8