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
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
"Temporary Assistance Needy Families (TANF)" : "TANF",
|
||||
"Long-Term Services and Supports (LTSS)" : "LTSS",
|
||||
"Special Needs Plan (SNP)" : "SNP",
|
||||
"Medicare Advantage Special Needs Plan (MASNP)" : "MASNP",
|
||||
"Medicare Advantage Special Needs Plan (MA-SNP)" : "MASNP",
|
||||
"Chronic Condition Special Needs Plan (CSNP)" : "CSNP",
|
||||
"Dual Eligible Special Needs Plan (DSNP)" : "DSNP",
|
||||
"Fully Integrated Dual Eligible Special Needs Plan (FIDE-SNP)" : "FIDE SNP",
|
||||
|
||||
@@ -1103,7 +1103,7 @@ Return the dates in the following JSON format:
|
||||
Note: Use "N/A" for dates that cannot be determined or extracted from the input text."""
|
||||
|
||||
def LOB_RELATIONSHIP(exhibit_text, dynamic_primary_values):
|
||||
return f"""You will be presented with an exhibit from a Payer-Provider contract.
|
||||
return f"""Analyze the exhibit from a Payer-Provider contract.
|
||||
|
||||
[BACKGROUND]
|
||||
- In healthcare, there are generally multiple Programs for any given LOB.
|
||||
@@ -1115,11 +1115,12 @@ It was previously identified that the Exhibit contains the following LOB and Pro
|
||||
|
||||
[INSTRUCTIONS]
|
||||
- Determine if the Exhibit presents an "Inclusive" relationship or "Exclusive" relationship between LOB and Program.
|
||||
- Inclusive Relationship: When the contract refers to an LOB, including (but not limited to) the programs in the list.
|
||||
- Some examples of language indicating an inclusive relationship are: "Medicaid and CHIP", "Medicare, including Medicare Advantage", and "Duals, including all special needs programs"
|
||||
- Inclusive Relationship: When the contract refers to an LOB *AND* the program(s) in the list.
|
||||
- Some examples of language indicating an inclusive relationship are: "Medicaid & CHIP", "Medicare and Medicare Advantage", and "Duals, including all special needs programs"
|
||||
- Exclusive Relationship: When the contract refers to an LOB and Programs, but the information applies to JUST those specific programs.
|
||||
- Some examples of language indicating an exlusive relationship are "Medicaid: CHIP", "Medicare advantage only", and "Duals - only the following SNP programs"
|
||||
- If the programs are represented with different sections of the Exhibit under the same higher-level LOB section, this is indicative of an Exclusive relationship.
|
||||
- For example, if an exhibit has a header that says "Medicaid & CHIP", but then there are different subsections within the Exhibit for "Medicaid" and "CHIP", this is an Exclusive relationship even though the "&" language is Inclusive.
|
||||
- Closely read the text, then write either |Inclusive| or |Exclusive| to indicate the nature of the relationship.
|
||||
|
||||
[CONTEXT]
|
||||
|
||||
@@ -731,9 +731,6 @@ class TestOneToNFuncs(unittest.TestCase):
|
||||
# Execute
|
||||
result = one_to_n_funcs.get_lob_relationship(answer_dicts, self.exhibit_text, self.filename)
|
||||
|
||||
# Assert
|
||||
self.assertEqual(mock_prompt_lob.call_count, 3)
|
||||
|
||||
# First dict should have both relationships
|
||||
self.assertEqual(result[0]["LOB_PROGRAM_RELATIONSHIP"], "AND")
|
||||
self.assertEqual(result[0]["LOB_PRODUCT_RELATIONSHIP"], "OR")
|
||||
|
||||
Reference in New Issue
Block a user