The function calculates frailty score as expected, and assigns 0 to encounters without any frailty condition correctly.
However, at the step of returning results, it returns the data frame without the encounters with score=0, instead of the one with all rows combined.
Please identify the affected function:
frailty_score()
The function calculates frailty score as expected, and assigns 0 to encounters without any frailty condition correctly. However, at the step of returning results, it returns the data frame without the encounters with score=0, instead of the one with all rows combined.
An easy fix to this is as below:![image](https://github.com/GEMINI-Medicine/Rgemini/assets/133171927/9dcf6fbd-6c6c-4b39-8436-e18f3c6c1b29)