Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESRD CY21.2 Mainframe Pricer - Reverse Engineering Artifacts

CMS ESRD PPS Pricer v2021.2 — COBOL mainframe source code that calculates Medicare reimbursement for dialysis facility claims. Prices outpatient dialysis treatments for patients with End-Stage Renal Disease under the Prospective Payment System. Includes historical calculation modules spanning rate years 2005–2021, a driver program, bundled services logic, copybooks for bill input/output, base rates, and wage indices. This repo contains reverse‑engineered artifacts derived from the COBOL, organized for claims and policy experts as well as engineers.

This repository contains both the original legacy COBOL source code for the Center for Medicare and Medicaid Services (CMS) End-Stage Renal Disease (ESRD) CY21.2 Pricer and the comprehensive suite of reverse-engineered artifacts generated from analyzing this codebase.

Project Objective and Scope

The goal of this project was to reverse‑engineer the ESRD PPS pricer logic from the full CY21.2 COBOL codebase and produce SME‑readable rule documentation with traceability back to COBOL and policy sources.

Reverse‑engineered scope includes:

  • Driver routing and validation logic.
  • Wage index lookups and overrides.
  • CY2021.2 pricing rules (patient‑level and facility‑level adjustments, add‑ons, reductions, outliers).
  • Historical calculation modules for prior years (2005–2020 logic retained for legacy claims).
  • Reference tables and copybooks needed to interpret inputs and outputs.

Out of scope:

  • Execution environment details (mainframe job control, file transfer, scheduling, JCL, runtime parameters).
  • External system integration behavior beyond claim I/O contracts (e.g., FISS orchestration, upstream edits).
  • UI, operational workflows, or reimbursement appeal processes.
  • Non‑COBOL policy interpretation not encoded in the pricer (policy text is cited only where it maps to COBOL logic).

Generated Assets

The generated assets are organized into three primary directories:

1. docs/ - Human Readable Documentation

These artifacts explain the system and business rules for human Subject Matter Experts (SMEs), Business Analysts, and Software Engineers. Start here for a guided index: docs/README.md.

2. gherkin_rules/ - Machine Readable Business Logic (Gherkin)

These files are the authoritative, SME-readable rule specifications in Gherkin (.feature). They are denormalized and intent-focused, avoiding COBOL control flow.

3. rules/ - Legacy YAML Artifacts (Deprecated)

These files are legacy outputs from earlier iterations and are retained only for migration reference. They are no longer the active DSL.

4. scripts/ - Validation & Tooling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages