Commit Graph

15 Commits

Author SHA1 Message Date
Katon Minhas 23af15306b Merged in feature/new-model-testing (pull request #741)
Feature/new model testing

* rename and set up

* Setup

* Get dynamic primary crosswalked answers

* Generate stats for one file

* Update dynamic primary evaluation

* Multithreading

* Set up reimbursement primary evaluation

* UPdate output report generation

* Update TN calculation

* update poetry lock

* reorder reimb primary

* evaluate 3 models

* Configure 4.5

* switch to debug logging

* update type checking

* Fix mypy

* Resolve mypy

* Merged main into feature/new-model-testing


Approved-by: Karan Desai
2025-10-22 16:46:28 +00:00
Sha Brown c56270c951 Merged in feature/field_type_config (pull request #731)
Feature/field type config

* Added field type procesing conditional logic

* Updated field type naming convention in config.py; Updated date_postprocessing to avoid column key missing issue

* Cleaned up code; Move merging functionality to one to one processing block

* Merged main into feature/field_type_config


Approved-by: Katon Minhas
2025-10-13 18:54:10 +00:00
Katon Minhas a910f27cd2 Merged in bugfix/mi-dynamic (pull request #726)
Bugfix/mi dynamic

* Refactor - split out one_to_n_cleaning

* Rework postprocess

* Update postprocessing - fill dynamic values if there is only 1 non-empty value

* Update to use string_utils

* Group by AARETE_DERIVED_LOB as well

* Update crosswalk mapping to handle | lists

* Update constants - run with MI flag


Approved-by: Siddhant Medar
2025-10-07 15:06:10 +00:00
Alex Galarce 9cadef9795 Merged in feature/one-to-one-funcs-docs-and-cleanup (pull request #720)
Feature/one to one funcs docs and cleanup

* Refactor imports and remove unused filter_payer_from_providers function

* Update docstring for date_postprocessing function to clarify processing steps

* Augment docstrings for check_and_update_effective_date and run_full_context_fields

* Enhance docstring for one_to_one_breakout function to clarify processing steps and side effects

* remove unused import and augment docstrings


Approved-by: Katon Minhas
2025-10-02 17:02:17 +00:00
Alex Galarce 674add9a3e Merged in feature/black-and-isort (pull request #717)
Feature/black and isort

* black and isort constants

* black and isort codes

* black and isort crosswalks

* black and isort investment

* black and isort prompts

* isort testbed

* isort tracking

* black and isort utils

* poetry and black tests


Approved-by: Katon Minhas
2025-09-30 20:56:02 +00:00
Katon Minhas f12d753b92 Merged in bugfix/fee-schedule (pull request #712)
Bugfix/fee schedule

* Initialize grouper pct and base rate prmopts

* Update postprocessing

* Merged main into bugfix/fee-schedule

* Prep for merge


Approved-by: Alex Galarce
2025-09-24 22:05:54 +00:00
Alex Galarce 0320d6633a Merged in bugfix/lob-fixes (pull request #692)
Bugfix/lob fixes

* Refactor update_lob_for_duals and update_grouper_base_rate_and_grouper_pct_rate functions for improved clarity and logic; add handling for 'neither' and 'n/a' cases.

* Change logging level from info to debug for various functions to reduce log verbosity.


Approved-by: Katon Minhas
2025-09-03 20:29:43 +00:00
Mayank Aamseek 24bf442086 Merged in bugfix/dynamic_function_error (pull request #689)
Bugfix/dynamic function error

* checking dynamic fields

* field not found error fixed

* logs for debugging added


Approved-by: Katon Minhas
2025-09-02 22:01:30 +00:00
Mayank Aamseek 94251faa03 Merged in feature/grouper-fields (pull request #658)
Feature/grouper fields

* prompt changes

* print statements removed

* merged with main

* merge issue fixed

* updated grouper prompts

* updated grouper fields in fields order

* updated breakout prompt

* Merged main into feature/grouper-fields

* reverted grouper cd prompt

* updated goruper severity prompt

* Merge remote-tracking branch 'origin/main' into feature/grouper-fields

* updated grouper breakout function

* error fixes

* Merged main into feature/grouper-fields

* Merged main into feature/grouper-fields

* updated grouper_pct_rate and grouper_base_rate

* removed empty array post processing fix

* Merged main into feature/grouper-fields

* post-processing for grouper rate modified

* updated grouper type prompt

* Merged main into feature/grouper-fields

* grouper version prompt updated

* Merged main into feature/grouper-fields

* OPPS as APC

* Merged main into feature/grouper-fields


Approved-by: Katon Minhas
2025-08-26 15:43:53 +00:00
Alex Galarce 7038a92d10 Merged in bugfix/medicare-advantage-duals (pull request #674)
Bugfix/medicare advantage duals

* Add logging for debugging in crosswalk utilities and mapping functions

* Add debug logging for crosswalk processing and mapping in get_crosswalk_fields

* Add logging for dual LOB check prompts and responses in update_lob_for_duals

* Enhance dual LOB check logic to ensure PROGRAM and PRODUCT fields are empty before proceeding

* Update dual LOB check to use AARETE_DERIVED fields for validation

* Refactor logging in fill_na_mapping and get_crosswalk_fields for clarity and conciseness

* Remove debug logging from get_lob_relationship for cleaner output

* Remove debug logging from apply_crosswalk for cleaner execution


Approved-by: Katon Minhas
2025-08-21 15:19:53 +00:00
Alex Galarce b2a0dc4b60 Merged in bugfix/uom (pull request #661)
Bugfix/uom

* Add "Per Procedure" to valid unit of measure list

* Enhance unit of measure prompt for clarity and specificity in reimbursement methodologies

* Refine unit of measure prompt to ensure defaulting to 'Per Unit' regardless of procedure codes for flat rate methodologies

* Merge remote-tracking branch 'origin/main' into bugfix/uom

* Merged main into bugfix/uom

* Enhance logic for setting UNIT_OF_MEASURE to 'Per Unit' for Flat Rate reimbursement, handling all edge cases including NaN and empty strings.

* Enhance is_empty function to handle additional empty value cases for pd.Series and strings

* Enhance test cases for is_empty function to cover additional whitespace and null-like values

* Merge branch 'bugfix/uom' of https://bitbucket.org/aarete/doczy.ai into bugfix/uom

* Enhance type checking for is_empty function with overloads for str, list, and pd.Series

* Overload fix

* Merged main into bugfix/uom


Approved-by: Katon Minhas
2025-08-13 14:51:46 +00:00
Katon Minhas 46be909642 Merged in bugfix/dynamic-primary-issues (pull request #657)
Bugfix/dynamic primary issues

* Refactor TRIGGER_CAP special case configuration to utilize only trigger cap questions for two-stage processing

* Refactor get_special_cases to improve handling of N/A responses and merge methodology results with special case results

* Fix field type in get_special_cases for fee schedule breakout configuration

* Create fieldset.py - refactor

* Fix placeholders

* string concatenate new questions

* Update trigger cap questions output format

* Update TRIGGER_CAP_THRESHOLD_AMT prompt for clarity and specificity in reimbursement methodology

* Update constants class

* Update Field class

* Resolve constants passing

* Update field class - change Null criteria

* Add default

* Enhance documentation for get_special_cases function with detailed processing flow and architecture decisions

* Enhance get_special_cases and run_trigger_cap_breakout functions with detailed docstrings for clarity on processing methodologies

* Update constants passing

* Fix questions

* Update fs and mb questions"

* pass constanst correctly for dynamic

* Merge branch 'feature/trigger_cap_breakout' into bugfix/dynamic-primary-issues

* update constants

* only add questions if present

* ensure answer is a valid special_case

* Fix unit tests

* Remove test file


Approved-by: Alex Galarce
2025-08-11 20:47:52 +00:00
VenkataKrishna Reddy Avula 0d774acf7a Merged in bugfix/reimb_dates (pull request #649)
Bugfix/reimb dates to Main

* added reimb dates split

* Merged main into bugfix/reimb_dates

* prompt changes

* added to postprocessing

* fixed key issues

* modified split function

* removed print statements

* Merge branch 'main' into bugfix/reimb_dates

* update import

* moved split date upstream

* moved split dates to one to n funcs

* Merged main into bugfix/reimb_dates


Approved-by: Katon Minhas
2025-08-06 19:38:34 +00:00
Katon Minhas 73e43f1c65 Merged in refactor/update-claude-models (pull request #650)
Refactor/update claude models

* Revert prompts

* Remove qa_qc tests

* Remove valid lines

* model aliasing

* Haiku alias

* remove erroneous import


Approved-by: Alex Galarce
2025-08-06 15:06:49 +00:00
Katon Minhas c4e519894b Merged in refactor/one-time-io (pull request #648)
Refactor/one time io

* Delete client work

* Streamline imports

* Fix list class

* Update tests

* Clear code funcs test

* Fix unit tests

* Single read code funcs

* Single-read model

* Single-load embeddings

* Successful E2E test

* update unit tests

* Update importsg

* Reload poetry.lock

* remove old exhibit header function

* Remove aarete_derived generic function

* remove align and format tables

* Remove strings to dict

* references

* Clear code

* Move preprocessing_funcs

* remove keywords

* refactor postprocessing_funcs

* Pass unit test - remove qa_qc directory

* Black and isort

* remove print


Approved-by: Alex Galarce
2025-08-05 20:46:19 +00:00