Opengrouper
C+ 78 completed
Other
cli / json · small
75
Files
33,261
LOC
1
Frameworks
7
Languages
Pipeline State
completedRun ID
#1546208Phase
doneProgress
0%Started
2026-04-16 23:50:51Finished
2026-04-16 23:50:51LLM tokens
0Pipeline Metadata
Stage
CatalogedDecision
proceedNovelty
48.73Framework unique
—Isolation
—Last stage change
2026-05-10 03:34:57Deduplication group #47901
Member of a group with 73 similar repo(s) — canonical #187625 view group →
Repobility · MCP-ready · https://repobility.com
🧪 Code Distillation
Browse all specs →AI Prompt
Create a command-line tool, OpenGrouper, that implements the German aG-DRG grouping algorithm. The tool should allow users to download necessary catalog data for a specified year using a setup command. I need functionality to group a single case using arguments for year, primary diagnosis, secondary diagnoses, procedures, age, gender, and length of stay. Additionally, it must support batch grouping by taking input CSV files for cases, ICD codes, and OPS codes, and outputting results to a CSV. Finally, please provide a Python API example demonstrating how to instantiate the grouper and process a case object.
python cli json g-drg healthcare algorithm data-processing medical
Generated by gemma4:latest
Catalog Information
Create a command-line tool, OpenGrouper, that implements the German aG-DRG grouping algorithm. The tool should allow users to download necessary catalog data for a specified year using a setup command. I need functionality to group a single case using arguments for year, primary diagnosis, secondary diagnoses, procedures, age, gender, and length of stay. Additionally, it must support batch grouping by taking input CSV files for cases, ICD codes, and OPS codes, and outputting results to a CSV. Fi
Tags
python cli json g-drg healthcare algorithm data-processing medical
Quality Score
C+
77.5/100
Structure
83
Code Quality
73
Documentation
63
Testing
75
Practices
78
Security
100
Dependencies
90
Strengths
- CI/CD pipeline configured (github_actions)
- Good test coverage (37% test-to-source ratio)
- Code linting configured (ruff (possible))
- Consistent naming conventions (snake_case)
- Good security practices — no major issues detected
- Properly licensed project
Weaknesses
- 451 duplicate lines detected — consider DRY refactoring
Recommendations
- Address 23 TODO/FIXME items — consider tracking them as issues
Languages
Frameworks
pytest
Symbols
variable200
function105
constant97
method51
class35
property11
API Endpoints (23)
| Method | Path | Handler | Framework | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | / | index | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| POST | /api/group | api_group_legacy | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/icd/all | icd_all | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/icd/chapters | icd_chapters | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/icd/{code}/details | icd_details | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/icd/search | icd_search_legacy | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/ops/all | ops_all | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/ops/chapters | ops_chapters | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/ops/{code:path}/details | ops_details | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /api/ops/search | ops_search_legacy | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| POST | /api/pepp/group | api_pepp_group | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /catalogs | list_catalogs | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /codes | codes_browser | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /drg/{drg_code} | drg_info | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| POST | /group | group_single | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| POST | /group/batch | group_batch | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /health | health | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /icd/{icd_code} | icd_info | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /icd/search | icd_search | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /ops/{ops_code} | ops_info | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /ops/search | ops_search | Python | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /pepp | pepp_form | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| GET | /single | single_form | FastAPI/Flask | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Methodology: Repobility · https://repobility.com/research/state-of-ai-code-2026/
Embed Badge
Add to your README:
BinComp Dependency Hardening
All packages →5 of this repo's dependencies have been scanned for binary hardening. Grade reflects RELRO / stack canary / FORTIFY / PIE coverage.