From 6d4ebd3dac7baa871608ff7751e939c6b948fe9f Mon Sep 17 00:00:00 2001 From: VenkataKrishna Reddy Avula Date: Mon, 3 Nov 2025 16:12:33 +0000 Subject: [PATCH] Merged in bugfix/split_reimb (pull request #757) bugfix/split_reimb to main * updated compound indicators * comppund reimb * Merged main into bugfix/split_reimb Approved-by: Katon Minhas --- fieldExtraction/constants/lists/compound_indicators.json | 3 +++ fieldExtraction/src/investment/one_to_n_funcs.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fieldExtraction/constants/lists/compound_indicators.json b/fieldExtraction/constants/lists/compound_indicators.json index 1d64ef7..2364b75 100644 --- a/fieldExtraction/constants/lists/compound_indicators.json +++ b/fieldExtraction/constants/lists/compound_indicators.json @@ -5,6 +5,8 @@ "for which there is no", "when no payment rate", "where there is no payment rate", + "there is no Medicare payment rate", + "there is no Medicaid payment rate", "otherwise shall be", "shall otherwise be", @@ -21,6 +23,7 @@ "except for", "with the exception", "excluding", + "excluded", "however, for", "notwithstanding", diff --git a/fieldExtraction/src/investment/one_to_n_funcs.py b/fieldExtraction/src/investment/one_to_n_funcs.py index 3273c6e..0e7569f 100644 --- a/fieldExtraction/src/investment/one_to_n_funcs.py +++ b/fieldExtraction/src/investment/one_to_n_funcs.py @@ -659,7 +659,7 @@ def split_compound_reimbursements( reimb_term = answer_dict.get("REIMB_TERM", "").lower().strip() # Check if this looks like a compound reimbursement by using a substring search - has_compound = any(indicator in reimb_term for indicator in COMPOUND_INDICATORS) + has_compound = any(indicator.lower() in reimb_term.lower() for indicator in COMPOUND_INDICATORS) if has_compound: # Use LLM to split the compound reimbursement