Commit Graph

1406 Commits

Author SHA1 Message Date
Katon Minhas aa149ee498 Merged in refactor/prompt-template (pull request #620)
Move prompt template

* Move prompt template


Approved-by: Alex Galarce
2025-07-17 13:24:01 +00:00
Alex Galarce 10e534bc77 Merged in feature/check-reimb-filtering (pull request #617)
Enhance reimbursement filtering, extraction, and second-order redundancy checks

* Enhance reimbursement methodology documentation with additional valid and invalid examples

* Refine reimbursement methodology extraction guidelines for clarity and detail

* Add debug logging for methodology breakout prompt and LLM response

* Add clarification for non-reimbursement statements in reimbursement guidelines

* for exhibit lesser-of processing, add second-order redundancy checks using LLM

* Add filename parameter to exhibit lesser-of application and log LLM response for redundancy check

* Merge remote-tracking branch 'origin/main' into feature/check-reimb-filtering


Approved-by: Katon Minhas
2025-07-16 21:44:35 +00:00
VenkataKrishna Reddy Avula c7870e7d2f Merged in bugfix/special_case_breakout_test_metrics (pull request #615)
bugfix/special_case_breakout_test_metrics to main

* updated special case breakout fields to testbed metrics

* Merged main into bugfix/special_case_breakout_test_metrics


Approved-by: Alex Galarce
2025-07-16 14:28:23 +00:00
Mayank Aamseek 96bb039502 Merged in bugfix/methodology-breakout-issues (pull request #606)
Bugfix/methodology breakout issues

* prompt updated

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

* print statements added for testing

* test notebook added

* Merge remote-tracking branch 'origin/main' into bugfix/methodology-breakout-issues

* multiple fee schedule in one term fixed

* print statements removed

* print statements removed

* print statements removed

* Merge remote-tracking branch 'origin/main' into bugfix/methodology-breakout-issues

* prompt updated to fix mcs issue (row 246)

* to fix mcs issue (row 278)

* Merge remote-tracking branch 'origin/main' into bugfix/methodology-breakout-issues

* special cases and carveouts separated

* reverted back unlisted_code carveout_ind value

* pipeline error fixed

* Merge remote-tracking branch 'origin/main' into bugfix/methodology-breakout-issues

* fixes relted to multiple procedure reductions and lesser of

* Merge remote-tracking branch 'origin/main' into bugfix/methodology-breakout-issues

* breaking special and carveout

* code cleanup

* Merge branch 'main' into bugfix/methodology-breakout-issues

* Merged main into bugfix/methodology-breakout-issues

* comments added

* lesser of prompt updated to handle nested cases


Approved-by: Alex Galarce
2025-07-15 14:31:39 +00:00
Alex Galarce 2680259f22 Merged in bugfix/samaritan-missing-rows (pull request #608)
Exhibit-level Lesser Of

* Enhance exception language clarity in investment prompts

* Roll back exception language

* initial try at exhibit_lesser_of

* simplify `create_exhibit_lesser_of_row`

* Refine prompt for extracting 'lesser of' and 'not to exceed' constraints in exhibit

* Remove unused `get_service_breakout` function; it was unreferenced

* run exhibit-level answers FIRST, apply exhibit lesser-of WITHIN reimbursement_level

* Refine prompt for extracting 'lesser of' and 'not to exceed' constraints to clarify expected output and handling of multiple constraints.

* Merge remote-tracking branch 'origin/main' into bugfix/samaritan-missing-rows

* add exhibit_lesser_of="N/A" to tests

* Add exhibit_lesser_of parameter to reimbursement_level calls in tests

* restore dynamic answer retrieval for primary, reimbursement info, and code fields

* Merge remote-tracking branch 'origin/main' into bugfix/samaritan-missing-rows

* "fill in the blank" prompt attempt

* Merge remote-tracking branch 'origin/main' into bugfix/samaritan-missing-rows

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

* Merge remote-tracking branch 'origin/feature/sonnet-4' into bugfix/samaritan-missing-rows

* Merge remote-tracking branch 'origin/main' into bugfix/samaritan-missing-rows

* Remove carveout patterns from has_explicit_lesser_of_carveout function

* Add deduplicate_methodology_breakout function to remove duplicate reimbursement methodologies

* Add deduplication of methodology breakout rows in postprocess function

* Enhance create_exhibit_lesser_of_row to avoid redundancy with substring checks

* Change log level from info to debug for exhibit constraint check in create_exhibit_lesser_of_row

* Remove deduplication of methodology breakout rows from postprocess function (we handle it upstream)

* Merged main into bugfix/samaritan-missing-rows


Approved-by: Katon Minhas
2025-07-14 22:04:41 +00:00
VenkataKrishna Reddy Avula 80967dfcee Merged in Feature/Addition_Fields (pull request #614)
Feature/Addition_Fields to Main

* initiated addition fields

* added AARETE_DERIVED_ADDITION_RATE_CHANGE_TIMELINE field


Approved-by: Katon Minhas
2025-07-14 17:02:36 +00:00
VenkataKrishna Reddy Avula 0032a71bbf Merged in bugfix/trigger_cap (pull request #613)
Bugfix/trigger cap to main

* updated trigger base threshold prompt

* Merged main into bugfix/trigger_cap

* updated trigger cap carveout_cd desc

* updated trigger cap carveout desc

* Merged main into bugfix/trigger_cap

* updated prompts

* added units for threshold

* Merge branch 'main' into bugfix/trigger_cap


Approved-by: Katon Minhas
2025-07-11 15:02:28 +00:00
VenkataKrishna Reddy Avula 7f041ea5b9 Merged in Feature/Rate_Escalators (pull request #612)
Feature/Rate Escalators to main

* added rate esalator fields

* Merged main into Feature/Rate_Escalators

* updated rate escalator prompts

* updated field names and prompts

* Merged main into Feature/Rate_Escalators

* updated pct prompt


Approved-by: Katon Minhas
2025-07-11 14:59:45 +00:00
Alex Galarce 3dd04b79ec Merged in feature/sonnet-4 (pull request #611)
Genericize claude-calling functions for Claude 3 and above; unify interfaces

* First-pass implementation for reimbursement filtering

* Enhance reimbursement level processing by filtering out services without reimbursement terms and logging when no valid pairs are found.

* Update mock return values in reimbursement level tests to reflect new reimbursement terms

* Merge remote-tracking branch 'origin/main' into feature/split-and-filter-reimbursements

* Refine reimbursement filtering by adding 'billed' to indicators and ensuring REIMB_TERM is a string before processing.

* Refactor is_empty function signature to support multiple input types and clarify return values

* adding LLM review for ambiguous reimbursement methodology cases

* more stringent keywords for stage 1 of reimbursement filtering

* refining rate and cost patterns for reimbursement filtering

* Enhance LLM response handling in reimbursement methodology check to improve accuracy and logging for ambiguous cases.

* Merge remote-tracking branch 'origin/main' into feature/split-and-filter-reimbursements

* Update reimbursement test cases to reflect accurate reimbursement terms and improve deduplication logic

* move VALIDATE_REIMBURSEMENTS_PROMPT to investment_prompts.py

* black, isort formatting

* Remove IDENTIFY_REIMBURSEMENT_EXHIBITS_PROMPT function (unused)

* Refactor Claude model invocation functions to support Claude 3 and above, enhancing error handling and adding unified interfaces for local and EC2 executions.

* Add support for Claude 3.7 model in local and EC2 invocation functions

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


Approved-by: Katon Minhas
2025-07-10 20:46:05 +00:00
Katon Minhas 6caf8dec2f Merged in hotfix/claim-type-cd (pull request #610)
Hotfix/claim type cd

* Fix exhibit_level prompt

* e2e test passed - successfully pulling multiple Claim Types per exhibit

* Merged main into hotfix/claim-type-cd


Approved-by: Alex Galarce
2025-07-10 19:42:55 +00:00
Alex Galarce de2e7291d1 Merged in feature/filter-out-clean-claims (pull request #609)
Enhance INVALID entries examples in reimbursement guidelines for clean claims

* Enhance INVALID entries examples in reimbursement guidelines for clean claims


Approved-by: Katon Minhas
2025-07-10 18:20:21 +00:00
Katon Minhas 45db295d17 Merged in hotfix/prov-info-json (pull request #607)
derive IS_GROUP

* derive IS_GROUP

* Update unit tests


Approved-by: Alex Galarce
2025-07-09 21:01:15 +00:00
Katon Minhas 4d3bfe0256 Merged in bugfix/mcs-issue-fixes (pull request #604)
Bugfix/mcs issue fixes

* debugging and initial prompt change

* Remove redundant reimb info

* Merged main into bugfix/mcs-issue-fixes

* Prep for merge

* update unit tests


Approved-by: Alex Galarce
2025-07-08 21:08:57 +00:00
Alex Galarce da362dcedb Merged in feature/script-add-lesser-of-id-to-testbed (pull request #603)
Add script to generate and save reimbursement IDs in testbed

* Add script to generate and save reimbursement IDs in testbed

* Merged main into feature/script-add-lesser-of-id-to-testbed


Approved-by: Katon Minhas
2025-07-08 17:19:34 +00:00
Alex Galarce 479675b05c Merged in feature/provider-state (pull request #602)
Feature/provider state

* Add prompt for extracting provider state information in investment prompts

* Add state normalization function and integrate into context field extraction

* black format string_utils.py; add tests for normalize_state_to_abbreviation function

* black format string_utils_test.py

* Add PROVIDER_STATE to investment column order

* Merged main into feature/provider-state


Approved-by: Katon Minhas
2025-07-07 21:42:49 +00:00
AARETE\agupta 5a8adf838d Merge branch 'main' of https://bitbucket.org/aarete/doczy.ai 2025-07-07 14:33:20 -05:00
Katon Minhas ac6dfdb721 Merged in bugfix/mcs-issue-fixes (pull request #601)
Bugfix/mcs issue fixes

* Update code primary prompt

* Merge branch 'main' into bugfix/mcs-issue-fixes

* No longer treat non-reimbursement tables as 'tables' for the purpose of preprocessing

* No longer extract Reimb Effective Date from footer of the page

* Merge branch 'main' into bugfix/mcs-issue-fixes

* Update unit tests

* Add postprocessing step to remove Reimb Date values when the 1:1 date values are identical

* Update unit tests

* prep for merge

* Remove excess prints

* Merged main into bugfix/mcs-issue-fixes

* Merge branch 'main' into bugfix/mcs-issue-fixes

* Prep for merge

* remove print


Approved-by: Alex Galarce
2025-07-07 16:57:47 +00:00
Alex Galarce 7dfabacbe8 Merged in bugfix/fix-overzealous-duplication (pull request #597)
Bugfix/fix overzealous duplication

* Refactor duplicate processing logic to scope seen pairs by base page, enhancing clarity and accuracy in deduplication.

* Enhance deduplication tests to include base page identifiers in seen pairs

* Merged main into bugfix/fix-overzealous-duplication


Approved-by: Katon Minhas
2025-07-07 15:00:56 +00:00
VenkataKrishna Reddy Avula f8f65e28ea Merged in feature/trigger_cap (pull request #598)
Feature/trigger cap to Main

* updated trigger cap prompts

* updated trigger cap prompts

* Merged main into feature/trigger_cap

* fixes field names in field order

* Merged main into feature/trigger_cap


Approved-by: Alex Galarce
2025-07-07 14:54:28 +00:00
Mayank Aamseek 28c6cd588e Merged in bugfix/methodology-breakout-issues (pull request #599)
Bugfix/methodology breakout issues

* restored old prompt

* updated claim type cd prompt

* claim_type exhibit level added

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

* field type updated

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

* fixed location of updating field_type to full_context

* updated ancillary examples

* removed print statements

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

* prompt updated to avoid N/A

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

* prompt changed to handle multiple matches

* prompt updated

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

* print statements added for testing

* test notebook added

* Merge remote-tracking branch 'origin/main' into bugfix/methodology-breakout-issues

* multiple fee schedule in one term fixed

* print statements removed

* print statements removed

* print statements removed


Approved-by: Alex Galarce
2025-07-07 13:14:20 +00:00
Alex Galarce 0230d07dda Merged in feature/split-reimbursements (pull request #593)
Feature/split reimbursements

* Update reimbursement test cases to reflect accurate reimbursement terms and improve deduplication logic

* move VALIDATE_REIMBURSEMENTS_PROMPT to investment_prompts.py

* black, isort formatting

* Remove IDENTIFY_REIMBURSEMENT_EXHIBITS_PROMPT function (unused)

* Add MODEL_ID_CLAUDE4_SONNET for new model integration (doesn't work right now)

* pipe delimited-output and parsing

* Merge remote-tracking branch 'origin/main' into feature/split-and-filter-reimbursements

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

* Add functionality to split compound reimbursement terms into distinct methodologies

* splitting logic for reimbursement terms

* put in split compound reimbursement step

* Fix JSON output formatting in reimbursement terms example

* reimbursement splitting: move prompt to investment_prompts.py, move keywords to investment_values.py

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

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

* Change order (split -> filter over filter -> split), improve logging

* Refactor reimbursement filtering logic to use a two-stage approach with pattern-based negative filtering and LLM validation

* Replace clear reimbursement indicators with obvious non-reimbursement indicators for improved clarity in reimbursement filtering

* Simplify reimbursement filtering by removing pattern-based checks and relying solely on LLM validation

* Remove obvious non-reimbursement indicators from reimbursement filtering keywords

* Enhance reimbursement level test by adding LLM validation and updating mock return values for service terms

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

* Fix failing test

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

* update mock return values to fix failed tests


Approved-by: Siddhant Medar
2025-07-02 17:33:18 +00:00
AARETE\agupta 8e8b29d7e9 Merge branch 'main' of https://bitbucket.org/aarete/doczy.ai 2025-07-02 12:05:26 -05:00
Mayank Aamseek 5d65251851 Merged in bugfix/claim_type_1_to_1 (pull request #590)
Bugfix/claim type 1 to 1

* restored old prompt

* updated claim type cd prompt

* claim_type exhibit level added

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

* field type updated

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

* fixed location of updating field_type to full_context

* updated ancillary examples

* removed print statements

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

* prompt updated to avoid N/A

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

* prompt changed to handle multiple matches

* prompt updated

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


Approved-by: Alex Galarce
2025-07-01 22:32:37 +00:00
Alex Galarce 2abf33b20d Merged in bugfix/fix_nonunique_one_to_ones_and_strip_columns (pull request #595)
Fix data quality issues in testbed preprocessing and enhance error reporting

* Fix data quality issues in testbed preprocessing and enhance error reporting

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


Approved-by: Siddhant Medar
2025-06-30 20:39:14 +00:00
Katon Minhas 737050b75c Merged in bugfix/bill-type-mapping (pull request #594)
Fix mappings

* Fix mappings


Approved-by: Alex Galarce
2025-06-30 18:41:59 +00:00
Katon Minhas c6a1ca6d80 Merged in feature/remove-greaterof-ind (pull request #592)
remove Greater Of from prompt, as its always N

* remove Greater Of from prompt, as its always N

* Merged main into feature/remove-greaterof-ind


Approved-by: Alex Galarce
2025-06-27 20:22:22 +00:00
VenkataKrishna Reddy Avula 4bb5c96b5f Merged in bugfix/aarete_derived_effective_date (pull request #591)
Bugfix/aarete derived effective date to Main

* added effective date keywords

* updated key word

* updated prompt

* updated new prompt


Approved-by: Katon Minhas
2025-06-27 17:57:51 +00:00
Alex Galarce 724e31b15d Merged in feature/split-and-filter-reimbursements (pull request #587)
Feature/filter reimbursements

* First-pass implementation for reimbursement filtering

* Enhance reimbursement level processing by filtering out services without reimbursement terms and logging when no valid pairs are found.

* Update mock return values in reimbursement level tests to reflect new reimbursement terms

* Merge remote-tracking branch 'origin/main' into feature/split-and-filter-reimbursements

* Refine reimbursement filtering by adding 'billed' to indicators and ensuring REIMB_TERM is a string before processing.

* Refactor is_empty function signature to support multiple input types and clarify return values

* adding LLM review for ambiguous reimbursement methodology cases

* more stringent keywords for stage 1 of reimbursement filtering

* refining rate and cost patterns for reimbursement filtering

* Enhance LLM response handling in reimbursement methodology check to improve accuracy and logging for ambiguous cases.

* Merge remote-tracking branch 'origin/main' into feature/split-and-filter-reimbursements

* Update reimbursement test cases to reflect accurate reimbursement terms and improve deduplication logic

* move VALIDATE_REIMBURSEMENTS_PROMPT to investment_prompts.py

* black, isort formatting

* Remove IDENTIFY_REIMBURSEMENT_EXHIBITS_PROMPT function (unused)

* Add MODEL_ID_CLAUDE4_SONNET for new model integration (doesn't work right now)

* pipe delimited-output and parsing

* Merge remote-tracking branch 'origin/main' into feature/split-and-filter-reimbursements

* Refactor reimbursement filtering by moving clear indicators to constants


Approved-by: Katon Minhas
2025-06-26 21:26:27 +00:00
Katon Minhas 1531ad6bac Merged in feature/prov-group-tin (pull request #584)
Feature/prov group tin

* don't prompt for INTRO_PAGE

* test complete

* test 2

* Update test script

* Merge branch 'main' into feature/prov-group-tin

* Merged main into feature/prov-group-tin

* refactor

* cleaning

* Update save

* Fix return type

* Update for reimbursement_tin_npi

* Comment out reimbursement-tin-npi

* Pass unit tests

* Merge branch 'main' into feature/prov-group-tin

* Merged main into feature/prov-group-tin

* Remove length validation

* Merge branch 'main' into feature/prov-group-tin

* Remove ON_INTRO from prompt

* Restore

* Remove test

* Move reimb prov info to dynamic reimb info

* e2e test

* Fix for unit test

* remove prints

* update docstrings and typehints


Approved-by: Alex Galarce
2025-06-26 19:35:32 +00:00
Katon Minhas 6d27b17819 Merged in feature/testbed-updates (pull request #589)
Feature/testbed updates

* Begin refactor

* Update print

* finalize testbed script


Approved-by: Alex Galarce
2025-06-25 15:57:24 +00:00
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