Opengrouper

C+ 78 completed
Other
cli / json · small
75
Files
33,261
LOC
1
Frameworks
7
Languages

Pipeline State

completed
Run ID
#1546208
Phase
done
Progress
0%
Started
2026-04-16 23:50:51
Finished
2026-04-16 23:50:51
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
48.73
Framework unique
Isolation
Last stage change
2026-05-10 03:34:57
Deduplication group #47901
Member of a group with 73 similar repo(s) — canonical #187625 view group →
Repobility · MCP-ready · https://repobility.com

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

json
77.3%
python
17.8%
html
3.4%
markdown
1.0%
yaml
0.2%
toml
0.1%
shell
0.1%

Frameworks

pytest

Symbols

variable200
function105
constant97
method51
class35
property11

API Endpoints (23)

Source: Repobility analyzer (https://repobility.com)
MethodPathHandlerFramework
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)
GET/indexFastAPI/Flask
POST/api/groupapi_group_legacyFastAPI/Flask
GET/api/icd/allicd_allFastAPI/Flask
GET/api/icd/chaptersicd_chaptersFastAPI/Flask
GET/api/icd/{code}/detailsicd_detailsFastAPI/Flask
GET/api/icd/searchicd_search_legacyFastAPI/Flask
GET/api/ops/allops_allFastAPI/Flask
GET/api/ops/chaptersops_chaptersFastAPI/Flask
GET/api/ops/{code:path}/detailsops_detailsFastAPI/Flask
GET/api/ops/searchops_search_legacyFastAPI/Flask
POST/api/pepp/groupapi_pepp_groupFastAPI/Flask
GET/catalogslist_catalogsPython
GET/codescodes_browserFastAPI/Flask
GET/drg/{drg_code}drg_infoPython
POST/groupgroup_singlePython
POST/group/batchgroup_batchPython
GET/healthhealthPython
GET/icd/{icd_code}icd_infoPython
GET/icd/searchicd_searchPython
GET/ops/{ops_code}ops_infoPython
GET/ops/searchops_searchPython
GET/pepppepp_formFastAPI/Flask
GET/singlesingle_formFastAPI/Flask

Quality Timeline

1 quality score recorded.

View File Metrics
Methodology: Repobility · https://repobility.com/research/state-of-ai-code-2026/

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/1369983.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV

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.
Nclick8.3.2 · 0 gadgets · risk 0.0Nfastapi0.135.3 · 0 gadgets · risk 0.0Nopenpyxl3.1.5 · 0 gadgets · risk 0.0Npydantic2.12.5 · 0 gadgets · risk 0.0Nuvicorn0.44.0 · 0 gadgets · risk 0.0