Skip to content

Add PPTX slide and speaker-notes redaction - #2173

Merged
maziyarpanahi merged 4 commits into
batch/maziyarpanahi-v22-documents-2026-08-13from
feature/om-503-pptx-slide-notes-redaction
Aug 13, 2026
Merged

Add PPTX slide and speaker-notes redaction#2173
maziyarpanahi merged 4 commits into
batch/maziyarpanahi-v22-documents-2026-08-13from
feature/om-503-pptx-slide-notes-redaction

Conversation

@maziyarpanahi

Copy link
Copy Markdown
Owner

Summary

Adds PPTX ingestion and PHI redaction for slide shapes, table cells, and speaker notes through the multimodal ingest contract.

Changes

  • Extract slide, table-cell, grouped-shape, and speaker-notes text with per-slide and run-level character-offset provenance.
  • Project detected spans back to PowerPoint runs with PHI-safe offset, source-location, confidence, and digest metadata.
  • Optionally write redacted text into a copy of the deck while preserving unaffected run formatting.
  • Register the .pptx handler, expose the public API, document usage, and add the permissive-license dependency metadata.
  • Add synthetic offline acceptance tests for extraction, offset round-tripping, registry dispatch, and write-back.

Root cause

The multimodal ingest contract supported DOCX but had no PPTX adapter, leaving slide text and speaker notes outside the text redaction path.

Validation

  • .venv/bin/python -m pytest tests/unit/multimodal/test_pptx_redact.py tests/unit/multimodal/test_multimodal_extra.py -q — 4 passed, 1 skipped.
  • Scoped Ruff format check passed for all changed Python files.
  • Scoped Ruff lint check passed for all changed Python files.

Synthetic offline data only; embedded images remain out of scope.

Closes #860

…-slide-notes-redaction

# Conflicts:
#	openmed/multimodal/__init__.py
#	scripts/release/check_license_policy.py
@maziyarpanahi maziyarpanahi added roadmap-v2 OpenMed V2 roadmap backlog feature New capability P3 Strategic labels Aug 4, 2026
@maziyarpanahi
maziyarpanahi changed the base branch from master to batch/maziyarpanahi-v22-documents-2026-08-13 August 13, 2026 13:10
@maziyarpanahi
maziyarpanahi merged commit fecab9f into batch/maziyarpanahi-v22-documents-2026-08-13 Aug 13, 2026
3 checks passed
maziyarpanahi added a commit that referenced this pull request Aug 13, 2026
* Ship clinical document and form intake with FHIR SDC output (#2049)

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>

* feat: add PDF table and figure-caption extraction (#2169)

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>

* Add a key-value and form-field extractor to openmed/structured (#2170)

* feat: add key-value form field extractor

* fix: export key-value form field extractor

---------

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>

* Add XLSX cell-level spreadsheet redaction (#2171)

* feat: add XLSX cell-level redaction

* chore: review openpyxl license

* fix: align XLSX redaction with tabular API

---------

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>

* feat: add ODT/ODF text extraction with offset maps (#2172)

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>

* Add PPTX slide and speaker-notes redaction (#2173)

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>

* integration: preserve multimodal and license contracts

---------

Co-authored-by: Maziyar Panahi <5762953+maziyarpanahi@users.noreply.github.com>
@maziyarpanahi

Copy link
Copy Markdown
Owner Author

Integrated via #2687 after exact-head validation. The batch passed 54 focused tests (1 skipped), Ruff checks and format verification, and a strict documentation build; the resulting master tree was verified exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New capability P3 Strategic roadmap-v2 OpenMed V2 roadmap backlog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PPTX slide and notes PHI redaction

1 participant