Skip to content

feat: add abdominal X-ray study - #116

Merged
maxirmx merged 1 commit into
mainfrom
v0150
Sep 4, 2026
Merged

maxirmx merged 1 commit into
mainfrom
v0150

Conversation

@maxirmx

@maxirmx maxirmx commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • add the 26-section structured Рентгенография брюшной полости catalog with stable abdominal X-ray IDs
  • model the four independent checkbox groups, five composite choice ranges, conditional continuations, and automatic hidden-branch cleanup
  • cover normalization, validation, editor interactions, API round trips, read-only history, search, responsive hierarchy, and end-to-end persistence
  • include the existing 0.15.0 package/version changes

Validation

  • npm run lint:check
  • npm test (505 tests)
  • npm run build
  • npm run coverage (new catalog: 100% statements/functions/branches)
  • npm run test:e2e:compose (2 passed)

Closes #114

@maxirmx
maxirmx requested a lite review from Copilot September 4, 2026 13:01
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.25%. Comparing base (20090a2) to head (e4fc200).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
+ Coverage   94.16%   94.25%   +0.09%     
==========================================
  Files          76       77       +1     
  Lines        6833     6853      +20     
  Branches     2373     2910     +537     
==========================================
+ Hits         6434     6459      +25     
+ Misses        394      389       -5     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The new study type is consistently wired into the contracts catalog and is backed by broad unit + E2E coverage across validation, editor behavior, history rendering, and search indexing.

Pull request overview

Adds a new structured instrumental study type for abdominal X-ray to the contracts catalog and extends unit/e2e coverage so the study can be edited, validated, indexed for search, round-tripped through the API, and rendered in history.

Changes:

  • Introduces the Рентгенография брюшной полости study catalog (26 top-level findings) with composite selection sets, multi-select checkbox groups, and required continuations.
  • Extends unit tests and E2E flows to cover editor interactions, normalization/validation, history rendering, and encounter search indexing for the new study type.
  • Bumps project/package versions to 0.15.0 and updates lockfile accordingly.
File summaries
File Description
vitest.config.ts Includes the new contracts entrypoint in coverage include globs.
tests/medicalRecordEntry.spec.ts Adds regression test for recursive rendering of abdominal X-ray findings in history.
tests/medicalEncounter.spec.ts Extends encounter search indexing coverage to include abdominal X-ray studies.
tests/instrumentalTestsValidation.spec.ts Adds validation error placement + acceptance tests for abdominal X-ray composite sets/continuations.
tests/instrumentalTestsEditor.spec.ts Adds editor interaction test for abdominal X-ray multi-selects, selection sets, and branch cleanup.
tests/instrumental.spec.ts Verifies catalog structure, selection modes/sets, and normalization rules for abdominal X-ray.
packages/contracts/src/xrayAbdomen.ts New abdominal X-ray finding catalog definition.
packages/contracts/src/instrumental.ts Registers the abdominal X-ray study in INSTRUMENTAL_STUDY_CATALOG.
packages/contracts/package.json Bumps contracts package version to 0.15.0.
package.json Bumps workspace version to 0.15.0.
package-lock.json Lockfile updates for version bump and dependency resolution changes.
e2e/operational.spec.ts Adds full end-to-end creation/edit/history/search assertions for abdominal X-ray.
api-node/test/commands.spec.ts Adds command-boundary validation test for abdominal X-ray normalization/labeling.
api-node/package.json Bumps API package version to 0.15.0.
Review details
  • Files reviewed: 13/14 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@maxirmx
maxirmx merged commit a1d413b into main Sep 4, 2026
7 checks passed
@maxirmx
maxirmx deleted the v0150 branch September 4, 2026 15:00
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