Merged in bugfix/proc-code-lists (pull request #403)

Bugfix/proc code lists

* Add admit type code

* add proc mod description

* Add bill type pos mapping

* Merged main into feature/proc-desc

* Uncomment test code

* Bugfix

* script optimisation for codes

* modified is empty function in string utils

* Remove test.py

* bug fix to handle list of proc_codes

* Merged main into bugfix/proc-code-lists

* changed any method to all method in list handling

* code mapping moved outside to run once

* Merge branch 'feature/daip2-97' into bugfix/proc-code-lists

* merge conflict fixed

* merge conflicts fixed

* incorporated latest changes from main

* Merged main into bugfix/proc-code-lists

* Move load all dataset to io_utils

* Fix list is_empty

* Updated poetry.lock

* Docstring

* Docstrings

* Merge branch 'main' into bugfix/proc-code-lists

* bug fix


Approved-by: Mayank Aamseek
Approved-by: Alex Galarce
This commit is contained in:
Katon Minhas
2025-02-21 14:44:36 +00:00
committed by Alex Galarce
parent 87223cc3b8
commit 92029cdabe
8 changed files with 1161 additions and 1062 deletions
@@ -289,6 +289,9 @@ def is_empty(value):
Returns:
bool: True if the value is empty or invalid, False otherwise.
"""
if isinstance(value, list): # Handle list inputs
return not value or all(is_empty(v) for v in value)
if pd.isna(value):
return True
else: