Commit Graph

1374 Commits

Author SHA1 Message Date
Alex Galarce c6313460fc Merged in feature/row-count-by-pages (pull request #586)
Small bug - reversed testbed and results in page-level row counts

* Add page-level row count comparison to analyze discrepancies between testbed and results

* Fix key naming in page mismatch comparison for consistency

* Merged main into feature/row-count-by-pages

* Implement page-level grouping and comparison for row counts in testbed and results

* Fix row count difference calculation in page comparison

* Merged main into feature/row-count-by-pages

* Fix exhibit page normalization logic in group count calculations


Approved-by: Katon Minhas
2025-06-24 21:18:50 +00:00
Katon Minhas 27e09b5fbc Merged in feature/row-count-by-pages (pull request #585)
Feature/row count by pages

* Add page-level row count comparison to analyze discrepancies between testbed and results

* Fix key naming in page mismatch comparison for consistency

* Merged main into feature/row-count-by-pages

* Implement page-level grouping and comparison for row counts in testbed and results

* Fix row count difference calculation in page comparison


Approved-by: Alex Galarce
2025-06-24 17:42:45 +00:00
Mayank Aamseek 29612ed042 Merged in bugfix/fee_rate_conversion_rate (pull request #582)
Bugfix/fee rate conversion rate

* printing incorrect recall values

* values responsible for low recall added in spreadsheet

* changing match list to unmatch list for breakouts

* recall values added for 1-to-N

* print statements removed

* removed print statements

* Merged main into feature/test_files

* output formatting fix

* fixed cases where conversion factor was shown as fee rate

* Merged main into bugfix/fee_rate_conversion_rate

* Merged main into bugfix/fee_rate_conversion_rate

* unit of measure fixed

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

* Merged main into bugfix/fee_rate_conversion_rate

* functionality to create and compare multiple rows for AARETE_DERIVED_LOB added

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

* Merged main into bugfix/fee_rate_conversion_rate


Approved-by: Katon Minhas
2025-06-23 14:33:31 +00:00
VenkataKrishna Reddy Avula 0e3cd3f6c5 Merged in bugfix/reimb_pct_rate_fix (pull request #583)
bugfix/reimb pct rate fix to main

* updated pct rate post process

* postprocess pct rate

* Merged main into bugfix/reimb_pct_rate_fix

* removed comments


Approved-by: Katon Minhas
2025-06-23 13:11:31 +00:00
Alex Galarce c84decca8d Merged in feature/rework-table-handling (pull request #575)
Feature/rework table handling

* test: add cases for configuration boundary

* test: add table post-processing tests (cases to ensure preservation of post-table text and metadata during table operations)

* test: enhance table handling tests for small and large tables, ensuring proper suffixing and splitting behavior

* Fix and clarify intent in comments

* fix: enhance handling of post-table text when combining tables

* refactor: remove commented-out code in clean_tables function for clarity

* test: update post-table text preservation assertions and add debug tracing

* refactor: remove unused remove_table_from_page function and its test

* refactor: enhance combine method documentation and clarify split_by_size_with_smart_tables logic

* Merge remote-tracking branch 'origin/main' into feature/rework-table-handling

* refactor: reduce large table threshold from 1000 to 50 rows for better table splitting

* Add simple splitting

* refactor: uncomment dynamic answer retrieval in run_one_to_n_prompts for improved functionality

* Merge remote-tracking branch 'origin/main' into feature/rework-table-handling

* refactor: remove unused table handling functions and related constants for cleaner code

* refactor: remove unused test functions in preparation for new tests

* refactor: streamline continuation table handling by utilizing existing flags

* refactor: update table combination logic to include all tables from the main page

* refactor: enhance table handling to automatically resolve column mismatches, respect row limits, and improve unit/integration test coverage

* rename clean_tables_simple to clean_tables

* Update docstrings

* refactor: rename table handling functions

* Fix indentation and add tests

* isort, black

* Merge remote-tracking branch 'origin/main' into feature/rework-table-handling


Approved-by: Katon Minhas
2025-06-20 19:46:23 +00:00
Katon Minhas 97281d8ff8 Merged in bugfix/exhibit-linking (pull request #581)
Bugfix/exhibit linking

* Crosswalk updates

* Merge branch 'main' into bugfix/dynamic-primary-issues

* dont include section information in Exhibit Header

* Add Molina Health Benefit Exchange to Product-LOB mapping

* PPO-POS separate mapping

* Prevent inference of LOB from Program or Product

* Add SoonerSelect

* Update mapping rules to allow for direct values

* update prompts

* Prep for run

* Merged main into bugfix/dynamic-primary-issues

* Update unit tests

* Update Moda Product mappings

* Remove Care1st as Product for Centene

* testing

* Mapping update

* Mapping updates

* prep for merge

* Merged main into bugfix/dynamic-primary-issues

* update prompt template

* remove debugs

* Remove prints

* Merge branch 'bugfix/dynamic-primary-issues' into bugfix/exhibit-linking

* Merged main into bugfix/exhibit-linking

* Merge branch 'main' into bugfix/exhibit-linking


Approved-by: Alex Galarce
2025-06-19 18:31:00 +00:00
Katon Minhas d460b899e3 Merged in bugfix/dynamic-primary-issues (pull request #555)
Bugfix/dynamic primary issues

* Merge branch 'main' into bugfix/dynamic-primary-issues

* Merged main into bugfix/dynamic-primary-issues

* Crosswalk updates

* Merge branch 'main' into bugfix/dynamic-primary-issues

* dont include section information in Exhibit Header

* Add Molina Health Benefit Exchange to Product-LOB mapping

* PPO-POS separate mapping

* Prevent inference of LOB from Program or Product

* Add SoonerSelect

* Update mapping rules to allow for direct values

* update prompts

* Prep for run

* Merged main into bugfix/dynamic-primary-issues

* Update unit tests

* Update Moda Product mappings

* Remove Care1st as Product for Centene

* testing

* Mapping update

* Mapping updates

* prep for merge

* Merged main into bugfix/dynamic-primary-issues

* Merged main into bugfix/dynamic-primary-issues

* docstrings and formatting

* Get group provider for > 1

* Merged main into bugfix/dynamic-primary-issues


Approved-by: Alex Galarce
2025-06-19 17:20:39 +00:00
Katon Minhas a9a5fdeb9f Merged in hotfix/reimb-method-revert (pull request #580)
Revert "Merged in bugfix/reimb-method-mapping (pull request #573)"

* Revert "Merged in bugfix/reimb-method-mapping (pull request #573)"

This reverts commit db8e89d082.

* Revert prompt template


Approved-by: Alex Galarce
2025-06-19 16:25:02 +00:00
Mayank Aamseek 4a8ddd331d Merged in feature/test_files (pull request #578)
Feature/test files

* printing incorrect recall values

* values responsible for low recall added in spreadsheet

* changing match list to unmatch list for breakouts

* recall values added for 1-to-N

* print statements removed

* removed print statements

* Merged main into feature/test_files

* output formatting fix

* Merged main into feature/test_files


Approved-by: Katon Minhas
2025-06-18 18:57:45 +00:00
VenkataKrishna Reddy Avula 69aebb053e Merged in bugfix/lesser_of_rows_and_pct_rate (pull request #576)
bugfix/lesser_of_rows_and_pct_rate -> main

* updated reimb term breakout prompt

* updated lesser_of_ind prompt

* Merged main into bugfix/lesser_of_rows_and_pct_rate

* Merged main into bugfix/lesser_of_rows_and_pct_rate


Approved-by: Katon Minhas
2025-06-18 18:38:43 +00:00
Mayank Aamseek db8e89d082 Merged in bugfix/reimb-method-mapping (pull request #573)
Bugfix/reimb method mapping

* Update reimb method values

* Merged main into bugfix/reimb-method-mapping

* updated reimb method values

* updated mapping

* prompt updated to remove mappings

* mapping incorporated

* formatting fixed

* pipeline error fixed

* Merge branch 'main' into bugfix/reimb-method-mapping

* cost values removed

* redundant function remove_update_reimbursement()removed

* updated reimb term breakout prompt

* Merge remote-tracking branch 'origin/bugfix/lesser_of_rows_and_pct_rate' into bugfix/reimb-method-mapping

* Merged main into bugfix/reimb-method-mapping


Approved-by: Alex Galarce
2025-06-18 18:07:47 +00:00
Katon Minhas 2e0fa2eed6 Merged in bugfix/date-format-fixes (pull request #577)
Bugfix/date format fixes

* Switch to 12/31 for auto renews

* Remove redundant postprocessing

* Switch to 12/31 for auto renews

* auto renew = Y


Approved-by: Alex Galarce
2025-06-17 20:26:39 +00:00
Alex Galarce 31e1c43f0a Merged in feature/formatted-prov-info-json (pull request #574)
Feature/formatted prov info json

* Add newline and pipe-delimited formatting for provider info JSON

* Add new investment column names for nicely-formatted PROV_INFO_JSON

* remove PROV_INFO_JSON_PIPE and rename PROV_INFO_JSON_NEWLINE to PROV_INFO_JSON_FORMATTED

* Merge remote-tracking branch 'origin/main' into feature/formatted-prov-info-json


Approved-by: Katon Minhas
2025-06-12 16:39:03 +00:00
VenkataKrishna Reddy Avula 452a2de7d0 Merged in bugfix/NTE_num_rows (pull request #570)
Bugfix/NTE num rows to Main

* updated REIMB_TERM_BREAKOUTprompt

* Merged main into bugfix/NTE_num_rows

* updated NTE prompt

* updated reimb_pct_rate prompt

* updated reimb_method prompt

* added cost prompt in reimb method

* Merged main into bugfix/NTE_num_rows

* conflict fixes

* Merged main into bugfix/NTE_num_rows

* updated prompts


Approved-by: Alex Galarce
2025-06-12 14:00:14 +00:00
Alex Galarce 5d5f633f02 Merged in feature/formatted-prov-info-json (pull request #572)
Feature/formatted prov info json

* Add newline and pipe-delimited formatting for provider info JSON

* Add new investment column names for nicely-formatted PROV_INFO_JSON


Approved-by: Katon Minhas
2025-06-11 23:15:31 +00:00
Alex Galarce 1c700122e8 Merged in feature/service-reimb-deduplication (pull request #568)
Add (service, methodology) deduplication with accumulator

* Add deduplication with accumulator

* Merge remote-tracking branch 'origin/main' into feature/service-reimb-deduplication

* Replace print statement with logging.debug for cross-exhibit duplicate detection

* Fix and add tests for one_to_n_funcs

* Merge remote-tracking branch 'origin/main' into feature/service-reimb-deduplication

* Add seen_pairs parameter to reimbursement_level function in tests


Approved-by: Katon Minhas
2025-06-11 20:54:48 +00:00
Mayank Aamseek 45f1584f38 Merged in bugfix/reimb_method (pull request #571)
reimb_method as flat rate instead of per diem fixed

* reimb_method as flat rate instead of per diem fixed


Approved-by: Katon Minhas
2025-06-11 14:07:44 +00:00
Katon Minhas f556e352b8 Merged in hotfix/exhibit-linking-fix (pull request #569)
Hotfix/exhibit linking fix

* Add test

* Add empty header condition

* Remove test


Approved-by: Alex Galarce
2025-06-10 21:43:34 +00:00
Katon Minhas baf5002b2c Merged in feature/exhibit-linking (pull request #564)
Feature/exhibit linking

* Initialize new exhibit header prompt

* Save

* Merge branch 'main' into feature/exhibit-linking

* update prompt

* cleanup return type

* remove test

* Test fixes

* Fix test

* Add tests

* Merge branch 'main' into feature/exhibit-linking

* Merge branch 'main' into feature/exhibit-linking

* Remove test notebooks

* Delete test notebook

* Save

* Merge branch 'main' into feature/exhibit-linking

* try except for exhbit page finding

* Prep for merge

* update test

* Remove test

* Merge branch 'main' into feature/exhibit-linking

* update unit test

* Fix unit test

* replace try except

* Update page sort

* Add docstring


Approved-by: Alex Galarce
2025-06-10 19:50:15 +00:00
Alex Galarce 0c07167094 Merged in hotfix/exhibit-headers-bug (pull request #567)
switch to `preprocessing_funcs.get_exhibit_headers`

* switch to `preprocessing_funcs.get_exhibit_headers`


Approved-by: Katon Minhas
2025-06-10 18:12:56 +00:00
Katon Minhas 201c77b097 Merged in hotfix/implement-get-exhibit-dict (pull request #566)
Hotfix/implement get exhibit dict

* Utilize get_exhibit_dict

* delete chunk test


Approved-by: Alex Galarce
2025-06-10 01:41:47 +00:00
Alex Galarce f84023d742 Merged in bugfix/table-preprocessing (pull request #560)
Bugfix/table preprocessing

* restructure get_exhibit_dict

* exhibit header

* update exhibit header handling

* update docstring

* bugfix

* remove test - update docstring

* Merged main into bugfix/table-preprocessing

* refactor: update page_key_sort to return float for numeric keys

* refactor: enhance get_exhibit_dict to improve chunking logic for exhibits

* refactor: update page_key_sort to return float for numeric keys

* test: add unit tests for get_exhibit_dict function

* test: fix test case 7

* Add final, difficult test

* refactor: enhance get_exhibit_dict to handle single decimal page exhibits and improve chunking logic

* pulled `one_to_n_test.py` from dynamic primary branch

* fix: update common_file_names logic to remove specific entry and log changes

* docs: update get_exhibit_dict docstring to clarify input and output formats

* test: add test for exhibit handling with decimal pages in get_exhibit_dict

* feat: add debug logging for exhibit chunk mapping and exhibit dictionary keys in one_to_n_exhibit_chunking

* Merge remote-tracking branch 'origin/main' into bugfix/table-preprocessing

* feat: enhance spatial processing rules and consistency checks for reimbursement terms

* feat: update global scan methodology to enhance context extraction for reimbursement constraints

* Merge remote-tracking branch 'origin/main' into bugfix/table-preprocessing


Approved-by: Katon Minhas
2025-06-09 21:49:45 +00:00
Alex Galarce 32d431ec4e Merged in feature/remove-exhibit-filtering (pull request #565)
strip out reimbursement exhibit identification

* strip out reimbursement exhibit identification


Approved-by: Katon Minhas
2025-06-09 21:35:20 +00:00
Mayank Aamseek 0d3a110e26 Merged in hotfix/methodology_breakout_issue_fixes (pull request #562)
Hotfix/methodology breakout issue fixes

* additional values in unit of measure removed

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* added valid list of unit of measure

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes


Approved-by: Katon Minhas
2025-06-09 13:04:21 +00:00
Katon Minhas f7c41326d3 Merged in feature/update-dynamic-mappings (pull request #561)
Update mappings

* Initial commit - update mappings

* Update product mapping


Approved-by: Alex Galarce
2025-06-06 18:37:36 +00:00
Katon Minhas e5d5c71781 Merged in feature/selective-reimb-prov-info (pull request #558)
Update reimb tin-npi-name passing to reimbursement primary

* Update reimb tin-npi-name passing to reimbursement primary

* Refactor reimbursement_tin_npi to streamline provider value extraction and improve handling of empty values


Approved-by: Alex Galarce
2025-06-05 18:37:25 +00:00
Alex Galarce 3be2f44cb1 Merged in feature/global-lesser-of (pull request #553)
Feature/global lesser of

* Merge remote-tracking branch 'origin/feature/reimb-primary-updates'

* First try at global "lesser of"

* Generate reimb_ids further upstream

* Implement global lesser of injection and extraction logic in file processing

* Update logic to change LESSER_OF_IND in-place for global affected rows; add docstrings

* Refactor global lesser of injection logic to create new rows for REIMB_IDs lacking lesser of logic; update original rows in place and improve tracking flags.

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

* Add logging for global lesser of logic injection and update handling of original rows

* Refactor global lesser of logic: move functions to one_to_one_funcs.py and update inject_global_lesser_of_rows to use new implementations

* Move imports for METHODOLOGY_BREAKOUT_QUESTIONS and REIMB_TERM_BREAKOUT to the top of one_to_one_funcs.py for better organization and to remove prototype comments.

* isort

* Refactor import statement for generate_reimb_ids to use the full module path for clarity

* load field from JSON instead of hardcoded values

* Update logging levels in investment_field_testing notebook

* Merged main into feature/global-lesser-of

* Remove unnecessary comment from investment_postprocessing_funcs import statement for clarity

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

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

* Remove debug print statement from process_file function

* fix call to Field.load_from_file

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

* Add tracking flag for global lesser of logic when none is found

* explicitly sort by FILE_NAME, EXHIBIT_PAGE, and REIMB_LESSER_OF_ID columns

* Add new field type, "full_context_separate", to make sure that we don't run it twice.  Also formatting fix

* Fix iteration over separate fields in run_full_context_fields function


Approved-by: Katon Minhas
2025-06-04 19:49:10 +00:00
Katon Minhas b59154cfd9 Merged in hotfix/preprocessing-error (pull request #556)
Bugfix

* Bugfix


Approved-by: Alex Galarce
2025-06-03 22:11:10 +00:00
Katon Minhas ca01d49452 Merged in bugfix/dropped-pages (pull request #554)
Bugfix/dropped pages

* Rearrange

* Update table preprocessing

* Remove print

* Remove page start

* test for table issue

* Merged main into bugfix/dropped-pages

* prints and documentation

* Pipeline fix

* remove get_pages_to_process


Approved-by: Alex Galarce
2025-06-03 20:47:42 +00:00
Mayank Aamseek 28ab4b5d93 Merged in initialize-conversion-factor (pull request #552)
Initialize conversion factor

* REIMB_CONVERSION_FACTOR prompt added

* Merge branch 'main' into initialize-conversion-factor

* Merge branch 'main' into initialize-conversion-factor

* conversion factor fixed

* prompt fix for conversion factor

* Merge branch 'main' into initialize-conversion-factor

* prompts updated for REIMB_FEE_RATE and AARETE_DERIVED_REIMB_METHOD

* Merged main into initialize-conversion-factor

* prompt fix

* Merge branch 'initialize-conversion-factor' of https://bitbucket.org/aarete/doczy.ai into initialize-conversion-factor


Approved-by: Katon Minhas
2025-06-03 15:58:50 +00:00
VenkataKrishna Reddy Avula 99f08796fb Merged in bugfix/lesser_of_ind (pull request #551)
bugfix/lesser_of_ind to main

* updated lesser_of_ind prompt

* Merged main into bugfix/lesser_of_ind


Approved-by: Katon Minhas
2025-06-03 15:05:36 +00:00
VenkataKrishna Reddy Avula 4c1b85a2e8 Merged in bugfix/reimb_pct_rate (pull request #548)
fixed reimb_pct_rate empty values

* fixed reimb_pct_rate empty values

* updated lesser of prompt

* rolled back lesser_of_ind prompt

* updated REIMB_PCT_RATE prompt

* updated fill_empty_reimb_pct_rate

* fixed Value Error

* Merged main into bugfix/reimb_pct_rate


Approved-by: Katon Minhas
2025-06-03 13:50:46 +00:00
VenkataKrishna Reddy Avula e096d03fba Merged in bugfix/effective_date (pull request #550)
Bugfix/effective_date to main

* fixed string page numbers issue


Approved-by: Katon Minhas
2025-06-02 13:04:52 +00:00
Alex Galarce 780dac2ec1 Merged in feature/fuzzy-match-no-numbers (pull request #549)
Feature/fuzzy match no numbers

* Add fuzzy matching function for string comparison and enhance term extraction result evaluation

* Enhance term extraction results evaluation by adding counts and readable strings for matched, false negatives, and false positives

* Adjust text similarity threshold to 65 and improve readability of comparison results in term extraction evaluation

* Merged main into feature/fuzzy-match-no-numbers


Approved-by: Katon Minhas
2025-05-30 15:10:19 +00:00
Alex Galarce 806c272dc5 Merged in feature/further-reimb-primary-improvements (pull request #546)
Feature/further reimb primary improvements

* Refactor identify_reimbursement_exhibits to return both EXPLICIT and IMPLICIT values

* Moving from # Debugging lines to `logger`

* Enhance "lesser of" and exception language instructions in reimbursement terms

* clarify unclear print/logging statements

* Replace debugging print statements with logging in get_reimbursement_primary function

* Add logging for page processing in run_one_to_n_prompts function


Approved-by: Katon Minhas
2025-05-29 22:33:12 +00:00
Alex Galarce 9db0fb328e Merged in bugfix/identify-tables (pull request #544)
Don't consider table-subpages each individually for reimbursement exhibit identification

* Refine EXHIBIT_CHECK prompt

* test: rework `get_exhibit_pages` for table subpages

* Fix indentation

* Experimental table de-chunking

* Increase max_tokens for Claude model in exhibit page processing

* fix get_pages_to_process docstring

* refactor: improved docstring for get_exhibit_pages

* move `get_pages_to_process` to `preprocess.py`

* test: add unit tests for get_pages_to_process function

* Comment out debugging lines

* Changed prompt that was breading universal_json_load parsing

* fix: handle "no results" case in get_reimbursement_primary function

* fixed docstring


Approved-by: Katon Minhas
2025-05-28 16:57:23 +00:00
Katon Minhas 7a44c8575d Merged in bugfix/remaining-dynamic-issues (pull request #543)
Bugfix/remaining dynamic issues

* Add Care1st-->Medicaid mapping for Centene

* Streamlined fill_na_mapping

* Update prompt for reimbursement-level dynamic fields - remove unknown

* Merge branch 'main' into bugfix/remaining-dynamic-issues

* Remove test


Approved-by: Alex Galarce
2025-05-22 19:53:15 +00:00
Mayank Aamseek f9b88959c3 Merged in feature/daip2-193 (pull request #532)
payemnt carveout added

* payemnt carveout added

* Merge branch 'main' into feature/daip2-193

* refined PAYMENT_CARVEOUT related prompts

* Merge branch 'main' into feature/daip2-193

* notebook updated

* notebook updated

* Merge branch 'main' into feature/daip2-193

* carveout blank values and default ind corrected

* print statement removed

* field_type changed for default_ind

* payment_carveout description updated to add code

* duplicate run of get_methodology_breakout fixed

* pipeline error fixed

* pipeline error fixed

* Merge branch 'main' into feature/daip2-193

* updated AARETE_DERIVED_REIMB_METHOD prompt

* default_term prompt changed

* refined copilot checked AARETE_DERIVED_REIMB_METHOD prompt

* Merge branch 'main' into feature/daip2-193

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

* spelling error fixed

* Merged main into feature/daip2-193


Approved-by: Alex Galarce
2025-05-22 19:19:19 +00:00
Alex Galarce cacb79edea Merged in hotfix/bug-in-test-reimb-primary (pull request #542)
fix bug in argument order for test.py

* fix bug in argument order


Approved-by: Katon Minhas
2025-05-22 16:29:59 +00:00
Alex Galarce da174ceefa Merged in feature/default-term-new-prompt (pull request #539)
default term new prompt and de-duplication before Methodology Breakout

* Refine prompts for default indicator methodology and enhance instructions for final reimbursement methodology output

* Enhance DEFAULT_INDICATOR prompt to clarify its role as a fallback reimbursement method

* Implement service-reimb tracking to prevent duplicates

* Refactor methodology breakout processing to reduce code duplication and improve clarity

* Remove debugging print statements and improve item ID formatting in reimbursement processing

* Merge remote-tracking branch 'origin/main' into feature/default-term-new-prompt

* Refactor methodology breakout processing to remove duplicate tracking and simplify logic

* Merged main into feature/default-term-new-prompt

* Merged main into feature/default-term-new-prompt

* rename _process_answer_dict to _process_carveout_or_breakout


Approved-by: Katon Minhas
2025-05-22 15:39:03 +00:00
Katon Minhas 098c10b9ca Merged in bugfix/dynamic-primary-issues (pull request #541)
Bugfix/dynamic primary issues

* Update reimbursement exhibit detection

* Remove prints

* Update prompt

* Decrease header size

* Prompt update - only return dynamic 1:1 values if applied to entire contract

* Testing

* pipe-delimited

* Merged main into bugfix/dynamic-primary-issues

* Fix Product->LOB mapping

* Remove test

* remove commented crosswalk code

* Remove print


Approved-by: Alex Galarce
2025-05-22 15:04:19 +00:00
Katon Minhas 282d4fa6ed Merged in feature/testbed-mods (pull request #540)
Feature/testbed mods

* Initial commit - handle TN for prov info

* one-to-one fix for prec rec acc

* Update calculation

* update tests

* Update calculation

* one-to-one comparison updates

* Testbed metrics script improvements

* Update output format


Approved-by: Alex Galarce
2025-05-21 19:26:06 +00:00
Katon Minhas 597d28045b Merged in feature/implicit-proc-mapping (pull request #531)
Feature/implicit proc mapping

* Testing scripts

* Refactor code primary

* implicit draft

* Merge branch 'main' into feature/implicit-proc-mapping

* Prompt update

* Prompt changes

* Experiments with preprocessing

* code updates

* Merged main into feature/implicit-proc-mapping

* Add condition to avoid Covered Services

* Add functions to main script

* remove explanations

* Error handling

* Genericize prompt

* Final prompt updates

* remove test file

* prep for merge

* Merged main into feature/implicit-proc-mapping

* Merged main into feature/implicit-proc-mapping


Approved-by: Alex Galarce
2025-05-19 20:26:24 +00:00
Katon Minhas e510e8f6c2 Merged in feature/product-mapping (pull request #519)
Feature/product mapping

* Initialize product-lob mapping

* Update Products for Moda

* Add valid products to the prompt

* Update fill_na_mapping

* E2E test passed

* Update product-lob mapping

* Merged main into feature/product-mapping

* Merged main into feature/product-mapping

* Add product mappings

* update mappings

* Add Healthy Families Benefit Program --> CHIP mapping

* Merged main into feature/product-mapping

* Merged main into feature/product-mapping

* Blank products

* Ready for merge

* Merged main into feature/product-mapping

* Merged main into feature/product-mapping


Approved-by: Alex Galarce
2025-05-19 20:04:59 +00:00
Katon Minhas 08bba13c07 Merged in feature/update-mappings (pull request #537)
Update program mappings

* Update program mappings

* Merged main into feature/update-mappings


Approved-by: Alex Galarce
2025-05-19 18:19:29 +00:00
Alex Galarce de6004bbd1 Merged in feature/mb-prompt-and-testbed-cleanup (pull request #536)
Refactor methodology breakout prompt, small testbed cleanup

* Refactor REIMB_TERM_BREAKOUT prompt.  Include service AND methodology.  Change to sections formatting.

* rename some columns in `Reimbursement Primary` tab of test output


Approved-by: Katon Minhas
2025-05-19 18:18:49 +00:00
Alex Galarce 97dad37ba0 Merged in feature/no-longer-concat-names (pull request #535)
Feature/no longer concat names

* Simplify deduplication logic for no AKAs

* Add unit tests

* Merge remote-tracking branch 'origin/main' into feature/no-longer-concat-names


Approved-by: Katon Minhas
2025-05-16 21:17:38 +00:00
Mayank Aamseek 4d48c4c63e Merged in feature/daip-219 (pull request #525)
standardized AARETE_DERIVED_FEE_SCHEDULE, removed Unit of Measure as Encounter, fix where conversion factor is captured as fee rate

* standardized AARETE_DERIVED_FEE_SCHEDULE, removed Unit of Measuer as Encounter, fix where conversion factor is captured as fee rate

* REIMB_FEE_RATE prompt updated

* updated derived fee schedule values

* updated derived fee schedule version prompt

* Merge branch 'main' into feature/daip-219

* update REIMB_PCT_RATE prompt

* Merged main into feature/daip-219

* Merged main into feature/daip-219

* Update all-caps

* Update capitalization


Approved-by: Katon Minhas
2025-05-16 16:33:57 +00:00
Mayank Aamseek a89c346ca3 Merged in bugfix/smart-chunking (pull request #527)
find_overlap function added to handle inconsistent chunk size

* find_overlap function added to handle inconsistent chunk size

* set min chunk overlap needed to remove overlap to 3

* Merge branch 'main' into bugfix/smart-chunking

* pipeline error fixed

* Merge branch 'main' into bugfix/smart-chunking

* spelling fix


Approved-by: Katon Minhas
2025-05-15 19:51:19 +00:00
Alex Galarce 8beaf61a65 Merged in feature/explore-methodology-primary (pull request #530)
Methodology Primary - New Prompt and Test Bed Utilities

* Add IDENTIFY_REIMBURSEMENT_EXHIBITS function to analyze exhibit headers for reimbursement information

* Add Zone.Identifier to .gitignore to prevent Windows zone information files from being tracked

* Add functionality to identify reimbursement exhibits

* Add functionality to identify reimbursement exhibits in run_one_to_n_prompts

* Output YAML parsing

* Refactor identify_reimbursement_exhibits to improve YAML parsing and error handling

* New reimbursement exhibit logic

* Update IDENTIFY_REIMBURSEMENT_EXHIBITS_PROMPT to return PAGE NUMBERS instead of exhibit headers

* Fix identify_reimbursement_exhibits to return page numbers as strings after YAML parsing

* Remove debugging print statement for reimbursement exhibits in run_one_to_n_prompts

* Remove commented debugging print statements in identify_reimbursement_exhibits

* Increase read_timeout in EC2 configuration from 2000 to 4000

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

* Remove debugging print statements in get_reimbursement_primary function

* mypy error

* Fix return type in identify_reimbursement_exhibits to ensure keys are returned as a list

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

* Refactor REIMBURSEMENT_LEVEL_PRIMARY prompt

* Merge remote-tracking branch 'origin/main' into feature/explore-methodology-primary

* Rename and document row comparison function

* Merge remote-tracking branch 'origin/main' into feature/explore-methodology-primary

* Add reimbursement primary analysis and comparison function to testbed

* Enhance reimbursement exhibit identification prompt with explicit and implicit indicators

* Rename ground truth count and pairs in term extraction results for clarity

* shorten methdology_primary_row_comparison notebook


Approved-by: Katon Minhas
2025-05-14 20:44:22 +00:00