Files
doczyai-pipelines/fieldExtraction
Mayank Aamseek c4219ad6dc Merged in methodology_breakout_test (pull request #438)
Methodology breakout test

* initial commit

* added test_methodology_breakout jupyter file

* added test methodology breakout files

* methodology breakout testing

* removed duplicate file methodology_breakout_prediction2.py

* added AARETE_DERIVED_FEE_SCHEDULE_VERSION

* fixed CONTRACT_REIMBURSEMENT_PERCENT_RATE prompt

* moved test breakout files to testbed

* cleaned label df

* updated prompts for methodology breakout

* updated methodology breakout prompts

* accuracy calc. fixed

* updated valid reimbursement methodologies

* Merge branch 'main' into methodology_breakout_test
merged main

* dofr fix

* accuracy fix

* AWP, WAC and ASP to MedRx update

* prompt updated for UNIT_OF_MEASURE_FOR_FLAT_RATE

* fixed issues raised in mr

* Medicare Member Cost Share fixed

* Merge branch 'main' into methodology_breakout_test
merged changes from main


Approved-by: Alex Galarce
2025-03-17 18:31:51 +00:00
..

Field Extraction

Running the Code

This project uses Python's module system for imports. To run the code properly:

  1. DO NOT run files directly like this:

    python src/client/main.py  # ❌ This won't work
    
  2. INSTEAD, use Python's module flag (-m) from the project root:

    python -m src.client.main  # ✅ This is correct
    

Why?

The code uses absolute imports (e.g., from src.utils import llm_utils) to maintain a clear and consistent package structure. Running with python -m ensures Python can properly resolve these imports.

Development

  • All imports should use the src. prefix (e.g., from src.utils import llm_utils)
  • Always run code from the project root directory using the -m flag
  • Tests are configured to handle these imports automatically via pytest settings in pyproject.toml

Configuration

The project uses poetry for dependency management and pytest for testing. Key configurations in pyproject.toml:

[tool.pytest.ini_options]
pythonpath=["."]
testpaths = [
    "tests"
]

Dependencies

To install dependencies:

poetry install

To run tests:

poetry run pytest

To run type checking:

poetry run mypy .