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