Commit Graph

1600 Commits

Author SHA1 Message Date
Alex Galarce 674add9a3e Merged in feature/black-and-isort (pull request #717)
Feature/black and isort

* black and isort constants

* black and isort codes

* black and isort crosswalks

* black and isort investment

* black and isort prompts

* isort testbed

* isort tracking

* black and isort utils

* poetry and black tests


Approved-by: Katon Minhas
2025-09-30 20:56:02 +00:00
Alex Galarce ae4eda6f25 Merged in feature/one-to-n-docs (pull request #715)
Feature/one to n docs

* Refactor function signatures and improve imports in one_to_n_funcs.py

* Enhance type hints and documentation for carveout_check and methodology_breakout functions

* Add docstring to methodology_breakout_secondary function for clarity on parameters and return values

* Add docstring to special_case_breakout function for clarity on parameters and return values

* Enhance docstring for deduplicate_with_accumulator function to clarify behavior and parameters

* Enhance docstring for filter_services_without_reimbursements function to clarify validation process and answer structure

* Enhance docstring for filter_services_without_reimbursements function to clarify filtering criteria and validation process

* Enhance docstring for split_compound_reimbursements function to clarify the splitting process and provide an example

* Enhance docstring for split_reimb_dates function to clarify date processing, parameters, return values, and provide an example

* Remove unused regex import from one_to_n_funcs.py

* Remove unused Delimiter import from one_to_n_funcs.py


Approved-by: Katon Minhas
2025-09-30 14:04:47 +00:00
Katon Minhas b788ffc352 Merged in bugfix/dynamic (pull request #714)
Bugfix/dynamic

* Update MA-SNP

* Update LOB relationship prompt

* Update lob-relationship prompt

* Remove test

* Remove print

* revert lob relatinoship function

* Merged main into bugfix/dynamic

* Update prompt_call


Approved-by: Alex Galarce
2025-09-29 16:13:01 +00:00
Alex Galarce 0562b90646 Merged in feature/io-utils-docs (pull request #713)
io_utils documentation

* add docstring to read_local function and handle file read errors gracefully by returning None on failure

* update read_local function to support .xlsx files and improve error handling

* add docstring to read_s3 function to clarify its purpose and return value

* refactor read_s3 and read_s3_csv functions to improve error handling and add type hints

* improve error handling in read_s3_csv function for CSV file parsing

* enhance read_input function with error handling and detailed docstring

* Add TODOs for read_input_csv and filter_already_processed functions; add type hints and docstring for remove_txt_extension

* enhance write_local function documentation; make docstrings more consistent when there is a "notes" section

* enhance write_local and write_s3 functions; improve documentation, add error output type handling, and ensure consistent CSV writing options

* refactor test_io_utils.py; reorganize imports and enhance read_input_local test with additional mock for file existence


Approved-by: Katon Minhas
2025-09-26 20:47:55 +00:00
VenkataKrishna Reddy Avula 814d3e0636 Merged in bugfix/provider_info (pull request #710)
Bugfix/provider info to refactor/one-to-n

* Applied suggestion to fieldExtraction/src/prompts/investment_prompts.json
* update unit test

* Update Carveout IND and Default IND logic

* Split out exhibit-level lesser

* Bugfix

* update lesser of exhibit prompt

* Bugfix

* exhibit lesser of varible name bugfix

* Update exhibit lesser of passing

* Update Exhibit-level prompt template

* Shorten full_context prompt length if the questions are long

* Special case assignment index

* Resolve unit tests

* updated UC IND prompt

* Remove print

* update one-to-n unit test

* added dot based date example

* updated date fix prompt

* Merged in bugfix/json_error_and_unit_of_measure (pull request #708)

Bugfix/json error and unit of measure

* json parser fixes and prompt changes

* universal json load fixed

* json error fixed

* json error fixed 2

* Merged refactor/one-to-n into bugfix/json_error_and_unit_of_measure


Approved-by: Katon Minhas

* added new tin format

* updated signature page prompt

* updated tin search and tin duplication

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

* extended duplicate logic to npi and names

* Merged main into bugfix/provider_info


Approved-by: Katon Minhas
2025-09-25 16:48:23 +00:00
Mayank Aamseek 4651248ca3 Merged in bugfix/json_and_unit_of_measure (pull request #709)
json parsing fix

* OUTLIER_TERMS-->OUTLIER_TERM standardization

* Applied suggestion to fieldExtraction/src/prompts/investment_prompts.json
* update unit test

* Update Carveout IND and Default IND logic

* Split out exhibit-level lesser

* Bugfix

* update lesser of exhibit prompt

* Bugfix

* exhibit lesser of varible name bugfix

* Update exhibit lesser of passing

* Update Exhibit-level prompt template

* Shorten full_context prompt length if the questions are long

* Special case assignment index

* Resolve unit tests

* updated UC IND prompt

* Remove print

* update one-to-n unit test

* added dot based date example

* updated date fix prompt

* Merged in bugfix/json_error_and_unit_of_measure (pull request #708)

Bugfix/json error and unit of measure

* json parser fixes and prompt changes

* universal json load fixed

* json error fixed

* json error fixed 2

* Merged refactor/one-to-n into bugfix/json_error_and_unit_of_measure


Approved-by: Katon Minhas

* json parsing fix

* prompt update

* Merge branch 'main' into bugfix/json_and_unit_of_measure

* minor bugfix

* minor bugfix


Approved-by: Alex Galarce
2025-09-25 14:16:56 +00:00
Katon Minhas f12d753b92 Merged in bugfix/fee-schedule (pull request #712)
Bugfix/fee schedule

* Initialize grouper pct and base rate prmopts

* Update postprocessing

* Merged main into bugfix/fee-schedule

* Prep for merge


Approved-by: Alex Galarce
2025-09-24 22:05:54 +00:00
Alex Galarce c5af046cde Merged in feature/improve-logging-docs (pull request #711)
Feature/improve logging docs

* Enhance PerFileHandler documentation and functionality for improved logging context management

* Add more docuementation

* Update logging_utils.py documentation for clarity and usage examples

* Enhance logging comments for clarity on per-file logging setup and concurrent processing

* Enhance logging comments for clarity on per-file logging context and its implications


Approved-by: Katon Minhas
2025-09-24 21:31:38 +00:00
Katon Minhas 1050287397 Merged in refactor/one-to-n (pull request #702)
Refactor/one to n

* remove print

* Update logging for fsbreakout and grouper breakout

* Additional type hints

* updated special case primary

* Remove deprecated special case check

* OUTLIER_TERMS-->OUTLIER_TERM standardization

* Applied suggestion to fieldExtraction/src/prompts/investment_prompts.json
* update unit test

* Update Carveout IND and Default IND logic

* Split out exhibit-level lesser

* Bugfix

* update lesser of exhibit prompt

* Bugfix

* exhibit lesser of varible name bugfix

* Update exhibit lesser of passing

* Update Exhibit-level prompt template

* Shorten full_context prompt length if the questions are long

* Special case assignment index

* Resolve unit tests

* updated UC IND prompt

* Remove print

* update one-to-n unit test

* added dot based date example

* updated date fix prompt

* Merged in bugfix/json_error_and_unit_of_measure (pull request #708)

Bugfix/json error and unit of measure

* json parser fixes and prompt changes

* universal json load fixed

* json error fixed

* json error fixed 2

* Merged refactor/one-to-n into bugfix/json_error_and_unit_of_measure


Approved-by: Katon Minhas


Approved-by: Alex Galarce
2025-09-24 15:56:27 +00:00
VenkataKrishna Reddy Avula a9318cf1d2 Merged in bugfix/provider_info_tracker_issues (pull request #706)
Bugfix/provider info tracker issues to main

* testing TIN AND NPI

* print statements added

* updated condition for header and footer tin and npi check

* tin testing for hyphen format

* removed print statements

* updated comments


Approved-by: Katon Minhas
2025-09-15 13:59:36 +00:00
Alex Galarce ffb4e07c89 Merged in bugfix/reimb-term-issues (pull request #705)
Add time-based rate handling rules and update section labels in prompt templates

* Add time-based rate handling rules and update section labels in prompt templates

* Add mapping for MyCare Ohio in crosswalk_program.json and update state mapping for Ohio in crosswalk_program_lob.json

* Update test parameters and state configuration in testing notebook

* Update exhibit-wide payment constraint prompt to exclude administrative processing language

* Merge remote-tracking branch 'origin/main' into bugfix/reimb-term-issues

* Refine exhibit-wide payment constraint prompt to clarify extraction criteria and examples

* Enhance exhibit-wide payment constraint prompt with guidance for abbreviated terms and clarify acceptable constraints

* Update SERVICE_TERM prompt to specify healthcare services and clarify extraction criteria


Approved-by: Katon Minhas
2025-09-11 21:06:52 +00:00
VenkataKrishna Reddy Avula 760171c084 Merged in bugfix/methodology_breakout_tracker_issue_fixes (pull request #703)
Bugfix/methodology breakout tracker issue fixes to main

* fee schedule prompt change

* Merged main into bugfix/methodology_breakout_tracker_issue_fixes

* updated aarete derived fee schedule prompt

* updated fee schedule prompt

* Merged main into bugfix/methodology_breakout_tracker_issue_fixes


Approved-by: Alex Galarce
2025-09-11 13:31:50 +00:00
Mayank Aamseek 5d196843da Merged in bugfix/trigger_cap_fixes (pull request #704)
Bugfix/trigger cap fixes

* stoploss prompt added again

* stoploss prompt added again

* stoploss prompt updated

* reverted back to one stage for trigger cap cases

* Merge branch 'main' into bugfix/trigger_cap_fixes

* pipeline error fixed

* incorrect discount special case fixed


Approved-by: Alex Galarce
2025-09-11 13:31:03 +00:00
Alex Galarce aaf1e853b3 Merged in feature/change-tin-validation-logging-level (pull request #701)
Change logging level from info to debug for OCR correction and extraction summaries

* Change logging level from info to debug for OCR correction and extraction summaries


Approved-by: Katon Minhas
2025-09-08 19:10:51 +00:00
Katon Minhas 92cc0920c5 Merged in bugfix/stop_loss_fixes (pull request #700)
Bugfix/stop loss fixes

* stoploss prompt added again

* stoploss prompt added again

* stoploss prompt updated


Approved-by: Alex Galarce
2025-09-08 14:34:06 +00:00
Alex Galarce c0fa621aed Merged in bugfix/multi-tin-npi-fix (pull request #699)
Bugfix/multi tin npi fix

* Add debug logging for OCR candidates and provider info extraction

* Update TIN and NPI extraction instructions to handle multiple values in a single record

* Add validation layer to cross-check TINs and NPIs with regex findings in provider info extraction

* Enhance exact match extraction by normalizing identifiers and validating lengths for TIN and NPI


Approved-by: Katon Minhas
2025-09-05 21:21:54 +00:00
Alex Galarce 306034820c Merged in feature/tin-enhancements (pull request #697)
Feature/tin enhancements

* Add OCR-correctable TIN patterns and substitution mapping

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

* Refactor OCR-correctable TIN pattern and enhance documentation for clarity

* Enhance get_all_matches function with type hints and improve documentation; add get_all_matches_with_ocr for OCR-correctable matches

* Add attempt_ocr_correction function for TIN OCR error handling and validation

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

* Integrate OCR correction for TIN extraction in run_provider_info_fields; log corrections for monitoring

* Refactor OCR-correctable patterns in regex_patterns.py; add NPI_OCR_PATTERN and enhance documentation for clarity

* Enhance OCR correction in attempt_ocr_correction to support both TIN and NPI; update validation logic for identifier lengths

* Integrate NPI OCR correction in run_provider_info_fields; log corrections for monitoring

* Enhance logging in run_provider_info_fields to summarize TIN and NPI extraction quality; include counts of exact and OCR-corrected identifiers

* Add unit and integration tests for OCR correction

* isort

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

* Merged main into feature/tin-enhancements


Approved-by: Katon Minhas
2025-09-05 15:15:39 +00:00
Mayank Aamseek 457249e768 Merged in bugfix/carveout_cd_fixes (pull request #694)
Bugfix/carveout cd fixes

* comment added

* prompt change

* prompt change

* Merged main into bugfix/carveout_cd_fixes

* updated payment carveout definition

* prompt refinement

* updated carveout prompt


Approved-by: Alex Galarce
2025-09-05 14:46:12 +00:00
Katon Minhas 84c73948f4 Merged in hotfix/new-column-order (pull request #698)
Add new columns to proper order

* Add new columns to proper order


Approved-by: Alex Galarce
2025-09-04 21:31:16 +00:00
Katon Minhas 0b00cc5ddd Merged in feature/initialize-phase-5 (pull request #696)
Feature/initialize phase 5

* Initialize at Exhibit-Level

* Merge branch 'main' into feature/initialize-phase-5

* Add all breakout fields

* Prep for merge


Approved-by: Alex Galarce
2025-09-04 18:22:35 +00:00
Katon Minhas 416a9944e8 Merged in hotfix/constants-passing (pull request #695)
Hotfix/constants passing

* E2E test passed

* Merged main into hotfix/constants-passing

* Remove print


Approved-by: Alex Galarce
2025-09-04 16:01:56 +00:00
VenkataKrishna Reddy Avula e054f69860 Merged in bugfix/multiple_outliers_fixes (pull request #688)
bugfix/multiple_outlier_fixes to main

* updated prompts

* Merged main into bugfix/multiple_outliers_fixes

* updated outlier maximum prompts


Approved-by: Katon Minhas
2025-09-04 14:06:42 +00:00
Katon Minhas edc48ec3c8 Merged in feature/filename-tin (pull request #693)
Add FILENAME_TIN

* Add FILENAME_TIN


Approved-by: Alex Galarce
2025-09-03 21:03:02 +00:00
Alex Galarce 0320d6633a Merged in bugfix/lob-fixes (pull request #692)
Bugfix/lob fixes

* Refactor update_lob_for_duals and update_grouper_base_rate_and_grouper_pct_rate functions for improved clarity and logic; add handling for 'neither' and 'n/a' cases.

* Change logging level from info to debug for various functions to reduce log verbosity.


Approved-by: Katon Minhas
2025-09-03 20:29:43 +00:00
Katon Minhas 95806f5782 Merged in bugfix/code-updates (pull request #691)
Bugfix/code updates

* Simplify get_crosswalk_field function

* Remove test

* Re-update valids

* Update test


Approved-by: Alex Galarce
2025-09-03 20:18:17 +00:00
Alex Galarce 2c98b5ebdb Merged in feature/payer-state (pull request #690)
Feature/payer state

* fix indentation for PROVIDER_STATE prompt

* Add PAYER_STATE prompt and normalize state abbreviation in run_full_context_fields

* Add PAYER_STATE to COLUMN_ORDER in investment_columns.py

* Merged main into feature/payer-state

* Only run PAYER_STATE prompt when more than one state in the batch
2025-09-03 14:04:18 +00:00
Mayank Aamseek 24bf442086 Merged in bugfix/dynamic_function_error (pull request #689)
Bugfix/dynamic function error

* checking dynamic fields

* field not found error fixed

* logs for debugging added


Approved-by: Katon Minhas
2025-09-02 22:01:30 +00:00
Alex Galarce 785ffe85ba Merged in bugfix/dynamic-reimbursement-primary-nv-issues (pull request #687)
Bugfix/dynamic reimbursement primary nv issues

* Add reimb_level_prompt to Field class for dynamic reimbursement handling

* Add reimb_level_prompt for dynamic extraction of LOBs, Networks, Products, and Programs

* Merged main into bugfix/dynamic-reimbursement-primary-nv-issues


Approved-by: Katon Minhas
2025-09-02 14:06:45 +00:00
Mayank Aamseek 611da13d2e Merged in feature/grouper_cd_desc (pull request #684)
Feature/grouper cd desc

* added grouper cd desc

* bugfix

* Merge branch 'main' into feature/grouper_cd_desc

* Merged main into feature/grouper_cd_desc


Approved-by: Alex Galarce
2025-08-29 21:13:24 +00:00
Alex Galarce 425a8ec86c Merged in feature/per-file-logging (pull request #686)
Feature/per file logging

* Add custom per-file logging handler

* Add close method in PerFileHandler to properly close file handlers

* Add return type annotation to setup_per_file_logging function

* Set up per-file logging in main and process_file functions

* Add per-file logging configuration options and update setup logic

* Refactor logging setup in testing notebook to use per-file logging and improve organization

* Clean up whitespace and improve organization in testing notebook

* Merge remote-tracking branch 'origin/main' into feature/per-file-logging

* Enhance per-file logging setup by adding debug level configuration and informative print statement

* Change logging from info to debug level in table processing functions for improved verbosity control

* isort


Approved-by: Katon Minhas
2025-08-29 14:38:15 +00:00
Katon Minhas 5950961b05 Merged in feature/dynamic-primary-header (pull request #685)
Split out header and text templates

* Split out header and text templates


Approved-by: Alex Galarce
2025-08-28 16:04:35 +00:00
Katon Minhas b4de4048ca Merged in bugfix/reimb-primary-issues (pull request #682)
Bugfix/reimb primary issues

* Merge + test

* Extract (and remove) headers and footers

* Simplify prompt

* Restore

* Merged main into bugfix/reimb-primary-issues

* Successful E2E test

* Cleanup

* Return proper

* Merged main into bugfix/reimb-primary-issues


Approved-by: Alex Galarce
2025-08-27 17:42:35 +00:00
Alex Galarce 39a07f63c9 Merged in bugfix/dynamic-primary-and-pyproject (pull request #683)
pyproject requirements, prep for logging fixes

* remove chroma

* update project name to "doczy-field-extraction" in pyproject.toml

* update lock file

* replace print statements with logging for better traceability in process_file function

* replace print statements with logging for improved error tracking and information logging

* replace print statements with logging for improved error handling and traceability

* replace print statements with logging for improved error handling in llm_utils and string_utils

* remove unused table_utils module; supplanted by table_funcs and unreferenced

* replace capsys with caplog in test_invalid_input_type for improved logging of invalid input


Approved-by: Katon Minhas
2025-08-27 16:37:48 +00:00
Alex Galarce 90bdc672d5 Merged in feature/faiss (pull request #680)
Feature/faiss

* Migrate to FAISS from chroma

* Refactor safe_process_file to remove unnecessary garbage collection and update docstring for clarity

* Merged main into feature/faiss


Approved-by: Katon Minhas
2025-08-26 16:54:55 +00:00
Mayank Aamseek 94251faa03 Merged in feature/grouper-fields (pull request #658)
Feature/grouper fields

* prompt changes

* print statements removed

* merged with main

* merge issue fixed

* updated grouper prompts

* updated grouper fields in fields order

* updated breakout prompt

* Merged main into feature/grouper-fields

* reverted grouper cd prompt

* updated goruper severity prompt

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

* updated grouper breakout function

* error fixes

* Merged main into feature/grouper-fields

* Merged main into feature/grouper-fields

* updated grouper_pct_rate and grouper_base_rate

* removed empty array post processing fix

* Merged main into feature/grouper-fields

* post-processing for grouper rate modified

* updated grouper type prompt

* Merged main into feature/grouper-fields

* grouper version prompt updated

* Merged main into feature/grouper-fields

* OPPS as APC

* Merged main into feature/grouper-fields


Approved-by: Katon Minhas
2025-08-26 15:43:53 +00:00
VenkataKrishna Reddy Avula 0f478edff5 Merged in bugfix/outlier_terms_fix (pull request #681)
bugfix/outlier_terms_fix to main

* updated outlier restrictions


Approved-by: Katon Minhas
2025-08-26 15:42:50 +00:00
Alex Galarce 485859e954 Merged in bugfix/chroma-too-many-files (pull request #679)
Bugfix/chroma too many files

* Add emergency cleanup and monitoring for vectorstore cache

* Refactor vectorstore handling and enhance file descriptor monitoring in field_context

* Refactor vectorstore cleanup logic to ensure safe reference counting and improve error handling

* Enhance monitoring and cleanup mechanisms to prevent file descriptor leaks in smart chunking functions

* Add garbage collection to safe_process_file for improved memory management

* Refactor docstring in safe_process_file to clarify error handling and resource cleanup details

* isort

* Enable Chroma reset functionality for improved resource management and logging


Approved-by: Katon Minhas
2025-08-25 20:56:04 +00:00
Alex Galarce 7ca723037a Merged in bugfix/too-many-files (pull request #677)
Bugfix/too many files

* Implement caching for field data loading to optimize performance and prevent "too many open files" errors

* Documentation

* isort

* fix breaking test to clear cache and ensure mock data is actually being used

* Merge remote-tracking branch 'origin/main' into bugfix/too-many-files

* Implement thread-safe vectorstore caching and cleanup in field context extraction

* Refactor imports in smart_chunking_funcs.py for clarity and organization

* Update module docstring in smart_chunking_funcs.py

* Fix mypy errors

* Fix variable naming and error handling in run_smart_chunked_fields function

* Reorganize imports and enhance module documentation for clarity

* Add logging for error handling in field_context function


Approved-by: Katon Minhas
2025-08-25 14:43:36 +00:00
VenkataKrishna Reddy Avula 3b2f3a7789 Merged in bugfix/outlier_maximum_fix (pull request #678)
outlier maximum fix to main

* outlier maximum prompt updated


Approved-by: Katon Minhas
2025-08-22 13:54:36 +00:00
Alex Galarce 04aa447831 Merged in feature/remove-costlog (pull request #675)
Remove cost logging functionality and related tests

* Remove cost logging functionality and related tests

* Remove cost log entry test and related CSV writer mock

* Merged main into feature/remove-costlog


Approved-by: Katon Minhas
2025-08-21 17:45:18 +00:00
VenkataKrishna Reddy Avula 9a3a93ce7c Merged in bugfix/outlier_fixes (pull request #673)
bugfix/outlier_fixes to main

* simplified outlier prompts

* Merged main into bugfix/outlier_fixes

* Merged main into bugfix/outlier_fixes


Approved-by: Alex Galarce
Approved-by: Katon Minhas
2025-08-21 17:36:39 +00:00
Alex Galarce 7038a92d10 Merged in bugfix/medicare-advantage-duals (pull request #674)
Bugfix/medicare advantage duals

* Add logging for debugging in crosswalk utilities and mapping functions

* Add debug logging for crosswalk processing and mapping in get_crosswalk_fields

* Add logging for dual LOB check prompts and responses in update_lob_for_duals

* Enhance dual LOB check logic to ensure PROGRAM and PRODUCT fields are empty before proceeding

* Update dual LOB check to use AARETE_DERIVED fields for validation

* Refactor logging in fill_na_mapping and get_crosswalk_fields for clarity and conciseness

* Remove debug logging from get_lob_relationship for cleaner output

* Remove debug logging from apply_crosswalk for cleaner execution


Approved-by: Katon Minhas
2025-08-21 15:19:53 +00:00
Alex Galarce bccd451f50 Merged in bugfix/global_lesser_of_overpulling (pull request #672)
Bugfix/global lesser of overpulling

* Update global reimbursement constraint prompt for clarity and examples

* Refine global reimbursement constraint prompt for clarity and specificity


Approved-by: Katon Minhas
2025-08-19 21:54:01 +00:00
Alex Galarce 9340520d9a Merged in feature/alex-duals-issues (pull request #671)
Dynamic primary loosen prompts

* Add logging for dynamic primary prompt and Claude's response

* Update prompts to allow for synonyms and equivalent terms in product and program fields

* Refactor get_crosswalk_fields to handle 'N/A' values and improve base field tracking

* Refactor get_crosswalk_fields to remove unnecessary base field processing

* put back JUST_MAPPED

* Fix N/A handling in get_crosswalk_fields to trim whitespace before comparison

* Merge remote-tracking branch 'origin/main' into feature/alex-duals-issues

* Merge remote-tracking branch 'origin/main' into feature/alex-duals-issues

* Fix N/A handling in get_crosswalk_fields to compare without stripping whitespace (in case of `None`)


Approved-by: Katon Minhas
2025-08-19 20:52:57 +00:00
Katon Minhas 672815ac77 Merged in feature/lob-relationship (pull request #670)
Feature/lob relationship

* split program and product relationship fields

* Add to columns

* Split program product in fill_na


Approved-by: Alex Galarce
2025-08-19 19:53:47 +00:00
Katon Minhas f6cefc62e3 Merged in bugfix/dynamic-primary-issues (pull request #669)
Bugfix/dynamic primary issues

* add LOB_RELATIONSHIP prompt

* Add test script

* Integrate prompt

* Update one-to-one passing rules

* Merged main into bugfix/dynamic-primary-issues

* Remove promt

* replace quotes


Approved-by: Alex Galarce
2025-08-19 16:55:09 +00:00
Alex Galarce b9edfed44b Merged in bugfix/carveout-cd-issues (pull request #667)
Refine descriptions for BASE_COVERED_SERVICES and PAYMENT_CARVEOUT in valid_carveouts.json

* Refine descriptions for BASE_COVERED_SERVICES and PAYMENT_CARVEOUT in valid_carveouts.json

* Merge remote-tracking branch 'origin/main' into bugfix/carveout-cd-issues


Approved-by: Katon Minhas
2025-08-18 19:30:54 +00:00
Katon Minhas 26e314e4e2 Merged in bugfix/prov-info (pull request #666)
Update prompt

* Update prompt

* Remove test

* Remove print


Approved-by: Alex Galarce
2025-08-18 13:08:02 +00:00
Katon Minhas 8c99f5d073 Merged in bugfix/dynamic-primary-issues (pull request #664)
Bugfix/dynamic primary issues

* format and restructure

* checkpoint

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

* Update constants attributes to base class

* Revert "Update constants attributes to base class"

This reverts commit 936b1e41f2e2d445e69e840b69af08eac6661120.

* Fix mapping

* E2E test

* remove prints

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

* Black

* Update any dynamic

* Prompt update - more leniency

* Remove prints

* Merged main into bugfix/dynamic-primary-issues

* update crosswalk

* Merged main into bugfix/dynamic-primary-issues


Approved-by: Alex Galarce
2025-08-14 16:46:28 +00:00
Alex Galarce 105b5b107e Merged in bugfix/lesser-of (pull request #665)
Bugfix/lesser of

* Refine SPLIT_REIMBURSEMENTS_PROMPT to enhance clarity and preserve payment limiters in output

* Add debug logging for LLM invocation and response in split_compound_reimbursement_llm

* Add debug logging for reimbursement validation prompts and responses

* Refine SPLIT_REIMBURSEMENTS_PROMPT to clearly indicate payment limiters in split components

* Refine SPLIT_REIMBURSEMENTS_PROMPT to clarify payment limiters and their application in split methodologies

* Refine SPLIT_REIMBURSEMENTS_PROMPT to clarify handling of conditional splits and preserve original service context

* fix brackets

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

* Remove unused SERVICE_METHODOLOGY_BREAKOUT function

* Update compound indicators to refine phrasing and ensure consistency


Approved-by: Katon Minhas
2025-08-14 16:16:26 +00:00