Skip to content

feat(pipeline): add standalone clinical note verification library#30

Merged
sammargolis merged 2 commits intoOpen-scribe:mainfrom
olehokilko-alt:feat/verification-library
Apr 3, 2026
Merged

feat(pipeline): add standalone clinical note verification library#30
sammargolis merged 2 commits intoOpen-scribe:mainfrom
olehokilko-alt:feat/verification-library

Conversation

@olehokilko-alt
Copy link
Copy Markdown
Contributor

@olehokilko-alt olehokilko-alt commented Feb 28, 2026

Feat(pipeline): add verification module

Adds a standalone verification library at packages/pipeline/verification/.

Basically it checks clinical notes against the source transcript using token matching - sees if the claims in the note are actually supported by what was said.

Whats in here

  • types.ts - types for claims, verdicts, etc
  • verifier.ts - core matching logic (tokenize, overlap calc)
  • note-verifier.ts - main verifyNote() function
  • tests for both

Whats NOT touched

Nothing. This is new code only, no changes to existing files.

  • no tsconfig changes
  • no storage type changes
  • no pipeline wiring

Safe to merge

Its completely isolated. Just a library sitting in its own folder.

Testing

npx tsx --test packages/pipeline/verification/src/__tests__/*.test.ts

13 tests, all pass.

@sammargolis sammargolis self-requested a review as a code owner March 30, 2026 16:05
olehokilko-alt and others added 2 commits April 3, 2026 09:01
- Adds standalone verification library in packages/pipeline/verification/
- Heuristic-based clinical note validation
- 13 unit and integration tests
- No modifications to existing code
- No pipeline integration

This is a minimal, isolated contribution intended as a foundation for possible future integration.
@sammargolis sammargolis force-pushed the feat/verification-library branch from 5764959 to 66ee8ae Compare April 3, 2026 16:02
Copy link
Copy Markdown
Collaborator

@sammargolis sammargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We spoke offline and talked about updating as an optional note verification updated package and included it as such.

@sammargolis sammargolis merged commit 34c712e into Open-scribe:main Apr 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants