Commit Graph

394 Commits

Author SHA1 Message Date
Mayank Aamseek 6f1d7d90b4 Merged in hotfix/methodology_breakout_issue_fixes (pull request #456)
Hotfix/methodology breakout issue fixes

* Merge branch 'hotfix/methodology_breakout_issue_fixes' of https://bitbucket.org/aarete/doczy.ai into hotfix/methodology_breakout_issue_fixes
merged with current local changes

* opps methodology added

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes
merged changes from main

* Merged main into hotfix/methodology_breakout_issue_fixes

* duplicate N/A fixed

* Merge branch 'hotfix/methodology_breakout_issue_fixes' of https://bitbucket.org/aarete/doczy.ai into hotfix/methodology_breakout_issue_fixes
merged changes from main

* updated AARETE_DERIVED_REIMB_METHOD prompt

* fee schedule prompt change

* REIMB_PCT_RATE prompt updated

* Merged main into hotfix/methodology_breakout_issue_fixes

* opps moved to grouper

* fee rate format fixed

* removed incentives

* removed funding and additional reimbursement

* separate invalid reimb

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* merged main into current branch

* updated valid reimb and fee_schedule_version

* code structure fix

* code structure fix 2

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* updated methodology breakout fields

* test notebook updated

* Merged main into hotfix/methodology_breakout_issue_fixes


Approved-by: Katon Minhas
2025-04-10 21:59:17 +00:00
Alex Galarce e3cd8372de Merged in feature/new-stop-loss-and-outlier-fields (pull request #474)
Feature/new stop loss and outlier fields

* initial commit; handle term_key cases, add flexibility for service and methodology, set prompt to `null` for term_key filled fields

* prompt changes for all outlier fields

* Merge remote-tracking branch 'origin/main' into feature/new-stop-loss-and-outlier-fields

* reorder columns, rework CD_DESC for outlier, replace redundant column OUTLIER_FIXED_LOSS_THRESHOLD (deprecated by OUTLIER_FIXED_LOSS_CHARGE_THRESHOLD)

* add OUTLIER_MAXIMUM_FREQUENCY prompt for outlier claims cap frequency

* add OUTLIER_RANGE_NBR_DAYS prompt to specify period for calculating outlier payments

* fix term key naming to align with Maria columns

* remove debug print statements

* add Maria stop loss columns

* stop loss prompts


Approved-by: Katon Minhas
2025-04-10 21:54:37 +00:00
Rahul Ailaboina 21e71c4054 Merged in hotfix/molina_files (pull request #473)
Hotfix/molina files

* fix the cpt fields
* None values checking safely

Approved-by: Alex Galarce
2025-04-10 15:34:06 +00:00
Alex Galarce bea96b67cf Merged in hotfix/poetry-lock (pull request #472)
update poetry.lock

* update poetry.lock


Approved-by: Katon Minhas
2025-04-08 21:11:47 +00:00
Alex Galarce 30b75ea14d Merged in feature/reimb_lesser_of_id (pull request #471)
add REIMB_LESSER_OF_ID

* add REIMB_LESSER_OF_ID

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


Approved-by: Katon Minhas
2025-04-08 20:42:19 +00:00
Rahul Ailaboina d6abe44a69 Merged in feature/postprocess-Cleanup (pull request #464)
Feature/postprocess Cleanup

* Added aarete derived

* removed the dev file
* reverted
* Merge branch 'main' into feature/postprocess-Cleanup

* Update poetry lock

* Update poetry and pyproject

* Update poetry

* Update field path

* Update test_date_postprocess

* Update tests

* Merged main into feature/postprocess-Cleanup

* Update test

* Update test

* addedfield_json_path

* minor changes

* removed

* Updated

* minor change

* added llm invoke

* removed unnecessary imports

* add

* self added

* removed comments

* Merged main into feature/postprocess-Cleanup

* Merged main into feature/postprocess-Cleanup


Approved-by: Katon Minhas
2025-04-08 20:14:49 +00:00
Katon Minhas 839f13d934 Merged in hotfix/dynamic-error (pull request #470)
Hotfix/dynamic error

* Bugfix

* update tests


Approved-by: Alex Galarce
2025-04-08 20:13:22 +00:00
Katon Minhas a9da72871e Merged in feature/dynamic-one-to-one (pull request #461)
Feature/dynamic one to one

* Pass N/A to one-to-one

* E2E test passed

* Merged main into feature/dynamic-one-to-one

* Pass ANY non N/A answer to reimbursement-level

* Update test

* Remove test

* Merge branch 'main' into feature/dynamic-one-to-one

* Wrap clean_dates

* Revert postprocess

* Merged main into feature/dynamic-one-to-one

* Merged main into feature/dynamic-one-to-one

* Remove prints


Approved-by: Alex Galarce
2025-04-08 18:29:39 +00:00
Alex Galarce 273d124d09 Merged in feature/na_blank_handling (pull request #460)
Feature/na blank handling

* Update prompts to clarify responses for unknown vs N/A values

* Update code description mapping to differentiate between empty and unknown grouper codes

* Update prompts and code descriptions to standardize 'unknown' to 'UNKNOWN'

* Update PIPE_FORMAT_INSTRUCTIONS to replace 'concept' with 'requested information'

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

* Merged main into feature/na_blank_handling

* Update NPI prompt for clarity and detailed instructions

* Enhance TIN prompt for clarity and detailed identification instructions

* Merged main into feature/na_blank_handling

* Merged main into feature/na_blank_handling


Approved-by: Katon Minhas
2025-04-08 17:36:20 +00:00
Alex Galarce 807155fe49 Merged in feature/configure_carveout_breakouts (pull request #468)
add new configurations for carveouts

* add new configurations for carveouts

* formatting, isort, and remove a couple unused imports


Approved-by: Katon Minhas
2025-04-08 17:17:58 +00:00
Alex Galarce 04cb261831 Merged in feature/rework_reimb_id (pull request #467)
Rework reimbursement ID to associate parts of "lesser of" (or other such coupled statement) with one another

* refactor reimbursement ID generation with hashed service terms

* reduce hash length for unique reimbursement ID generation

* update reimbursement ID format to include 'exh_pg' for clarity

* clean up testing.ipynb

* one more formatting fix to testing.ipynb

* Move reimb_id generation to postprocessing

* move reimb_id function to postprocessing_funcs.py

* refactor generate_reimb_ids to group by FILE_NAME and EXHIBIT_PAGE for ID generation

* clean testing.ipynb further


Approved-by: Katon Minhas
2025-04-07 20:43:17 +00:00
Alex Galarce 2630dfbede Merged in feature/multiple-procedures (pull request #465)
Feature/multiple procedures

* Add stop loss and multiple procedure reduction questions to investment prompts

* Refactor field_type values in investment prompts for consistency

* Refactor methodology breakout function to accept prompt templates as parameters

* Update investment prompts to enhance clarity and add new (provisional) fields for NEVER events and experimental treatments

* Merge remote-tracking branch 'origin/main' into feature/multiple-procedures

* start consolidation of special_cases and carveouts into one omnifunction

* Enhance carveout handling by adding support for additional question types and refactoring question retrieval

* move term_key to individual cases

* Fix casing for carveout term keys in get_carveout_fields function

* Refactor carveout processing by introducing process_carveout_or_special_case function to streamline handling of various carveout types

* Enhance process_carveout_or_special_case function documentation and clarify parameter descriptions

* Add term_key parameter to get_carveout_fields function call

* Enhance type annotations for methodology and fee schedule prompt templates in process_carveout_or_special_case function

* Add SPECIAL_CASE_CONFIGS to streamline carveout processing logic

* Remove deprecated print statements and special case handling from get_special_cases function

* name carveout_config for clarity against config.py

* Remove special case functions (deprecated)

* Remove unused imports and deprecated print statements from get_special_cases function

* remove print statements for debugging, check output of universal_string_load if it's a single dict, put it to a list

* Add special case configurations for various question types in its own module

* Refactor special case handling by consolidating configurations and removing deprecated constants and comments

* Update descriptions for OUTLIER and STOP_LOSS in VALID_SPECIAL for clarity and detail

* black formatting, changed one docstring description

* isort

* Merged main into feature/multiple-procedures


Approved-by: Katon Minhas
2025-04-07 16:04:47 +00:00
VenkataKrishna Reddy Avula 6139ee463d Merged in hotfix/effective_dates_fix (pull request #466)
Hotfix/effective dates fix

* code added for filling N/A effective dates

* updated effective dates prompt

* updated REIMB_EFFECTIVE_DT format

* Auto renewal issue fixes

* fixed REIMB_TERMINATION_DT format


Approved-by: Katon Minhas
2025-04-07 16:03:48 +00:00
VenkataKrishna Reddy Avula ba1aa52bd8 Merged in hotfix/formatting_issue_fixes (pull request #462)
Hotfix/formatting issue fixes to Main

* fixed CONTRACT_AMENDMENT_NUM prompt

* updated AUTO_RENEWAL_TERM prompt

* updated CONTRACT_AMENDMENT_NUM prompt


Approved-by: Katon Minhas
2025-04-02 14:31:50 +00:00
Katon Minhas 73b106b041 Merged in field_group/optimize_dynamic (pull request #459)
field group/optimize dynamic

* refactor tin/npi

* Refactor dynamic

* Refactor dynamic

* testing

* Save

* Merge branch 'main' into field_group/optimize_dynamic

* Merge branch 'main' into field_group/optimize_dynamic

* Prompt improvements

* save

* Move fill na mapping to AArete-Derived section

* MR prep

* Fix pipeline

* Merged main into field_group/optimize_dynamic

* Save

* Split crosswalk and aarete-derived

* Merge prep

* Pipeline fixes

* update test


Approved-by: Alex Galarce
2025-03-31 20:07:19 +00:00
Alex Galarce ca423f7cd6 Merged in feature/numeric_amd_num (pull request #458)
improve contract_amendment_num prompt

* improve contract_amendment_num prompt

* Merged main into feature/numeric_amd_num

* change CONTRACT_AMENDMENT_NUM prompt to include alphanumeric, Roman numeral, and decimal formats

* add period


Approved-by: Katon Minhas
2025-03-28 21:33:56 +00:00
Alex Galarce 3bb92a21dd Merged in feature/methodology_breakout_for_carveouts (pull request #453)
call methodology breakout on carveouts

* Refactor carveout functionality: move get_carveout_fields to one_to_n_funcs.  Move out QUESTIONS as a constant at the top

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

* Enhance methodology breakout handling: flatten nested lists and improve processing logic

* Merged main into feature/methodology_breakout_for_carveouts

* Improve error handling in file processing: add traceback logging for better debugging

* integrate methodology breakout for carveouts

* ensure default indicator is set after processing

* update default indicator assignment and extend special case answers list to avoid list-list-dict structures

* add defensive programming comment for nested lists in methodology breakout function


Approved-by: Katon Minhas
2025-03-28 21:02:17 +00:00
Katon Minhas b54b4dc4a6 Merged in refactor/field-name-updates (pull request #454)
Refactor/field name updates

* New names/orders

* Add MAXIMUM_FREQUENCY Placeholder

* Merged main into refactor/field-name-updates


Approved-by: Alex Galarce
2025-03-27 18:05:59 +00:00
Mayank Aamseek 5e62494fad Merged in hotfix/methodology_breakout_issue_fixes (pull request #455)
Hotfix/methodology breakout issue fixes

* added new methodology breakoyt test jupyter file

* fixed methodology breakout prompts

* aarete derived fee schedule version logic updated

* lesser of prompt updated

* refine reimbursement and fee schedule prompts for clarity and specificity


Approved-by: Alex Galarce
2025-03-27 14:50:13 +00:00
Alex Galarce 7609697ca5 Merged in bugfix/lesser-of (pull request #451)
fix carveout_ind for special cases

* Refactor get_special_cases to improve non-special cases

* Merged main into bugfix/lesser-of

* Refactor get_special_cases to handle N/As second after default_term

* Add methodology breakout function for single row processing

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

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

* Refactor methodology_breakout_single_row to return a list of results and handle empty responses

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

* Rename ADRM and update CARVEOUT_IND logic

* Remove unused imports from carveout_funcs.py

* update docstrings

* Reorder conditions in get_special_cases for clarity and maintainability


Approved-by: Katon Minhas
2025-03-25 00:10:34 +00:00
Katon Minhas 6ee8d1cf12 Merged in fields/dynamic-updates (pull request #452)
Fields/dynamic updates

* Update valid LOBs + mappings to AARETE_DERIVED

* Update Program valid and mapping

* Add state-specific programs

* Update mappings for Network

* Add state CHIP mappings

* Add Program-LOB mappings

* Merged main into fields/dynamic-updates

* Bugfix

* Bugfix

* Remove test

* Remove all-caps criteria


Approved-by: Alex Galarce
2025-03-24 21:05:01 +00:00
Alex Galarce 131dff77de Merged in feature/split-out-error-log (pull request #450)
DRAFT: Feature/split out error log

* Refactor result handling to separate successful and error results in processing

* Add forced exception for testing in safe_process_file function

* Merged main into feature/split-out-error-log

* main.py edited online with Bitbucket
* Add support for error output type in write_s3 function


Approved-by: Katon Minhas
2025-03-24 18:56:50 +00:00
Mayank Aamseek 7f024faa8a Merged in bugfix/Nonetype_error (pull request #449)
Bugfix/Nonetype error

* fixed Nonetype error

* fixed AARETE_DERIVED_FEE_SCHEDULE_VERSION

* Merge branch 'main' into bugfix/Nonetype_error

* Fix column name


Approved-by: Katon Minhas
2025-03-21 18:34:52 +00:00
Katon Minhas f8b8a580ff Merged in fields/additional-initializations (pull request #447)
fields/additional initializations

* Set up test file

* New fields + new field names

* Add initial prompts to json

* Column renaming - remove CONTRACT_ prefix

* update tests

* testing

* Fix regex pattern in json.loads

* Merge branch 'hotfix/file-errors' into refactor/new-field-names

* add UNIT_OF_MEASURE

* initialize new values

* Add rate change interval

* Merge branch 'main' into fields/additional-initializations

* remove test

* replace field names

* update REIMB_ID

* update date columns

* update reimbursement effective dt

* Revert adhoc scripts

* Revert client files

* Update postprocessing_funcs

* revert regex_utils

* Fix valid issue

* UNIT_OF_MEASURE

* REIMB_TERM

* Revert postprocessing funcs tests


Approved-by: Alex Galarce
2025-03-21 18:11:55 +00:00
Mayank Aamseek 138ac82fa2 Merged in hotfix/file-errors (pull request #448)
Hotfix/file errors

* Set up test file

* Fix regex pattern in json.loads

*  bug fix No valid JSON object found in the input string

* bug fixes

* moved try statement to parse fn

* invalid literal for int() with base 10 error fixed

* remove test

* remove excess print statements

* Raise error

* Remove todo

* Remove print statement


Approved-by: Katon Minhas
2025-03-19 22:11:27 +00:00
Katon Minhas 31b2936ae6 Merged in bugfix/table-failed-files (pull request #445)
Bugfix/table failed files

* improved align and format table prompt

* Successful E2E test on San Joaquin - without running align and format table prompt

* San Joaquin e2e test passed

* Merged main into bugfix/table-error-fix

* Merge branch 'main' into bugfix/table-error-fix

* Add same number of columns condition

* Merged main into bugfix/table-error-fix

* Clean investment_values

* Remove import

* docstrings

* Remove test doc

* Add back original ALIGN_AND_FORMAT_TABLES prompt for client work

* Remove import

* Add config reference

* expected string or bytes-like object, got 'int'

* Merged main into bugfix/table-error-fix

* Merge branch 'bugfix/table-error-fix' into bugfix/table-failed-files

* Update universal json load

* update test

* Merge branch 'main' into bugfix/table-failed-files

* Position 0 error fixed

* update table_utils

* remove test.py

* revert table_utils test

* remove table_utils_test


Approved-by: Alex Galarce
2025-03-18 20:12:47 +00:00
Katon Minhas 86db2ea0b7 Merged in bugfix/table-error-fix (pull request #444)
Bugfix/table error fix

* handle multipage table data correctly

* same metadata for all tables on the page

* Multiple tables on page, non-continuous, split

* Add back align_and_format_tables

* update unit tests

* Merged main into bugfix/table-error-fix

* improved align and format table prompt

* Successful E2E test on San Joaquin - without running align and format table prompt

* San Joaquin e2e test passed

* Merged main into bugfix/table-error-fix

* Merge branch 'main' into bugfix/table-error-fix

* Add same number of columns condition

* Merged main into bugfix/table-error-fix

* Clean investment_values

* Remove import

* docstrings

* Remove test doc

* Add back original ALIGN_AND_FORMAT_TABLES prompt for client work

* Remove import

* Add config reference

* Merged main into bugfix/table-error-fix

* Move table_utils to investment.table_funcs

* restore table_utils.py

* Update tests

* update preprocess


Approved-by: Alex Galarce
2025-03-18 18:41:31 +00:00
Alex Galarce 1c71592ca9 Merged in feature/unique-identifier-for-reimbursements (pull request #443)
Generate unique IDs for reimbursements

* Add reimbursement ID generation and update function signatures for unique identification

* Merge remote-tracking branch 'origin/main' into feature/unique-identifier-for-reimbursements


Approved-by: Katon Minhas
2025-03-17 20:38:50 +00:00
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
Alex Galarce dc9f8d2b0e Merged in feature/new-reimb-primary-prompt (pull request #442)
New Reimbursement Primary Prompt

* Enhance reimbursement primary extraction prompts with detailed formatting and instruction guidelines

* Clarify 'lesser of' statement application in reimbursement methods with detailed examples and guidelines

* Add examples to 'lesser of' statement application in investment prompts

* up row_limit to 20

* hybrid prompt for global table info for reimb_primary

* Merged main into feature/new-reimb-primary-prompt

* most explicit prompt

* update default row_limit in clean_tables function to 6

* Merge remote-tracking branch 'origin/main' into feature/new-reimb-primary-prompt

* Add detailed guidelines for extracting complex payment structures in anesthesia services

* Clarify handling of specific plan names in reimbursement prompts

* removed a couple examples to save tokens


Approved-by: Katon Minhas
2025-03-13 21:26:46 +00:00
Alex Galarce 564408fb20 Merged in feature/change-1-to-n-comparison-metric (pull request #439)
Refactor fuzzy matching logic to use partial token sort ratio and update matched pairs structure

* Refactor fuzzy matching logic to use partial token sort ratio and update matched pairs structure

* Merged main into feature/change-1-to-n-comparison-metric


Approved-by: Katon Minhas
2025-03-13 17:47:44 +00:00
Mayank Aamseek 6283f37f01 Merged in bugfix/covered_services (pull request #437)
laboratory covered services fixed

* laboratory covered services fixed

* suggestions incorporated


Approved-by: Alex Galarce
Approved-by: Katon Minhas
2025-03-11 22:26:19 +00:00
Alex Galarce cb6284c98f Merged in feature/add-billed-charges-to-reimb-keywords (pull request #436)
Small fix to comparisons (lowercase comparison string fields)

* Add accuracy calculation to fuzzy matching evaluation

* reimbursement primary accuracy test

* add match_threshold control

* clarify metrics

* Merged main into reimb-primary-accuracy-analysis

* Merge branch 'reimb-primary-accuracy-analysis' of https://bitbucket.org/aarete/doczy.ai into reimb-primary-accuracy-analysis

* add 'billed charges' to reimbursement keywords and update TODO for page checking

* add comparisons dictionary

* normalize field comparison by converting strings to lowercase

* deduplicate data sources in notebook

* Merge remote-tracking branch 'origin/main' into feature/add-billed-charges-to-reimb-keywords


Approved-by: Katon Minhas
2025-03-06 21:42:43 +00:00
Katon Minhas 60c3104119 Merged in field/tin-npi-breakout (pull request #435)
field/tin npi breakout

* additional comments added

* pipeline error fixed

* final bug fixes during testing

* Merge branch 'main' into field/tin-npi-breakout

* formatting change - no error otherwise

* Merge branch 'field/tin-npi-breakout' of https://bitbucket.org/aarete/doczy.ai into field/tin-npi-breakout
pulled latest changes

* Streamline tin_npi_funcs

* Prompt changes

* remove punctuation

* Remove duplicates after cleaning

* Prompt mods

* Update values

* Prompt mods - allow for N/A

* Prompt for ALL NPIs

* Change clean function

* Allow multiple group TIN/NPI

* Prompt update

* Merged main into field/tin-npi-breakout

* remove test file

* Fix return type

* Restore testbed

* Merged main into field/tin-npi-breakout

* tin_npi_funcs.py edited online with Bitbucket
* Removed commented function

* Remove regex fields from one-to-one


Approved-by: Alex Galarce
2025-03-06 20:50:36 +00:00
Mayank Aamseek 7bee013a4b Merged in feature/daip2-125 (pull request #434)
Feature/daip2 125

* grouper prompt changed

* grouper code, type and desc updated

* removed test file

* Merged main into feature/daip2-125

* Merge remote-tracking branch 'origin/main' into feature/daip2-125


Approved-by: Alex Galarce
2025-03-06 19:02:46 +00:00
VenkataKrishna Reddy Avula 732d345d7f Merged in feature/daip2-123 (pull request #425)
Feature/daip2-123 to Main

* indirect proc codes added

* bug fix

* bug fix

* Merge branch 'main' into proc-code-indirect

* bug fix

* diag cd indirect added

* Merge branch 'main' into daip2-111

* modified get code description for revenue codes

* removed print statements

* Merged main into feature/daip2-123

* Merge remote-tracking branch 'origin/main' into feature/daip2-123

* Merged main into feature/daip2-123

* modified find containing ranges

* modified get code description

* updated get code description function

* updated descriptions code

* Merge remote-tracking branch 'origin/main' into feature/daip2-123


Approved-by: Katon Minhas
2025-03-06 18:51:05 +00:00
Alex Galarce d55a4b8fd2 Merged in reimb-primary-accuracy-analysis (pull request #433)
Reimb primary accuracy analysis

* Add accuracy calculation to fuzzy matching evaluation

* reimbursement primary accuracy test

* add match_threshold control

* clarify metrics

* Merged main into reimb-primary-accuracy-analysis

* Merge branch 'reimb-primary-accuracy-analysis' of https://bitbucket.org/aarete/doczy.ai into reimb-primary-accuracy-analysis


Approved-by: Katon Minhas
2025-03-06 14:55:59 +00:00
Alex Galarce 4c0bb5d1f7 Merged in bugfix/improve-stability (pull request #432)
very small error logging fix

* Handle ValueError in code range parsing and provide fallback

* Implement safe file processing with error handling and concurrent execution

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

* more explicit error printing

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


Approved-by: Katon Minhas
2025-03-06 04:05:29 +00:00
Rahul Ailaboina a84941ff9c Merged in bugfix/individual-prov-group-name (pull request #431)
updated prompt to get the group provider

* updated prompt to get the group provider

* Merged main into bugfix/individual-prov-group-name


Approved-by: Alex Galarce
2025-03-05 23:53:11 +00:00
Alex Galarce d7d5276d7b Merged in bugfix/improve-stability (pull request #430)
Bugfix/improve stability

* Handle ValueError in code range parsing and provide fallback

* Implement safe file processing with error handling and concurrent execution

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


Approved-by: Katon Minhas
2025-03-05 19:10:37 +00:00
Katon Minhas e7605b550b Merged in feature/field-renaming (pull request #429)
Feature/field renaming

* Update column names

* Update field names

* Update field names

* Merge branch 'main' into feature/field-renaming

* _DATE to _DT in field names

* _CD_DESC to _DESC

* NOT_TO_EXCEED_IND added as valid field

* Remove print statements


Approved-by: Alex Galarce
2025-03-05 18:25:28 +00:00
Alex Galarce 2f96963162 Merged in feature/reimbursement-primary-optimizization (pull request #428)
Fix load_embeddings()

* move datetime_str function to string_utils module

* enhance load_embeddings to create directory structure and handle download errors

* Merged main into feature/reimbursement-primary-optimizization


Approved-by: Katon Minhas
2025-03-04 22:08:16 +00:00
Alex Galarce f7ba7f45e5 Merged in hotfix/fix-pipeline (pull request #427)
fix: update return type comment for get_best_match function

* fix: update return type comment for get_best_match function


Approved-by: Katon Minhas
2025-03-04 17:39:09 +00:00
Mayank Aamseek 54b3b74675 Merged in daip2-111 (pull request #424)
Daip2 111

* indirect proc codes added

* bug fix

* bug fix

* Merge branch 'main' into proc-code-indirect

* bug fix

* diag cd indirect added

* Merge branch 'main' into daip2-111

* bug fix

* deleted missed print statements

* Merge branch 'main' into daip2-111
merged with main

* Merge branch 'main' into daip2-111
pulled from main

* sync embeddings from s3

* print statement removed

* typehint added


Approved-by: Alex Galarce
2025-03-04 16:52:14 +00:00
Alex Galarce 08ebf92109 Merged in feature/test-1-to-n-fields (pull request #426)
Feature/test 1 to n fields

* Add function to evaluate one-to-n field comparisons and calculate metrics

* Add fuzzy matching for one-to-n field comparisons and enhance evaluation metrics

* Refactor similarity calculation to use token sort ratio for improved field comparison

* Add matched labels to evaluation metrics in one-to-n fuzzy matching


Approved-by: Katon Minhas
2025-03-04 01:16:56 +00:00
VenkataKrishna Reddy Avula 576ea95b6d Merged in code-breakout-mismaps (pull request #419)
DAIP2-112 - fixed get code descriptions

* indirect proc codes added

* bug fix

* bug fix

* Merge branch 'main' into proc-code-indirect

* description mapping handling X's and 0's

* bug fix

* Merge remote-tracking branch 'origin/proc-code-indirect' into code-breakout-mismaps

* testing mismaps

* revenue codes mapping for int values

* added function to find ranges

* removed test files

* Merged main into code-breakout-mismaps

* Merge branch 'main' into code-breakout-mismaps
pulled latest changes from main

* added unit test for find containing ranges

* modified find_containing_ranges_test file

* Merged main into code-breakout-mismaps

* added embeddings to git ignore

* updated find_containing_ranges_test.py


Approved-by: Alex Galarce
Approved-by: Katon Minhas
2025-03-03 16:07:29 +00:00
Alex Galarce 0fee01ace8 Merged in feature/override-aa-derived-eff-date (pull request #423)
Feature/override aa derived eff date

* Implement special handling for AARETE_DERIVED_TERMINATION_DATE based on CONTRACT_AUTO_RENEWAL_IND

* Refine prompts for CONTRACT_AUTO_RENEWAL_IND and CONTRACT_AUTO_RENEWAL_TERM for clarity

* move special handling for derived effective date to postprocess step

* Remove unnecessary blank line in get_crosswalk_and_derived function


Approved-by: Katon Minhas
2025-02-27 22:57:38 +00:00
Katon Minhas 25066747e5 Merged in hotfix/typo-fix (pull request #422)
Hotfix - typo fix

* Hotfix - reorder columns


Approved-by: Faizan Mohiuddin
Approved-by: Umang Shailesh Mistry
2025-02-27 20:31:26 +00:00
Katon Minhas 279f4fc03b Merged in feature/standardize-column-order (pull request #420)
Feature/standardize column order

* add column reordering

* Standardize column order

* Merged main into feature/standardize-column-order


Approved-by: Alex Galarce
2025-02-26 22:29:17 +00:00
Katon Minhas dd079d8556 Merged in field/contract_fee_schedule_desc (pull request #421)
Change from AARETE_DERIVED_ to CONTRACT_- FEE_SCHEDULE_VERSION

* Change from AARETE_DERIVED_ to CONTRACT_- FEE_SCHEDULE_VERSION


Approved-by: Alex Galarce
2025-02-26 21:25:45 +00:00