Commit Graph

21 Commits

Author SHA1 Message Date
Alex Galarce 3740588efa Merged in refactor/daip-2-9-code-refactor (pull request #339)
Refactor/daip2-9 code refactor

* add missing import

* refactor ac_smart_chunking.py

* update tests

* removed old and unused imports

* removed outdated import

* forgot to import re

* refactor bottom up funcs

* remove unused imports from file_processing.py

* refactor dict_operations.py

* remove unused import from conditional_funcs.py

* replace top_down_funcs with one_to_n_funcs and remove top_down_funcs.py

* remove duplicate import from one_to_n_funcs.py

* refactor all utils.py imports

* refactor error handling by removing last code in utils and integrating InvalidDateException into postprocessing_funcs

* refactor import in claude_funcs.py to use string_funcs directly and (hopefully) resolve circular import

* refactor regex_funcs.py to use postprocessing_funcs for add_hyphen_if_needed calls

* refactor hotfix_helper_funcs.py to use postprocessing_funcs for add_hyphen_if_needed calls

* refactor postprocess.py to remove unused imports

* add numpy import to string_funcs

* fix tests after utils refactor

* move adhoc from tests to scripts

* remove unused imports

* remove scripts from mypy checking

* isort

* Merged main into refactor/daip-2-9-code-refactor


Approved-by: Katon Minhas
2025-01-06 15:39:29 +00:00
Alex Galarce 5b88185611 Merged in refactor/daip2-9-basic-code-refactor (pull request #337)
[daip2-9] basic code refactor - unreferenced functions and reorganize existing files

* remove unreferenced functions in ac_funcs.py

* move compare_output.py

* move file_counting.py

* move merge_issue_regex.py

* remove unreferenced functions in postprocessing_funcs.py

* clean up preprocessing_funcs.py

* move prerun.py

* move table_analysis.py and textract_template.py to scripts

* remove unreferenced functions in table_funcs.py

* moved tin_pull.py to scripts

* move detect_complex.py and remove merge_funcs.py

* clean up dict operations and utils, mark functions in utils for destinations

* removed errant import


Approved-by: Katon Minhas
2024-12-30 21:41:21 +00:00
Karan Desai 141c62c025 Merged in feature/ac_smart_chunking_funcs (pull request #322)
functionized smart chunking code

* functionized smart chunking code


Approved-by: Katon Minhas
2024-12-06 18:19:58 +00:00
Alex Galarce 47a01e13f0 Merged in chore/contract_effective_date (pull request #307)
New Prompt Method (starting with contract effective date)

* add todos for Siddhant

* moved effective date prompts to prompts.py and added docstring and type hints

* moved effective date prompts to prompts.py and added docstring and type hints

* fixed conflict

Co-authored-by: Alex Galarce <agalarce@aarete.com>

* modified contract effective date logic in existing smart chunking

* Merged main into chore/contract_effective_date

* updated extract_text_from_delimiters function and unit tests for it

* Merge remote-tracking branch 'origin/main' into chore/contract_effective_date

* added comments to preprocessing_funcs

* preprocessing_funcs.py edited online with Bitbucket
* utils.py edited online with Bitbucket
* add debug line

* add NA handling into fix_date_formatting()

* add debug print statements

* worked on review comments

* fixed date checking

* fixed date checking and added unit tests

* Merged main into chore/contract_effective_date

* added logic to handle case when smart chunking returns empty context for effective date

* added comments to file_processing.py

* optimized imports and removed a TODO

* Merged main into chore/contract_effective_date

* made prompt changes for effective date

* keywords.py edited online with Bitbucket
* Removed excess print statements


Approved-by: Katon Minhas
2024-12-05 22:46:41 +00:00
Alex Galarce b2a8e77cca Merged in chore/health_plan_state (pull request #304)
refactored code to add recent health plan state hotfixes into the existing postprocessing pipeline

* refactored code to add recent health plan state hotfixes into the existing postprocessing pipeline

* Merged main into chore/health_plan_state

* Merged main into chore/health_plan_state

* add debug print statement

* debug print statements

* more debug print statements

* print df columns for debug

* move health plan state hotfix functionality to postprocessing_funcs.py

* add better error printing

* add error message for parent agreement code

* remove dots in state abbreviations

* remove unused import

* also look for state abbreviations

* Merged main into chore/health_plan_state

* remove print statements

* Merged main into chore/health_plan_state


Approved-by: Katon Minhas
2024-12-04 22:14:34 +00:00
Mayank Aamseek 13119ab499 Merged in feature/agreement_name_chunking (pull request #316)
agreement_name hotfix to main

* agreement_name hotfix to main

* group name changed to AGREEMENT_NAME

* Merged main into feature/agreement_name_chunking


Approved-by: Alex Galarce
2024-12-04 21:18:54 +00:00
Mayank Aamseek 220f0d747f Merged in bugfix/term_prompt_update (pull request #317)
term prompt update

* term prompt update


Approved-by: Alex Galarce
2024-12-04 18:39:38 +00:00
Karan Desai 4225d090dc Merged in chore/irs (pull request #310)
irs hotfix into main

* irs hotfix into main

* pass top sheet to irs hotfix func

* docstring updates


Approved-by: Alex Galarce
2024-12-02 23:03:46 +00:00
Karan Desai f47122d64e Merged in chore/npi (pull request #309)
npi hotfix into main

* npi hotfix into main

* npi hotfix into main


Approved-by: Alex Galarce
2024-12-02 19:50:41 +00:00
Katon Minhas cb18f90a85 Merged in feature/topSheetConditional (pull request #281)
Initial top sheet conditional commit

* Initial top sheet conditional commit

* Merged main into feature/topSheetConditional

* preprocessing_funcs.py edited online with Bitbucket
* Updated quick review docstring


Approved-by: Alex Galarce
2024-11-22 15:30:01 +00:00
Katon Minhas 41175b1690 Merged in hotfix/NonRenewalDays (pull request #274)
Hotfix/NonRenewalDays

* Update prompt template for full context

* Updated for rule-based N/A additions for AC prompts

* Clear test.py

* Remove src/test.py

* Removed excess print statements


Approved-by: Alex Galarce
2024-11-18 21:01:09 +00:00
Mayank Aamseek df519ea32b Merged in bugfix/group_chunk_json_parsing (pull request #271)
term group fixed

* term group fixed

* Merged main into bugfix/group_chunk_json_parsing

* file_processing.py edited online with Bitbucket
* Merged main into bugfix/group_chunk_json_parsing


Approved-by: Alex Galarce
2024-11-14 21:41:07 +00:00
Karan Desai dfff68e9c8 Merged in bugfix/clean_full_context_in_smart_chunking (pull request #269)
Bugfix/clean full context in smart chunking

* move full context bugfix to clean branch

* took out commented code

* black formating

* Add explanatory comments to file_processing.py

Approved-by: Alex Galarce
2024-11-13 21:33:17 +00:00
Karan Desai 1098be5cf5 Merged in feature_ac_chunking_clean (pull request #265)
grouped keywords and IRS regex chunking

* abandon old branch and rebuild

* removed print for field names, prompts

* pushing as part of  leftovers

* IRS regex chunking

* Merged in feature/chunk_term_clean (pull request #262)

chunk_log_added

* chunk_log_added

* Merge remote-tracking branch 'remotes/origin/feature_ac_chunking_clean' into feature/chunk_term_clean


Approved-by: Alex Galarce

* added function for regex based IRS chunking

* shifted regex_match_chunk function to utils

* added helper functions for regex based chunking

* replaced tin_regex function to ac_funcs

* removed prompt for irs_others

* added regex chunking for irs

* removed irs group from smart chunking

* testing functionality for regex based irs fields

* updated return N/A condition

* Merged main into feature_ac_chunking_clean

* file_processing.py edited online with Bitbucket
* added back conditional prompts

* minor fixed for PR

* remove install types

* mering clean branch

* with passed test casses

* added flag for regex based tin execution


Approved-by: Michael McGuinness
2024-11-13 17:08:19 +00:00
Katon Minhas bb279b45fd Merged in cnc_fl_main (pull request #258)
Cnc fl main

* prov type moved

* comment out invalid prov2 bc it's overly restrictive

* Update prompt template to ensure N/A rather than blanks

* Update AC multi-prompt template. Update prompts to ensure all keys are present and N/As are filled

* Update AC postprocessing

* Update clean_tin() to add N/A for values other than 10 digits

* update tin postprocessing

* Update npi postprocessing

* Add 'Filename:' to the start of all filenames

* Update group TIN/NPI postprocessing

* Update parent agreement code

* fix health plan state mapping

* Update B postprocessing

* Updated indicators, re-ordering

* Update postprocessing - all columns included and reordered

* Ensure Pages is included in AC-only output

* Remove excess print statements

* remove example_test to pass pipeline

* Fix parent agreement code for AC

* Updated postprocessing for NPI/TIN other

* Update prompts for N explicitely on AC prompt-based indicators

* Updated main and utils for more intuitive filtering

* Updated file_counting to match new main process

* update test

* Add example_test


Approved-by: Michael McGuinness
2024-11-04 22:54:31 +00:00
Michael McGuinness ee3e3eb538 Merged in feature/mergeIntoMain (pull request #249)
Merge Prep

* mergePRep


Approved-by: Katon Minhas
2024-10-28 23:39:36 +00:00
Michael McGuinness acef40ee19 Merged in festure/removefieldExtraction (pull request #247)
Remove Field Extraction

* rmfieldExtraction


Approved-by: Katon Minhas
2024-10-28 22:15:57 +00:00
Michael McGuinness 7772d1833a reformatting 2024-09-30 15:28:07 +01:00
Michael McGuinness a11fe060e6 mvsrc 2024-09-30 15:25:19 +01:00
Michael McGuinness 037909db74 format codebase 2024-09-30 12:21:29 +01:00
Michael McGuinness d3aa4f936b rename 2024-09-30 11:12:18 +01:00