AmsterdamUMC / AmsterdamUMCdb

AmsterdamUMCdb - Freely Accessible ICU database. Please access our Open Access manuscript at https://doi.org/10.1097/CCM.0000000000004916
https://amsterdammedicaldatascience.nl/
MIT License
149 stars 43 forks source link

Identifying cardiac surgery patients #98

Open perryla opened 4 months ago

perryla commented 4 months ago

Thank you for all you have done to make the AUMCdb open access.

A quick query if you don't mind - would it be possible to identify the subset of patients who were admitted post cardiac surgery? I cannot ascertain this for sure by looking at the admissions table documentation, although my suspicion is that it may not be possible.

Thank you.

Luke Perry

narkode commented 4 months ago

You can extract the cardiothoracic surgery patients with the amsterdamumcdb module:

# Install amsterdamumcdb
pip install amsterdamumcdb

# Import amsterdamumcdb
import amsterdamumcdb as adb

# Identify cardiothoracic surgery patients    
cardiothoracic_surgery_df = adb.get_cardiothoracic_surgery_patients(con)