Skip to content

Add a HIPAA Safe Harbor attestation report generator - #1639

Merged
maziyarpanahi merged 2 commits into
masterfrom
feature/om-514-hipaa-safe-harbor-attestation-report
Jul 22, 2026
Merged

maziyarpanahi merged 2 commits into
masterfrom
feature/om-514-hipaa-safe-harbor-attestation-report

Conversation

@maziyarpanahi

@maziyarpanahi maziyarpanahi commented Jul 17, 2026 •

Copy link
Copy Markdown
Owner

Description

Adds a local HIPAA Safe Harbor attestation generator over PHI-safe de-identification audit reports. The artifact enumerates all 18 identifier categories, maps canonical labels and policy actions, aggregates detections and applied actions, flags uncovered or kept categories for expert review, and binds the result to verified source and attestation hashes without exposing span content.

Type of Change

  • New feature
  • Documentation update
  • Test addition/improvement

Changes Made

  • Added the Safe Harbor category mapping and deterministic attestation schema.
  • Added openmed compliance safe-harbor for offline JSON generation, including the uniform --json command envelope.
  • Rejects forged audit-report hashes and keeps untrusted audit fields out of user-facing errors.
  • Added privacy, integrity, residual-risk, mapping, and CLI coverage.
  • Added usage and coverage documentation to the docs navigation.

Testing

  • .venv/bin/python -m pytest tests/ -q — 6111 passed, 48 skipped
  • Focused audit/compliance/CLI suite — 41 passed
  • make format
  • make lint
  • make format-check
  • make type-check
  • make docs-build
  • python3 -m build
  • Scoped pre-commit validation for all PR files

Documentation

  • Added the HIPAA Safe Harbor attestation guide.
  • Added Google-style docstrings for the public API.
  • No changelog update required for this focused feature PR.

Dependencies

  • No new dependencies.

Related Issues

Closes #872

Screenshots/Examples

The documentation includes offline CLI examples and the emitted JSON contract.

@maziyarpanahi maziyarpanahi added roadmap-v2 OpenMed V2 roadmap backlog feature New capability P1 High labels Jul 17, 2026
@maziyarpanahi
maziyarpanahi force-pushed the feature/om-514-hipaa-safe-harbor-attestation-report branch from 77776a7 to 6640214 Compare July 22, 2026 04:47
@maziyarpanahi

Copy link
Copy Markdown
Owner Author

Ready to merge after maintainer validation. I rebased this onto the current master and tightened the compliance path so forged audit hashes are rejected, malformed audit fields cannot leak through errors, and the command follows the uniform JSON/error contract. The full local suite passed (6,111 passed, 48 skipped), focused coverage passed (41 tests), strict docs/package/lint/type/pre-commit gates passed, and the fresh hosted matrix is fully green including both container architectures. Squash-merging now.

@maziyarpanahi
maziyarpanahi merged commit 95376dc into master Jul 22, 2026
20 checks passed
@maziyarpanahi
maziyarpanahi deleted the feature/om-514-hipaa-safe-harbor-attestation-report branch July 22, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New capability P1 High roadmap-v2 OpenMed V2 roadmap backlog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a HIPAA Safe-Harbor attestation report generator

1 participant