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

SOFA platelet calculation #66

Closed
tariqdam opened this issue Aug 17, 2022 · 1 comment
Closed

SOFA platelet calculation #66

tariqdam opened this issue Aug 17, 2022 · 1 comment

Comments

@tariqdam
Copy link
Collaborator

In sofa.ipynb, the platelet score is calculated as follows:

#calculate SOFA coagulation score:
sofa_platelets.loc[:,'sofa_coagulation_score'] = 0
sofa_platelets.loc[(sofa_platelets['value'] < 150) & 
                     (sofa_platelets['value'] >= 100), 'sofa_coagulation_score'] = 1
sofa_platelets.loc[(sofa_platelets['value'] < 100) & 
                     (sofa_platelets['value'] >= 50), 'sofa_coagulation_score'] = 3
sofa_platelets.loc[(sofa_platelets['value'] < 50) & 
                     (sofa_platelets['value'] >= 20), 'sofa_coagulation_score'] = 3
sofa_platelets.loc[(sofa_platelets['value'] < 20), 'sofa_coagulation_score'] = 4

Platelet values between 50 and 100 are now awarded a value of 3, but shouldn't this be a value of 2?

@patrickthoral
Copy link
Member

Of course! I'll fix this together with the incorrect gamma assignment of #63

patrickthoral added a commit to tariqdam/AmsterdamUMCdb that referenced this issue Oct 17, 2022
- fixes incorrect assignment of '3' to platelet values between 50 and 100 (fix AmsterdamUMC#66)
- fixes doserateunitid check for calculating gamma in sql script and notebooks

Co-Authored-By: Tariq Dam <67778536+tariqdam@users.noreply.github.com>
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

2 participants