Spaces:
Sleeping

chraos Claude Opus 4.7 (1M context) commited on
Commit
c6cfe5f
·
0 Parent(s):

Initial scaffold: HCC-MEAT Coder v0.1.0

Browse files

End-to-end runnable pipeline with rule-based baselines in place of ML
components, a FastAPI backend serving a React three-panel UI, and a 10-case
regression suite guarding the invariants from AGENT_BRIEF.md §3 (faithfulness,
negation/family-history filtering, hierarchy trumping, transparent risk).

Deterministic components (real, tested):
- E — HCC crosswalk + trumping over CMS-HCC v28 seed tables
- H — over-coding (RADV) risk heuristic with named components + reasons
- I — faithfulness verifier (substring guarantee + NLI hook)

Baseline / swappable components:
- A segmenter, B dictionary NER, C negation, D exact/alias linker,
F rule-based MEAT extractor, G identity calibrator

Infra: uv-driven pyproject, ruff + pytest + pre-commit, GH Actions CI for
Python and UI, multi-stage Dockerfile for the HF Docker Space, typer CLIs
for pipeline (`hcc-meat`) and evaluation (`hcc-meat-eval`).

Reference data in data/reference/ uses PLACEHOLDER RAF weights; hydrate via
scripts/fetch_cms_hcc_v28.py (stubbed) before publishing metrics.

See docs/BUILD_LOG.md for the full change record and docs/EVALUATION.md for
the review checklist.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

This view is limited to 50 files because it contains too many changes.   See raw diff
67 files changed +4760
Files changed (50)
.dockerignoreAdded+20
.github/workflows/ci.ymlAdded+42
.gitignoreAdded+64
.pre-commit-config.yamlAdded+16
AGENT_BRIEF.mdAdded+381
DockerfileAdded+47
README.mdAdded+118
app/__init__.pyAdded+3
app/api/__init__.pyAdded
Empty file
app/api/server.pyAdded+121
app/cli.pyAdded+95
app/pipeline/__init__.pyAdded+30
app/pipeline/components/__init__.pyAdded
Empty file
app/pipeline/components/a_segmenter.pyAdded+81
app/pipeline/components/b_ner.pyAdded+152
app/pipeline/components/c_negation.pyAdded+125
app/pipeline/components/d_linker.pyAdded+144
app/pipeline/components/e_crosswalk.pyAdded+192
app/pipeline/components/f_meat.pyAdded+190
app/pipeline/components/g_calibrator.pyAdded+70
app/pipeline/components/h_risk.pyAdded+103
app/pipeline/components/i_verifier.pyAdded+117
app/pipeline/orchestrator.pyAdded+124
app/pipeline/types.pyAdded+146
data/reference/PROVENANCE.mdAdded+43
data/reference/hcc_v28_crosswalk.csvAdded+55
data/reference/hcc_v28_hierarchy.csvAdded+12
data/reference/hcc_v28_labels.csvAdded+17
data/reference/icd10_cm_descriptions.csvAdded+55
docs/ARCHITECTURE.mdAdded+100
docs/BUILD_LOG.mdAdded+157
docs/CLAUDE.mdAdded+59
docs/EVALUATION.mdAdded+107
docs/MODEL_CARD_TEMPLATE.mdAdded+48
eval_harness/__init__.pyAdded+7
eval_harness/cli.pyAdded+113
pyproject.tomlAdded+71
scripts/fetch_cms_hcc_v28.pyAdded+49
tests/__init__.pyAdded
Empty file
tests/fixtures/__init__.pyAdded
Empty file
tests/fixtures/regression_suite.jsonAdded+132
tests/fixtures/schema.pyAdded+45
tests/test_crosswalk.pyAdded+83
tests/test_reference_data.pyAdded+81
tests/test_regression_suite.pyAdded+88
tests/test_risk_heuristic.pyAdded+115
tests/test_segmenter_and_negation.pyAdded+85
tests/test_verifier.pyAdded+78
ui/.eslintrc.cjsAdded+17
ui/.prettierrc.jsonAdded+6