Skip to content

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

Open
olehokilko-alt wants to merge 1 commit intoOpen-scribe:mainfrom
olehokilko-alt:feat/verification-library
Open

feat(pipeline): add standalone clinical note verification library#30
olehokilko-alt wants to merge 1 commit intoOpen-scribe:mainfrom
olehokilko-alt:feat/verification-library

Conversation

@olehokilko-alt
Copy link

@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.

- 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.
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.

1 participant