Chuyển đến nội dung
Skillpedia
Bảo mật5.8k · #14670

auditing-part11-trails

Skill này làm gì

Skill này xây dựng và kiểm tra nhật ký kiểm toán mà các quy trình lâm sàng và thử nghiệm được quản lý cần, cho thấy ai đã làm gì, khi nào và bản ghi có bị thay đổi hay không. Dành cho các nhóm chạy xử lý trong môi trường được FDA quản lý như thử nghiệm lâm sàng.

Khi nào nên dùng

  • ✓Khi một quy trình OpenMed chạy trong môi trường được quản lý hoặc đã xác nhận và mỗi hành động phải được ghi lại.
  • ✓Khi một bước xử lý cần chữ ký điện tử kèm ý nghĩa, người ký và dấu thời gian.
  • ✓Khi bạn phải kiểm tra rằng một nhật ký kiểm toán đã lưu không bị thay đổi.

Liên kết skill

https://github.com/maziyarpanahi/openmed/blob/master/skills/auditing-part11-trails/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/maziyarpanahi/openmed/blob/master/skills/auditing-part11-trails/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Quy trình thử nghiệm của chúng tôi phải giữ nhật ký kiểm toán đáp ứng 21 CFR Part 11. Hãy thiết lập để mỗi lần chạy ghi lại ai đã chạy và khi nào, kèm chữ ký chống giả mạo.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent bọc báo cáo kiểm toán khử nhận dạng bằng thông tin về người thực hiện, dấu thời gian và chữ ký, rồi cung cấp cách kiểm tra nhật ký đã lưu về sau.

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.

Auditing 21 CFR Part 11 trails for OpenMed pipelines

In FDA-regulated GxP work (GCP clinical trials, GLP, GMP) any electronic record used to support a regulatory decision must meet 21 CFR Part 11: it has to be attributable (who), contemporaneous and time-stamped (when), describe what changed, be tamper-evident, and — where a signing event occurs — carry a controlled electronic signature. These map onto the ALCOA+ data-integrity expectations (Attributable, Legible, Contemporaneous, Original, Accurate, +Complete/Consistent/Enduring/Available).

OpenMed's deidentify(..., audit=True) already emits a deterministic, PHI-free AuditReport that you can .sign() (HMAC-SHA256) and later .verify(). That gives you the tamper-evidence and attribution primitives; this skill wraps them in the who/when/what/e-signature envelope Part 11 wants.

This is a compliance-enablement aid. Part 11 compliance also requires validated systems (CSV), SOPs, and access controls that live outside any single library — a QA/validation lead signs off.

When to use

  • OpenMed runs inside a validated/GxP environment and each run must leave an attributable, tamper-evident record.
  • You need to wrap an OpenMed AuditReport with who/when/what + an e-signature manifestation (meaning, signer, timestamp).
  • You must verify a stored trail hasn't been altered, or produce CSV evidence for an inspection.

How OpenMed's AuditReport maps to Part 11

Part 11 expectation 21 CFR cite OpenMed mechanism
Tamper-evident, accurate copies 11.10(b),(c) AuditReport.to_json() + repro_hash over the canonical payload
Audit trail: what changed, when 11.10(e) AuditReport.spans (action per identifier), input_hash/deidentified_text_hash, openmed_version, manifest_hash
Operational/authority checks; attribution 11.10(d),(g) AuditSignature.key_id (signer/key identity) + your envelope's user id
Signature manifestation (name, date, meaning) 11.50 Your envelope fields signer, signed_at, meaning
Signature/record linking, non-repudiation 11.70, 11.200 HMAC-SHA256 over the canonical payload via .sign() / .verify()

The HMAC binds the signature to that exact report content: any later edit to a span, hash, or field changes repro_hash, so .verify() fails — that is the tamper-evidence.

Quick start

import openmed, json, datetime as dt

note = "Subject S-014 (DOB 1962-08-09) reported headache on 2024-05-01."

# 1) Produce the deterministic, PHI-free audit record for this processing step.
report = openmed.deidentify(note, policy="hipaa_safe_harbor", audit=True)

# 2) Sign it with a controlled release key (stored in a vault / HSM, never in code).
report.sign(b"<release-hmac-key>", key_id="omv-signer-2026")

# 3) Wrap in a Part 11 envelope: who / when / what / signature meaning.
trail = {
    "record": report.to_dict(),              # tamper-evident, no PHI
    "who": "j.smith@sponsor.example",        # authenticated user (your IdP)
    "when": dt.datetime.now(dt.timezone.utc).isoformat(),
    "what": "PHI de-identification of source narrative (study X, subject S-014)",
    "signature_manifestation": {             # 21 CFR 11.50
        "signer_printed_name": "Jane Smith",
        "meaning": "reviewed and approved",
        "signed_at": dt.datetime.now(dt.timezone.utc).isoformat(),
    },
    "system": {"openmed_version": report.openmed_version,
               "manifest_hash": report.manifest_hash},
}
with open("part11_trail.json", "w") as fh:
    json.dump(trail, fh, indent=2, sort_keys=True)

# 4) Later — verify integrity (optionally bind to the exact source/output text).
ok = report.verify(b"<release-hmac-key>", original_text=note)
assert ok, "AUDIT TRAIL TAMPERED OR KEY MISMATCH"

Workflow

  1. Authenticate the actor in your own IdP/access system (Part 11 needs unique IDs and operational checks — outside the library). Capture the user id.
  2. Run the processing step with audit=True to get the deterministic record.
  3. Sign with a controlled release key from a vault/HSM; record key_id. Never embed the key in source or the trail.
  4. Build the Part 11 envelope — who, when (UTC, contemporaneous), what, and the signature manifestation (printed name, meaning, timestamp) per 11.50.
  5. Append, never overwrite. Store trails write-once (WORM / append-only store). The audit t
Câu hỏi thường gặp

Skill này có tự làm hệ thống tuân thủ không?

Không. Tuân thủ Part 11 cũng cần hệ thống đã xác nhận, quy trình và kiểm soát truy cập, và phải được trưởng nhóm chất lượng phê duyệt.

Các bản ghi tuân theo chuẩn nào?

Các bản ghi được thiết kế theo các nguyên tắc toàn vẹn dữ liệu ALCOA+, như có thể quy được cho người làm và ghi lại đúng thời điểm.

Có cần chữ ký điện tử không?

Chỉ khi có một sự kiện ký xảy ra. Skill bao quát các chi tiết chữ ký khi chúng áp dụng.

Chi tiết

Mô tả gốc của tác giả

Generates and verifies 21 CFR Part 11-style audit trails — who/what/when, electronic signatures, and tamper-evidence — for OpenMed pipelines in GxP and clinical-trial (GCP) settings. Use when the user runs OpenMed in a regulated/validated environment and needs an attributable, time-stamped, tamper-evident record of each processing action, electronic-signature manifestations, or computer-system-validation (CSV) evidence. Trigger keywords: 21 CFR Part 11, Part 11, audit trail, electronic signature, e-signature, GxP, GCP, GLP, GMP, CSV, computer system validation, data integrity, ALCOA, tamper-ev

repo: maziyarpanahi/openmed

Độ phổ biến

Sao GitHub
5.8k
Vị trí xếp hạng
#14670
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự