Commit Graph

1263 Commits

Author SHA1 Message Date
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
Mayank Aamseek 2151b4ace6 Merged in proc-code-indirect (pull request #418)
Proc code indirect

* indirect proc codes added

* bug fix

* bug fix

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

* bug fix

* Merged main into proc-code-indirect


Approved-by: Katon Minhas
2025-02-26 18:10:06 +00:00
Katon Minhas 1220f450ac Merged in field/initialize-prov-specialty (pull request #417)
field/initialize prov specialty

* Run One-To-N before One-To-One

* Switch PROV_TYPE to Exhibit-Level

* Modify PROV_TYPE prompt

* Add REIMBURSEMENT_PROV_NAME prompt

* prompt modification

* Prompt change

* Merge branch 'main' into field/initialize-reimb-prov-name

* Merge branch 'main' into field/initialize-prov-specialty

* Initialized Prov_Specialty

* Remove print statements

* Removed testing variables

* Remove test statements

* add CONTRACT_PROV_SPECIALTY

* prompt changes

* Update crosswalks

* Add mapping for lists


Approved-by: Alex Galarce
2025-02-26 14:14:30 +00:00
Alex Galarce 6d6839dcd4 Merged in hotfix/code-description-handling (pull request #416)
Hotfix/code description handling

* Update date formatting in prompts to YYYY/MM/DD

* fix tests for new date formatting

* Enhance code parsing to support comma-separated values in get_code_description function

* Merged main into hotfix/code-description-handling


Approved-by: Katon Minhas
2025-02-25 20:16:21 +00:00
Katon Minhas 1e2b96029e Merged in field/initialize-reimb-prov-name (pull request #415)
Field/initialize reimb prov name

* Run One-To-N before One-To-One

* Switch PROV_TYPE to Exhibit-Level

* Modify PROV_TYPE prompt

* Add REIMBURSEMENT_PROV_NAME prompt

* prompt modification

* Prompt change

* Merge branch 'main' into field/initialize-reimb-prov-name

* Merged main into field/initialize-reimb-prov-name


Approved-by: Alex Galarce
2025-02-25 17:14:45 +00:00
Katon Minhas ba6420102b Merged in field/reconfigure-prov-type (pull request #414)
Field/reconfigure prov type

* Run One-To-N before One-To-One

* Switch PROV_TYPE to Exhibit-Level

* Modify PROV_TYPE prompt

* Merge branch 'main' into field/reconfigure-prov-type


Approved-by: Alex Galarce
2025-02-25 17:11:02 +00:00
Alex Galarce ac6f28bc44 Merged in hotfix/format-dates-yyyy-mm-dd (pull request #413)
Update date formatting in prompts to YYYY/MM/DD

* Update date formatting in prompts to YYYY/MM/DD

* fix tests for new date formatting


Approved-by: Katon Minhas
2025-02-25 00:30:06 +00:00
Katon Minhas a43f574239 Merged in hotfix/remove-print-statements (pull request #411)
Hotfix/remove print statements

* Remove print statements

* added llm_answer_raw

* prompt edit


Approved-by: Alex Galarce
2025-02-21 20:24:34 +00:00
Katon Minhas 81dfe7896b Merged in field/stop-loss (pull request #407)
StopLoss, Outliers, and Sequestration

* changed any method to all method in list handling

* code mapping moved outside to run once

* Merge branch 'feature/daip2-97' into bugfix/proc-code-lists

* merge conflict fixed

* merge conflicts fixed

* incorporated latest changes from main

* Merged main into bugfix/proc-code-lists

* Move load all dataset to io_utils

* Fix list is_empty

* Updated poetry.lock

* Bugfix

* Docstring

* Docstrings

* Merge branch 'main' into bugfix/proc-code-lists

* Merge branch 'bugfix/proc-code-lists' into bugfix/dynamic-assignment-issue

* Add outliers, stop-loss, and sequestration to reimbursement-level primary prompt template

* Add stop loss fields

* Add outlier fields

* Add sequestration fields

* Remove test

* Docstrings

* Update test for no default exhibit_level_answer_dict

* Merge branch 'bugfix/dynamic-assignment-issue' into field/stop-loss

* Merge branch 'main' into field/stop-loss

* Merged main into field/stop-loss


Approved-by: Alex Galarce
2025-02-21 19:55:12 +00:00
Katon Minhas b296cd187b Merged in bugfix/dynamic-assignment-issue (pull request #408)
Bugfix/dynamic assignment issue

* Merged main into feature/proc-desc

* Uncomment test code

* Bugfix

* script optimisation for codes

* modified is empty function in string utils

* Remove test.py

* bug fix to handle list of proc_codes

* Merged main into bugfix/proc-code-lists

* changed any method to all method in list handling

* code mapping moved outside to run once

* Merge branch 'feature/daip2-97' into bugfix/proc-code-lists

* merge conflict fixed

* merge conflicts fixed

* incorporated latest changes from main

* Merged main into bugfix/proc-code-lists

* Move load all dataset to io_utils

* Fix list is_empty

* Updated poetry.lock

* Bugfix

* Docstring

* Docstrings

* Merge branch 'main' into bugfix/proc-code-lists

* Merge branch 'bugfix/proc-code-lists' into bugfix/dynamic-assignment-issue

* Update test for no default exhibit_level_answer_dict

* Merged main into bugfix/dynamic-assignment-issue


Approved-by: Alex Galarce
2025-02-21 18:03:08 +00:00
Katon Minhas 92029cdabe Merged in bugfix/proc-code-lists (pull request #403)
Bugfix/proc code lists

* Add admit type code

* add proc mod description

* Add bill type pos mapping

* Merged main into feature/proc-desc

* Uncomment test code

* Bugfix

* script optimisation for codes

* modified is empty function in string utils

* Remove test.py

* bug fix to handle list of proc_codes

* Merged main into bugfix/proc-code-lists

* changed any method to all method in list handling

* code mapping moved outside to run once

* Merge branch 'feature/daip2-97' into bugfix/proc-code-lists

* merge conflict fixed

* merge conflicts fixed

* incorporated latest changes from main

* Merged main into bugfix/proc-code-lists

* Move load all dataset to io_utils

* Fix list is_empty

* Updated poetry.lock

* Docstring

* Docstrings

* Merge branch 'main' into bugfix/proc-code-lists

* bug fix


Approved-by: Mayank Aamseek
Approved-by: Alex Galarce
2025-02-21 14:44:36 +00:00
Katon Minhas 87223cc3b8 Merged in field/initialize-prov-type (pull request #402)
Field/initialize prov type

* Code map bug fixes

* docstrings

* Initialize Rev and Diag descriptions

* Add 0 to front for rev codes

* Comments

* Merged main into feature/proc-desc

* Comments

* Separate grouper and diag codes

* add grouper version

* Bugfix"

* Add admit type code

* add proc mod description

* Add bill type pos mapping

* Merged main into feature/proc-desc

* Uncomment test code

* Bugfix

* Remove test.py

* Service Breakout prompt template

* list bugfix

* Merged main into feature/proc-desc

* concurrency

* Merge branch 'feature/proc-desc' into field/initialize-prov-type

* Added service_breakout function - only contains aarete prov-type rn

* Merge branch 'main' into field/initialize-prov-type

* Docstring


Approved-by: Alex Galarce
2025-02-20 21:16:20 +00:00
Faizan Mohiuddin 6a0b820b88 Merged in client-runs-dashboard-updates (pull request #406)
Client runs dashboard updates

* new dashboard code

* dashboard updates

* Merged main into client-runs-dashboard-updates

* Merged main into client-runs-dashboard-updates


Approved-by: Alex Galarce
2025-02-20 20:49:52 +00:00
Alex Galarce 073995a945 Merged in hotfix/fix_chroma_add_timestamps (pull request #405)
Hotfix/fix chroma add timestamps

* re-add chroma persistence

* add timestamps

* Merged main into hotfix/fix_chroma_add_timestamps

* add timestamp to file processing log message

* forgot parentheses to actually write datetime


Approved-by: Katon Minhas
2025-02-20 20:19:53 +00:00
Alex Galarce dcde32e7af Merged in feature/test-bed-facilitation (pull request #404)
Feature/test bed facilitation for 1-1 fields

* start comparing output to label data

* Enhance load_test_files.py to merge and reorder labels and predictions, outputting to CSV

* Refactor load_test_files.py to streamline label and prediction loading, sorting, and CSV output for date and TIN/NPI fields

* rename to one_to_one_comparison

* Merged main into feature/test-bed-facilitation

* rename notebook_config

* Merge branch 'feature/test-bed-facilitation' of https://bitbucket.org/aarete/doczy.ai into feature/test-bed-facilitation

* Merged main into feature/test-bed-facilitation


Approved-by: Katon Minhas
2025-02-20 16:31:29 +00:00
Katon Minhas 664397d713 Merged in feature/proc-desc (pull request #400)
feature/proc desc

* Update crosswalks - individual code level

* add embeddings

* Update embeddings

* Proc mappings

* code description mapping for PROC codes

* Code map bug fixes

* docstrings

* Initialize Rev and Diag descriptions

* Add 0 to front for rev codes

* Comments

* Merged main into feature/proc-desc

* Comments

* Separate grouper and diag codes

* add grouper version

* Bugfix"

* Add admit type code

* add proc mod description

* Add bill type pos mapping

* Merged main into feature/proc-desc

* Uncomment test code

* Bugfix

* Remove test.py

* list bugfix

* Merged main into feature/proc-desc

* concurrency


Approved-by: Alex Galarce
2025-02-20 04:10:33 +00:00
Alex Galarce a18d562d34 Merged in hotfix/fix-merge-when-no-reimb (pull request #401)
change join to outer so 1:1 merge works when no reimb

* change join to outer so 1:1 merge works when no reimb


Approved-by: Katon Minhas
2025-02-19 19:59:27 +00:00
Mayank Aamseek 9eb66c2c68 Merged in document_dates_optimization (pull request #397)
Document dates optimization

* simplified file processing for testing

* modified derived_term_date_prompt

* fixed day values with spaces or leading zeros

* modified contract termination date prompt

* updated termination date prompt

* reranking of chunks for better context

* exclude last date while calculating term date

* clean up

* clean up 2

* Merge branch 'main' into document_dates_optimization
pulled latest changes from main

* Merged main into document_dates_optimization

* fix unit tests

* Merged main into document_dates_optimization

* refactor: update termination date prompt for clarity and accuracy

* Merged main into document_dates_optimization

* fix pipeline

* Merge remote-tracking branch 'origin/main' into document_dates_optimization

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


Approved-by: Katon Minhas
2025-02-18 20:10:46 +00:00
Mayank Aamseek 4c98fcb230 Merged in feature/daip2-95 (pull request #396)
Feature/daip2 95

* testing carveout

* Merge branch 'main' into feature/daip2-95
pulled latest changes from main

* CONTRACT_DEFAULT_IND logic changed

* Merge branch 'main' into feature/daip2-95
pulled latest changes from main

* prompt updated to remove mention of last carveout

* Merged main into feature/daip2-95

* Merged main into feature/daip2-95

* prompt updated

* Merge branch 'feature/daip2-95' of https://bitbucket.org/aarete/doczy.ai into feature/daip2-95
latest changes pulled


Approved-by: Katon Minhas
2025-02-18 17:05:26 +00:00
Mayank Aamseek 722d8aa14a Merged in feature/daip2-101 (pull request #399)
Feature/daip2 101

* missing group tin fixed

* use tin prompt in full context when N/A

* fixed N/A TIN and applied same to NPI

* null tin fixed

* Merged main into feature/daip2-101

* if PROV_GROUP_TIN is still N/A, pick first value from tin_other

* Merge branch 'feature/daip2-101' of https://bitbucket.org/aarete/doczy.ai into feature/daip2-101
pulled latest changes from main


Approved-by: Katon Minhas
2025-02-17 19:43:55 +00:00
Alex Galarce b0c1730a0a Merged in hotfix/remove-persistent-chroma (pull request #398)
remove chroma persistence and add print statements

* remove chroma persistence and add print statements

* add print statement for file writing completion and remove commented-out code


Approved-by: Katon Minhas
2025-02-14 22:43:01 +00:00
Alex Galarce 4f363156e7 Merged in feature/new-prompts-for-methodology (pull request #395)
Feature/new prompts for methodology

* Added reimb. effective date and termination date

* Added prompt for identifying 'not to exceed' limitations in investment prompts

* Refactor field names for reimbursement effective and termination dates in investment prompts

* Clarified documentation for handling multiple reimbursement methods in investment prompts


Approved-by: Katon Minhas
2025-02-14 14:48:57 +00:00