Commit Graph

394 Commits

Author SHA1 Message Date
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
Katon Minhas 39219d0cea Merged in hotfix/filterFalse (pull request #260)
Fix input_dict_ac issue when filter=False

* Fix input_dict_ac issue when filter=False

* Update comments


Approved-by: Alex Galarce
2024-11-06 16:44:41 +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
Alex Galarce de41567da0 Merged in feature/reformat_jenkins_output (pull request #256)
DRAFT: reformat jenkins output

* dockerfile

* noreadme

* Merged main into feature/fieldExtractionDockerfile

* allow output bucket to be changed, change formatting of prefixes

* Merged main into feature/reformat_jenkins_output

* check if bucket exists and throw error if not

* only check bucket if writing to s3

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

* remove circular import


Approved-by: Michael McGuinness
2024-11-01 18:52:15 +00:00
Michael McGuinness 8860a78436 Merged in feature/fieldExtractionDockerfile (pull request #254)
Create Dockerfile

* dockerfile

* noreadme

* Merged main into feature/fieldExtractionDockerfile


Approved-by: Alex Galarce
2024-11-01 13:44:32 +00:00
Alex Galarce 218cafd274 Merged in feature/write-to-s3 (pull request #255)
write to S3, quick and dirty

* write to S3, quick and dirty


Approved-by: Michael McGuinness
2024-10-31 15:36:55 +00:00
Alex Galarce 95636ae307 Merged in bugfix/create_output_consolidated (pull request #250)
create output_consolidated if it doesn't exist

* create output_consolidated if it doesn't exist

* Merged main into bugfix/create_output_consolidated


Approved-by: Michael McGuinness
Approved-by: Faizan Mohiuddin
2024-10-29 16:43:25 +00:00
Michael McGuinness 533ddc38a9 Merged in bugfix/actualPipes (pull request #251)
Bugfix/actualPipes

* actual

* actual


Approved-by: Alex Galarce
2024-10-29 15:45:48 +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 7cb0b485ad Merged in feature/unittestframe (pull request #240)
Unit Testing Framework

* emptyframe

* fixstatic

* save

* exampletest

* rmreqs

* rmUto


Approved-by: Alex Galarce
2024-10-22 13:45:53 +00:00
Michael McGuinness 815fa7f0bc Merged in feature/poetry (pull request #238)
Draft: Adding Poetry

* addpoetry

* pipes

* mypy

* streamlit

* searchforchange


Approved-by: Alex Galarce
2024-10-15 16:20:27 +00:00
Michael McGuinness 168d197349 Merged in feature/lightStaticTypes (pull request #234)
Add static type check

* artifacts

* dockerfileforall

* examplemypystep

* reqs

* baseMain

* oneperservice

* somebasicchanges

* deps

* removedeps

* removeerrs

* singlecommand

* lessargs

* 312base

* versionanderr

* pythonversion

* ithinkfinalerrs

* numpyv

* versionsandconditional

* changesets

* tryagain

* lint

* numpyagain

* init

* clearstreamlit

* forcestreamlit


Approved-by: Umang Mistry
2024-10-11 15:26:16 +00:00
Michael McGuinness edd4fe61ba Merged in feature/addReqs (pull request #233)
Add Requirements.txt

* requirements


Approved-by: Alex Galarce
2024-10-10 16:44:16 +00:00
Michael McGuinness 7772d1833a reformatting 2024-09-30 15:28:07 +01:00
Michael McGuinness 7285f56d79 client 2024-09-30 15:27:46 +01:00
Michael McGuinness 14c3d8ef11 columns 2024-09-30 15:27:46 +01:00
Michael McGuinness 44198fe272 moreclean 2024-09-30 15:27:44 +01:00
Michael McGuinness 10885de3cd cleanup 2024-09-30 15:27:30 +01:00
Michael McGuinness b91e3abbd9 rebase 2024-09-30 15:27:02 +01:00
Michael McGuinness 674d387f82 rename 2024-09-30 15:26:42 +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