configuring-privacy-policies
Skill này làm gì
Skill này giúp chọn và tùy chỉnh hồ sơ quyền riêng tư dùng khi khử nhận dạng văn bản lâm sàng, như HIPAA Safe Harbor, giả danh hóa theo GDPR hoặc một bộ dữ liệu nghiên cứu. Dành cho các nhóm cần mức bảo vệ phù hợp với bối cảnh pháp lý của họ.
Khi nào nên dùng
- ✓Khi bạn cần chọn hồ sơ quyền riêng tư cho HIPAA Safe Harbor, GDPR, PIPEDA hoặc một bộ dữ liệu nghiên cứu.
- ✓Khi công việc nghiên cứu phải giữ ngày và địa điểm trong khi xóa các định danh trực tiếp.
- ✓Khi bạn cần một định dạng thay thế tùy chỉnh, như mẫu số hồ sơ bệnh án riêng của bạn.
Liên kết skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/configuring-privacy-policies/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi nên dùng hồ sơ khử nhận dạng nào cho một bộ dữ liệu nghiên cứu vẫn cần ngày và mã bưu chính?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent khớp bối cảnh pháp lý của bạn với một trong bảy hồ sơ đi kèm, giải thích những gì nó thay đổi, và điều chỉnh cài đặt cho nghiên cứu hoặc định dạng tùy chỉnh khi cần.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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), orkeep. Set per label in the profile'sactionsmap.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_leakuseshigh_recall_unionacross 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
Câu hỏi thường gặp
Có bao nhiêu hồ sơ?
OpenMed có sẵn bảy hồ sơ quyền riêng tư đi kèm, mỗi hồ sơ là một tập quyết định khử nhận dạng có tên.
Văn bản có rời khỏi máy tính của tôi không?
Không. Các hồ sơ chạy trên thiết bị, nên văn bản vẫn ở đó.
Tôi có thể tạo bộ sinh riêng không?
Có. Skill có hướng dẫn đăng ký một bộ sinh giá trị thay thế tùy chỉnh, như một bộ cho mẫu MRN.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.8k
- Vị trí xếp hạng
- #14686
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
annotating-variants
5.8kGiúp agent dự đoán tác động của biến thể di truyền, đổi tên HGVS sang vị trí bộ gen và gắn tần suất quần thể bằng công cụ chú giải miễn phí.
ask-openmed
5.8kGiúp agent chọn đúng quy trình OpenMed cho yêu cầu về văn bản lâm sàng, luôn kiểm tra quyền riêng tư trước khi có thể có dữ liệu bệnh nhân.
assembling-fhir-bundles
5.8kGói nhiều bản ghi y tế FHIR thành một Bundle giao dịch để gửi tới EHR, với các tham chiếu nội bộ được liên kết đúng.
auditing-deid-leakage
5.8kQuét văn bản lâm sàng đã khử nhận dạng để tìm định danh còn sót như SSN, số thẻ, email và ngày tháng, và chặn phát hành nếu còn sót.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.