From 0032a71bbf27b58696d4c95cb61e4672fdc0ccc7 Mon Sep 17 00:00:00 2001 From: VenkataKrishna Reddy Avula Date: Fri, 11 Jul 2025 15:02:28 +0000 Subject: [PATCH] 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 --- fieldExtraction/src/constants/investment_values.py | 2 +- fieldExtraction/src/prompts/investment_prompts.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fieldExtraction/src/constants/investment_values.py b/fieldExtraction/src/constants/investment_values.py index ed8a648..618c165 100644 --- a/fieldExtraction/src/constants/investment_values.py +++ b/fieldExtraction/src/constants/investment_values.py @@ -137,7 +137,7 @@ VALID_SPECIAL = { "DISCOUNT" : "Describes a discount to the payment. Look for the term 'Discount'.", # placeholder prompt "PREMIUM" : "Describes a premium to the payment. Look for the term 'Premium'.", # placeholder prompt "ADDITION" : "Describes an increase in the payment amount over time.", # placeholder prompt - "TRIGGER_CAP" : "Describes if the payment methodology is different if the amount being paid is over or under a given threshold.", # placeholder prompt + "TRIGGER_CAP" : "Describes the payments that triggers a new type of payment after a threshold is reached. Threshold can be a dollar amount, no of days or other units. Look for language indicating payment changes based on thresholds such as 'when charges exceed X, pay Y', 'above X, reimburse at Y%', 'over X threshold, payment becomes Y'", "RATE_ESCALATOR" : "Describes a payment arrangement where the reimbursement rate automatically increases by a specified percentage annually after an payment rate defined for the initial term" #"CHARGEMASTER_INCREASE" : "" } diff --git a/fieldExtraction/src/prompts/investment_prompts.json b/fieldExtraction/src/prompts/investment_prompts.json index 1db20c5..1f34763 100644 --- a/fieldExtraction/src/prompts/investment_prompts.json +++ b/fieldExtraction/src/prompts/investment_prompts.json @@ -793,7 +793,7 @@ "field_name": "TRIGGER_BASE_THRESHOLD", "relationship": "one_to_n", "field_type": "trigger_cap", - "prompt": "What is the base threshold amount for the trigger cap? Return the exact dollar value specified in the given reimbursement methodology that serves as the threshold for triggering additional reimbursement or exact dollar value that must be exceeded or reached before additional reimbursement terms apply. If the value is written in words (e.g., 'ten thousand dollars'), convert it to a numeric value (e.g., '10000'). If the value includes commas (e.g., '10,000'), remove the commas and return only the numeric value (e.g., '10000'). Return only the numeric dollar amount without the dollar sign or any other text. If no trigger base threshold is found, return 'N/A'." + "prompt": "Extract the threshold value of the reimbursement that triggers a new type of reimbursement. This can be dollar amounts, number of days, visits, procedures, or any other measurable unit. Look for values with phrases like 'Days in Excess of Threshold', 'exceeds the specified threshold of', 'charges exceed $X', 'above X days', 'over X visits', 'minimum X units', 'threshold of X'. Convert words to numbers, remove commas from numbers. For all types of thresholds (dollar amounts, days, visits, procedures, etc.), return the numeric value with respective units. If no threshold is found, return 'N/A'." }, { "field_name": "RATE_ESCALATOR_IND",