Skip to content

feat(cases): code evidence explorer — color-coded expression results + declared value sets#65

Merged
Taleef7 merged 1 commit into
mainfrom
feat/case-code-explorer
Jun 8, 2026
Merged

feat(cases): code evidence explorer — color-coded expression results + declared value sets#65
Taleef7 merged 1 commit into
mainfrom
feat/case-code-explorer

Conversation

@Taleef7
Copy link
Copy Markdown
Owner

@Taleef7 Taleef7 commented Jun 8, 2026

Summary

  • New endpoint GET /api/measures/versions/{measureVersionId}/value-sets returns value sets linked to a specific measure version (needed by the case detail page, which only has the version UUID — not the measure UUID)
  • Case detail page loads linked value sets after the case resolves and renders a new "Declared value sets" panel
  • Expression results list replaced with color-coded chips: green ✓/✗ for booleans, blue 📅 for dates, orange for positive numeric defines, amber badge for the Outcome Status define, muted "not found" for null results

What changed

File Change
MeasureService.java New listValueSetsByVersionId(UUID measureVersionId) — same SQL as private method, takes version UUID directly
MeasureController.java New GET /api/measures/versions/{measureVersionId}/value-sets endpoint
cases/[id]/page.tsx LinkedValueSet type; linkedValueSets state loaded after case resolves; code explorer panel with color-coded chips + declared value sets panel

Test plan

  • ./gradlew.bat compileJava compileTestJava — BUILD SUCCESSFUL
  • npm run build — ✓ Compiled successfully
  • Manual: open a flagged case → Why Flagged section shows color-coded define chips + Declared value sets panel with OIDs and code count

🤖 Generated with Claude Code

Adds a value-set / why-flagged code explorer to the case detail page.

Backend: new public MeasureService.listValueSetsByVersionId() + endpoint
GET /api/measures/versions/{measureVersionId}/value-sets — returns the
value sets linked to a specific measure version (same SQL as the private
listAttachedValueSets but takes a version UUID directly so the case detail
page can call it without a measure-level lookup).

Frontend: the case detail page loads linked value sets after the case detail
resolves and renders them in a new "Declared value sets" panel alongside the
expression results. The expression results list now shows color-coded chips:
- green ✓/✗ for boolean defines
- blue 📅 for date defines
- orange for positive numeric defines (days-overdue)
- amber badge for the Outcome Status define
- "not found" in muted style for null results

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
workwell-measure-studio Ready Ready Preview, Comment Jun 8, 2026 3:19pm

@Taleef7 Taleef7 merged commit 67ea5e7 into main Jun 8, 2026
30 checks passed
@Taleef7 Taleef7 deleted the feat/case-code-explorer branch June 8, 2026 17:20
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