Commit Graph

73 Commits

Author SHA1 Message Date
Alex Galarce bfbd8d6b8b Merged in feature/daip2-7-crosswalk (pull request #341)
Feature/daip2-7-crosswalk

* add crosswalk framework

* remove erroneous print statements

* fix mypy error, format to black and isort

* add README.md

* Merged main into feature/daip2-7-crosswalk


Approved-by: Katon Minhas
2025-01-06 15:07:44 +00:00
Alex Galarce f386cb876f Merged in refactor/pre-clean-ac-funcs (pull request #338)
remove unused/old functions from ac_funcs.py

* remove unused/old functions from ac_funcs.py


Approved-by: Michael McGuinness
Approved-by: Mayank Aamseek
2025-01-02 16:14:02 +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
Chris Bull 63a9815c98 Merged in bugfix/default-rate-prompt-adjustment (pull request #336)
slight change to prompt, tested on 83 files

* slight change to prompt, tested on 83 files

* Merged main into bugfix/default-rate-prompt-adjustment


Approved-by: Katon Minhas
2024-12-17 23:14:56 +00:00
Faizan Mohiuddin 9a736fa80d Merged in feature/self-repair-main (pull request #313)
Feature/self repair main

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* new testing

* new testing

* added unit tests under fieldExtraction/tests/main-unit-tests

* unit test fixes

* unit test fixes

* merge into main

* modified consolidate_output and slight changes to qa_qc_helpers to accomodate qaqc functionality w faizan and michael's changes

* merging self repair into main

* synced with main now

* fixes

* provider billing removed

* provider billing removed

* provider billing fixed

* commented out load dotenv in config

* Merged main into feature/self-repair-main

* modified check_s3_bucket_exists function by returning False if credentials not found for pipeline

* Merge branch 'feature/self-repair-main' of https://bitbucket.org/aarete/doczy.ai into feature/self-repair-main


Approved-by: Michael McGuinness
2024-12-17 16:34:59 +00:00
Alex Galarce 91d3680ee4 Merged in bugfix/effective-date-logic (pull request #335)
fix logic error when effective date reformatting is applied twice when the date is already filled

* fix logic error when effective date reformatting is applied twice when the date is already filled


Approved-by: Katon Minhas
2024-12-16 22:08:04 +00:00
Alex Galarce ad19bfc808 Merged in hotfit/move-openpyxl (pull request #334)
move openpyxl from dev dependencies to general dependencies bc we use it for qaqc now

* move openpyxl from dev dependencies to general dependencies bc we use it for qaqc now


Approved-by: Katon Minhas
2024-12-16 20:57:35 +00:00
Katon Minhas 036052e75f Merged in hotfix/Exhibit (pull request #330)
Hotfix/Exhibit

* Initial draft - Exhibit test

* Update logic

* Add Exhibit page_num column, add pipe format to prompt

* Working test

* Update LOB to check new Exhibit

* Greenlight file commit - needs minor efficiency improvement

* Reordering, intermediate file saving, Exhibit+LOB Fix

* Merged main into Exhibit branch

* removed excess print statements

* Merged main into hotfix/Exhibit

* Updated valid lists for mapping, reconfigured for rerun filter

* Extra print

* added fixes for batch 7

* added fixes for batch 7

* Merged main into hotfix/Exhibit

* apply_cnc_hotfix.py edited online with Bitbucket

Approved-by: Alex Galarce
2024-12-16 18:03:42 +00:00
Alex Galarce 365527d3d0 Merged in hotfix/roll-back-effective-date-prompt (pull request #332)
roll back to old prompt

* roll back to old prompt


Approved-by: Katon Minhas
2024-12-13 21:23:28 +00:00
Chris Bull 26c12469bc Merged in QCQA_Additions (pull request #331)
QCQA Additions

* tested on batch 10, small fixes + change to s3 output

* Merged main into QCQA_Additions

* unit tests for qc qa helpers

* static error fix

* another static fix

* static fix again

* fixed None check

* static fix none

* Merged main into QCQA_Additions

* Small changes based on Katon's review


Approved-by: Katon Minhas
2024-12-13 19:23:04 +00:00
Siddhant Medar b094542cbe Merged in chore/update_effective_date_prompts_and_keywords (pull request #329)
modified keywords and prompts for effective date

* modified keywords and prompts for effective date


Approved-by: Alex Galarce
2024-12-12 19:05:47 +00:00
Siddhant Medar 1d49a7f9b1 Merged in chore/update_exclusion_keywords_for_effective_date (pull request #327)
update exclusion keywords for effective date

* update exclusion keywords for effective date


Approved-by: Katon Minhas
2024-12-11 21:49:53 +00:00
Katon Minhas e8d231b801 Merged in bugfix/applyHotfixBug (pull request #326)
Minor bug fix

* Minor bug fix


Approved-by: Alex Galarce
2024-12-10 18:57:21 +00:00
Alex Galarce c6a854b2b9 Merged in hotfix/cleaned-new-date-regex (pull request #325)
Hotfix/cleaned new date regex

* new date pattern

* add tests


Approved-by: Katon Minhas
2024-12-10 17:14:51 +00:00
Katon Minhas d62e477436 Merged in bugfix/termGroupHotfix (pull request #324)
Bugfix/termGroupHotfix

* Minor term group fix

* Added xlsb to gitignore, updated apply_cnc_hotfix for Filename prefix, added xlsb read functionality to utils

* Date bugfix

* Fixed effective date bug

* Effective date bug fixes

* Fix agreement name field name bug

* Further bug fixes

* update poetry for pyxlsb

* Write to excel after each file is completed

* Fix for restarts


Approved-by: Alex Galarce
2024-12-09 21:40:53 +00:00
Siddhant Medar d76c24211a Merged in feature/effective_date (pull request #323)
log information logic added to hotfix for contract effective date

* log information logic added to hotfix for contract effective date


Approved-by: Katon Minhas
2024-12-07 17:12:50 +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
Chris Bull 54a62944aa Merged in QCQA_Integration (pull request #311)
QCQA Integration

* Merged in bugfix/npi_hotfix (pull request #305)

double filter for duplicates

* double filter for duplicates


Approved-by: Katon Minhas

* Merged in chore/npi (pull request #309)

npi hotfix into main

* npi hotfix into main

* npi hotfix into main


Approved-by: Alex Galarce

* 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

* slight fix to methodology short fix

* Merged in bugfix/all_cnc_hotfixes (pull request #302)

DRAFT: Bugfix/all cnc hotfixes

* Pipeline fix - health plan state

* Update for prompt vs non-prompt fixes

* Revert utils.find_regex_matches()

* Remove prints

* Non-prompt run

* Health Plan State, IRS, NPI, LOB, Lesser, Prov 2, Default, Rate Standard, Contract Effective Date, Term Group

* Merged in bugfix/agreement_name (pull request #294)

contract title fixed

* contract title fixed

* Merged bugfix/all_cnc_hotfixes into bugfix/agreement_name

Approved-by: Katon Minhas

* All hotfixes added

* Fixed utils

* fix for clean_contract_effective_date
* Merged in default-fix (pull request #296)

moved default funcs to the top, dropped intermediate columns

* moved default funcs to the top, dropped intermediate columns

Approved-by: Katon Minhas

* quick fix to dropping extra columns

* Merged in bugfix/effective_date_meridian (pull request #297)

fixed effective date for meridian contracts

* fixed effective date for meridian contracts

Approved-by: Kat…
* Merged in hotfix/irs_tweak (pull request #303)

returning None instead on str(N/A)

* returning None instead on str(N/A)


Approved-by: Katon Minhas

* Merged in bugfix/npi_hotfix (pull request #305)

double filter for duplicates

* double filter for duplicates


Approved-by: Katon Minhas

* Merged in bugfix/all_cnc_hotfixes (pull request #302)

DRAFT: Bugfix/all cnc hotfixes

* Pipeline fix - health plan state

* Update for prompt vs non-prompt fixes

* Revert utils.find_regex_matches()

* Remove prints

* Non-prompt run

* Health Plan State, IRS, NPI, LOB, Lesser, Prov 2, Default, Rate Standard, Contract Effective Date, Term Group

* Merged in bugfix/agreement_name (pull request #294)

contract title fixed

* contract title fixed

* Merged bugfix/all_cnc_hotfixes into bugfix/agreement_name

Approved-by: Katon Minhas

* All hotfixes added

* Fixed utils

* fix for clean_contract_effective_date
* Merged in default-fix (pull request #296)

moved default funcs to the top, dropped intermediate columns

* moved default funcs to the top, dropped intermediate columns

Approved-by: Katon Minhas

* quick fix to dropping extra columns

* Merged in bugfix/effective_date_meridian (pull request #297)

fixed effective date for meridian contracts

* fixed effective date for meridian contracts

Approved-by: Kat…
* Merged in hotfix/irs_tweak (pull request #303)

returning None instead on str(N/A)

* returning None instead on str(N/A)


Approved-by: Katon Minhas

* Merged in bugfix/npi_hotfix (pull request #305)

double filter for duplicates

* double filter for duplicates


Approved-by: Katon Minhas

* Merged in chore/npi (pull request #309)

npi hotfix into main

* npi hotfix into main

* npi hotfix into main

Approved-by: Alex Galarce

* 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

* Merged in bugfix/clean_short_methodology (pull request #312)

changed regex pattern in get_short_methodology

* changed regex pattern in


Approved-by: Katon Minhas

* Merged in hotfix/filename_fix (pull request #314)

filename corrected

* filename corrected

* Merged main into hotfix/filename_fix


Approved-by: Katon Minhas

* Merge remote-tracking branch 'remotes/origin/main' into HEAD

* rearranged qcqa scripts/funcs and prep for merge w main, moved lots of stuff to postprocess

* slight change to icm_number_fix

* transitioned some qcqa funcs to postprocessing, added fields to qcqa report

* Merged main into QCQA_Integration

* reorganization of qa qc helpers, consolidate_output, qa_qc from Katon's feedback

* adhoc and at scale qcqa ran successfully

* fix to consolidate_output

* Merge remote-tracking branch 'remotes/origin/main' into QCQA_Integration

* Merged main into QCQA_Integration

* small changes to npi_check, changed name of config.CONTRACT_FILE_NAME to config.FILE_NAME_COLUMN


Approved-by: Katon Minhas
2024-12-06 17:27:42 +00:00
Mayank Aamseek c532aec3e9 Merged in hotfix/agreement_name (pull request #321)
apply agreement name hotfix only on missing

* apply agreement name hotfix only on missing


Approved-by: Katon Minhas
2024-12-06 15:29:30 +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
Katon Minhas aa706cbcca Merged in feature/hotfix_stitch (pull request #315)
Feature/hotfix stitch

* Add hotfix scripts

* Merged main into feature/hotfix_stitch

* Moved stitching scripts to scripts folder

* Update for 2

* Fixed flat fee issue

* Fix payer name issue

* All hotfix updates

* Merged main into feature/hotfix_stitch

* Add rapidfuzz


Approved-by: Alex Galarce
2024-12-03 17:18:11 +00:00
Mayank Aamseek 3dd6268776 Merged in hotfix/filename_fix (pull request #314)
filename corrected

* filename corrected

* Merged main into hotfix/filename_fix


Approved-by: Katon Minhas
2024-12-03 15:06:57 +00:00
Chris Bull 41b6b5e69d Merged in bugfix/clean_short_methodology (pull request #312)
changed regex pattern in get_short_methodology

* changed regex pattern in


Approved-by: Katon Minhas
2024-12-03 14:44:54 +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
Alex Galarce 6264da6d7e Merged in feature/cost_log_aggregations (pull request #299)
Feature/cost log aggregations

* add costlog aggregation options

* rename output variables

* more descriptive error message if aggregation fails

* Merged main into feature/cost_log_aggregations


Approved-by: Katon Minhas
2024-11-27 20:37:27 +00:00
Karan Desai 4642ddb6df Merged in bugfix/npi_hotfix (pull request #305)
double filter for duplicates

* double filter for duplicates


Approved-by: Katon Minhas
2024-11-27 20:34:13 +00:00
Karan Desai 2458f8cddc Merged in hotfix/irs_tweak (pull request #303)
returning None instead on str(N/A)

* returning None instead on str(N/A)


Approved-by: Katon Minhas
2024-11-27 15:29:39 +00:00
Alex Galarce 56e3fdd1f8 Merged in bugfix/all_cnc_hotfixes (pull request #302)
DRAFT: Bugfix/all cnc hotfixes

* Pipeline fix - health plan state

* Update for prompt vs non-prompt fixes

* Revert utils.find_regex_matches()

* Remove prints

* Non-prompt run

* Health Plan State, IRS, NPI, LOB, Lesser, Prov 2, Default, Rate Standard, Contract Effective Date, Term Group

* Merged in bugfix/agreement_name (pull request #294)

contract title fixed

* contract title fixed

* Merged bugfix/all_cnc_hotfixes into bugfix/agreement_name


Approved-by: Katon Minhas

* All hotfixes added

* Fixed utils

* fix for clean_contract_effective_date
* Merged in default-fix (pull request #296)

moved default funcs to the top, dropped intermediate columns

* moved default funcs to the top, dropped intermediate columns


Approved-by: Katon Minhas

* quick fix to dropping extra columns

* Merged in bugfix/effective_date_meridian (pull request #297)

fixed effective date for meridian contracts

* fixed effective date for meridian contracts


Approved-by: Katon Minhas

* Default rate and Lesser fix

* Merged in hotfix/irs_npi_updated (pull request #298)

updated irs and npi hotfix funcs

* updated irs and npi hotfix funcs

* Merged bugfix/all_cnc_hotfixes into hotfix/irs_npi_updated


Approved-by: Katon Minhas

* non-functional commit - default only

* debug commit - premerge

* Batch 1 Dup File Reconciliation

* Default rate fix

* Full CNC 1A Run Config

* Standard column refactor

* Working stitching for 1A

* Merged in Alex-Galarce/cnc_hotfix_effective_date_utilspy-edited-1732659983687 (pull request #301)

Remove "license" from effective date smart chunking

* Remove "license" from effective date smart chunking
* Merged bugfix/all_cnc_hotfixes into Alex-Galarce/cnc_hotfix_effective_date_utilspy-edited-1732659983687


Approved-by: Katon Minhas

* Merged in hotfix/irs_batch2_feedback (pull request #300)

IRS fix for feedback on batch2

* IRS fix for feedback on batch2

* Merged bugfix/all_cnc_hotfixes into hotfix/irs_batch2_feedback


Approved-by: Katon Minhas

* Merged main into bugfix/all_cnc_hotfixes


Approved-by: Katon Minhas
2024-11-27 15:08:04 +00:00
Faizan Mohiuddin 88a57f1e1f Merged in bugfix/tracking-bug-fixes (pull request #295)
Bugfix/tracking bug fixes

* runtime tracking bug fix

* fixes to dashboard

* for ec2 host

* updated to match config without ac fields param

* Merge remote-tracking branch 'remotes/origin/main' into HEAD

* removed redundant get active runs function


Approved-by: Katon Minhas
2024-11-25 18:06:20 +00:00
Mayank Aamseek c58490653d Merged in bugfix/term_group (pull request #283)
term group postprocessing fix

* term group postprocessing fix

* docstring added

* Merged main into bugfix/term_group

* Merged main into bugfix/term_group


Approved-by: Alex Galarce
Approved-by: Katon Minhas
2024-11-22 19:22:32 +00:00
Faizan Mohiuddin d9a8ecc818 Merged in bugfix/batchtracking-bug (pull request #287)
removed ac fields as it was removed from main from batch tracking

* removed ac fields as it was removed from main from batch tracking


Approved-by: Alex Galarce
2024-11-22 18:42:02 +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
Alex Galarce 27d81ff1d3 Merged in refactor/tidy-claude-funcs (pull request #279)
Refactor/tidy claude funcs

* pull out create_cost_log_entry() into its own function

* add docstring

* isort

* Merged main into refactor/tidy-claude-funcs

* Merged main into refactor/tidy-claude-funcs


Approved-by: Michael McGuinness
Approved-by: Katon Minhas
2024-11-21 18:04:30 +00:00
Alex Galarce eb7a67c8d4 Merged in refactor/tidy-config (pull request #278)
Refactor/tidy config

* remove commented lines, always instantiate S3 client even if local

* add isort to dev requirements

* sort and prune dependencies

* remove commented line

* remove unreferenced config settings

* remove unreferenced input arguments

* black formatting

* Merge remote-tracking branch 'origin/main' into refactor/tidy-config


Approved-by: Michael McGuinness
Approved-by: Katon Minhas
2024-11-21 17:46:43 +00:00
Faizan Mohiuddin 1d42990fac Merged in feature/add-runtime-tracking (pull request #272)
Feature/add runtime tracking

* added return true

* added fixes and other features

* added fixes and other features

* added fixes and other features

* added fixes and other features

* added fixes and other features

* added fixes and other features

* test

* test

* test

* test

* test

* test

* added

* added

* added potential fix

* added potential fix

* functions

* added potential fix

*  fixes

* Merged main into feature/add-runtime-tracking

* moved streamlit dashabord to streamlit folder

* Merge branch 'feature/add-runtime-tracking' of https://bitbucket.org/aarete/doczy.ai into feature/add-runtime-tracking

* remove src/valid.py to keep src empty

* add psutil to requirements


Approved-by: Michael McGuinness
2024-11-21 15:19:53 +00:00
Karan Desai af4f94b995 Merged in bugfix/smart_chunk_ac_inputs (pull request #277)
update inputs for smart chunking

* update inputs for smart chunking

* updated test case inputs

* updated test case inputs

* Add keywords back to argument for ac smart chunking

* Test case fix


Approved-by: Katon Minhas
2024-11-20 19:01:26 +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
Siddhant Medar 569fe0e6f8 Merged in bugfix/health_plan_state (pull request #273)
Bugfix/health plan state

* minor bugfix to cover an edge-case

* updated state_check function and unit tests

* Merged main into bugfix/health_plan_state

* Merged main into bugfix/health_plan_state


Approved-by: Katon Minhas
2024-11-15 21:15:33 +00:00
Alex Galarce 0396418b9f Merged in feature/costlog (pull request #264)
Add cost logging

* add inspect logging

* change comment

* add simple token estimation

* rudimentary costlog

* compute cost

* float formatting

* put costlog to s3

* float formatting attempt 2

* fix formatting, remove a couple prints

* add missing comma

* add filename

* make costlog a .csv instead of a .log

* use csv library instead of from-scratch csv writing

* switch to import math, add test

* pyproject.toml Added src to pythonpath
* Merged main into feature/costlog

* add jupyter to requirements, add test path to pyproject.toml

* Merge remote-tracking branch 'refs/remotes/origin/feature/costlog' into feature/costlog

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

* merge in main

* add TODOs

* Merged main into feature/costlog

* Merged main into feature/costlog


Approved-by: Michael McGuinness
Approved-by: Katon Minhas
2024-11-14 22:36: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
Katon Minhas 73020bdc10 Merged in bugfix/full_context_check (pull request #270)
Update for full-context AC chunks to return exact contract_text instead of concatenated text_dict pages

* Update for full-context AC chunks to return exact contract_text instead of concatenated text_dict pages

* Updated test cases

* Updated case 1

* Merged main into bugfix/full_context_check


Approved-by: Alex Galarce
2024-11-14 21:16:43 +00:00
Michael McGuinness 5928ee0116 Merged in feature/add-dotenv (pull request #266)
Feature/add dotenv

* transferred sensitive information to .env file from src/config.py

* replace model IDs, AWS account info

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

* add explanatory comment

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

* remove tests that were just for local


Approved-by: Katon Minhas
2024-11-14 16:35:33 +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
Alex Galarce 001c2e45b5 Merged in hotfix/plan_state (pull request #267)
plan state hotfix

* updated state_check function

* added a wrapper function apply_state_check_to_df function to enable state_check function to work with dataframe and also wrote unit tests for both the functions.

* Merged main into hotfix/plan_state

* append extra column with new health plan state corrected

* Merge remote-tracking branch 'refs/remotes/origin/hotfix/plan_state' into hotfix/plan_state

* fix tests

* move apply_state_check_to_df() to cnc_hotfix.py

* move all functionality out of utils and into cnc_hotfix.py

* Merge remote-tracking branch 'origin/main' into hotfix/plan_state

* remove duplicated pythonpath in pyproject.toml

* format cnc_hotfix.py

* changed to use valid.STATE_MAP to not duplicate functionality


Approved-by: Katon Minhas
2024-11-13 20:12:40 +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 8c6867800a Merged in feature/outputSplit (pull request #263)
Add split_and_write_csv function to utils

* Add split_and_write_csv function to utils

* Merge branch 'main' into feature/outputSplit


Approved-by: Alex Galarce
2024-11-11 19:45:07 +00:00