Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 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.0and 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.
Summary
Рентгенография брюшной полостиcatalog with stable abdominal X-ray IDsValidation
npm run lint:checknpm test(505 tests)npm run buildnpm run coverage(new catalog: 100% statements/functions/branches)npm run test:e2e:compose(2 passed)Closes #114