Add HL7 message comparison (field-level diff) - #1
Merged
Conversation
Compare two HL7 messages field-by-field with named addresses and status indicators (modified/A-only/B-only). Implemented across all interfaces: core diff module with 21 tests, CLI --diff flag, MCP hl7_diff tool, and web viewer Compare tab with summary bar, filter toggle, and side-by-side component breakdown in the detail panel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The collapsed input area after comparing was only clearable via the small toolbar indicator. Now there's a visible Reset button in the summary bar to clear the comparison and return to the input area. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Highlight the exact changed characters within modified field values using smart truncation that keeps the diff region visible even in long values. Applied in the web diff table, detail panel (raw + component breakdown), and CLI terminal output (ANSI inverse). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--diffflag, and MCPhl7_difftoolhl7view/diff.pywith 21 new tests (63 total, all passing)What's included
hl7view file1.hl7 file2.hl7 --diff(add-eto include identical fields)hl7_diff(message_a, message_b)returns structured JSON diffTest plan
venv/bin/pytest tests/ -v— 63 tests pass🤖 Generated with Claude Code