Merged in bugfix/aug-5-issue-fixes (pull request #652)
Bugfix/aug 5 issue fixes * Revert prompts * Remove qa_qc tests * Remove valid lines * Update crosswalk path * remove extra argument from split compound reimbursement * model aliasing * Haiku alias * remove erroneous import * Merge branch 'refactor/update-claude-models' into bugfix/aug-5-issue-fixes * Convert all matching codes to strings * Exit if service is empty * Merged main into bugfix/aug-5-issue-fixes * global lesser of fix Approved-by: Alex Galarce
This commit is contained in:
@@ -333,21 +333,21 @@ def code_implicit_rag(service, implicit_run_dict, filename, constants):
|
||||
|
||||
if description in cpt_mapping.values():
|
||||
matching_codes = [
|
||||
key for key, val in cpt_mapping.items() if val == description
|
||||
str(key) for key, val in cpt_mapping.items() if val == description
|
||||
]
|
||||
if matching_codes:
|
||||
proc_codes.append("|".join(matching_codes))
|
||||
proc_descs.append(description)
|
||||
if description in hcpcs_mapping.values():
|
||||
matching_codes = [
|
||||
key for key, val in hcpcs_mapping.items() if val == description
|
||||
str(key) for key, val in hcpcs_mapping.items() if val == description
|
||||
]
|
||||
if matching_codes:
|
||||
proc_codes.append("|".join(matching_codes))
|
||||
proc_descs.append(description)
|
||||
if description in rev_mapping.values():
|
||||
matching_codes = [
|
||||
key for key, val in rev_mapping.items() if val == description
|
||||
str(key) for key, val in rev_mapping.items() if val == description
|
||||
]
|
||||
if matching_codes:
|
||||
rev_codes.append("|".join(matching_codes))
|
||||
@@ -490,6 +490,9 @@ def extract_codes_from_service(answer_dict, constants: Constants):
|
||||
"BILL_TYPE_CD_DESC"
|
||||
)
|
||||
|
||||
if string_utils.is_empty(service):
|
||||
return {}
|
||||
|
||||
# Fill Bill Type if not filled
|
||||
if string_utils.is_empty(bill_type):
|
||||
answer_dict = fill_bill_type(
|
||||
|
||||
Reference in New Issue
Block a user