Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charlson score accounting twice for the same diagnosis #206

Open
Ana1323 opened this issue Sep 10, 2020 · 0 comments
Open

Charlson score accounting twice for the same diagnosis #206

Ana1323 opened this issue Sep 10, 2020 · 0 comments

Comments

@Ana1323
Copy link

Ana1323 commented Sep 10, 2020

Hello Jack,

First of all, thank you for the ICD package, it's very helpful!

I've been working with a database in which I want to obtain the CCI from ICD-10 codes.
The reply I obtain from this code:

adm_score <- charlson(hes,
scoring_system = "charlson",
visit_name = "id",
return_df = TRUE) %>%
mutate(id=as.integer(id))

actually returns a score that is counting twice for the same disease if there's more than one code for the same disease available.

For example: Myocardial infarction: it's counting 1 point for I21.1 and another one for I21.2

Do you have any suggestions how can I solve this?

Thank you very much!

Bw,

Ana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant