-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to add caregiver
concept?
#36
Comments
I think you just forgot to wrap the item definitions in a list "caregiver": {
"category": "misc",
"sources": {
"mimic": [{
"table": "chartevents",
"val_var": "cgid",
"target": "ts_tbl",
"class": "col_itm"
}]
}
The hint was in the traceback, where it was trying to create a load_concepts("caregiver", src = "mimic", aggregate = unique) You should be able to specify this in the json too (see "dobu_dur" for an example of how) but it currently throws an error as the string is passed to |
Thanks for the hint, also with Followup: I want to implement a "provider": {
"category": "misc",
"aggregate": "unique",
"sources": {
"miiv": [
{
"table": "admissions",
"val_var": "admit_provider_id",
"class": "col_itm",
"target": "id_tbl"
},
...
{
"table": "poe",
"val_var": "order_provider_id",
"class": "col_itm",
"target": "ts_tbl"
},
{
"table": "prescriptions",
"val_var": "order_provider_id",
"class": "col_itm",
"target": "ts_tbl",
"index_var": "starttime"
}
]
} and run {
"table": "prescriptions",
"val_var": "order_provider_id",
"class": "col_itm",
"target": "win_tbl",
"index_var": "starttime",
"dur_var": "stoptime"
} this yields
( What am I doing wrong here? |
I am afraid I haven't installed the MIMIC IV version 2.2 needed tor the provider IDs. However, my best guess is that you are trying to combine You get the exact same error if you remove |
Thanks @prockenschaub! Together with #40, the following "provider": {
"category": "misc",
"aggregate": "unique",
"sources": {
"miiv": [
{
"table": "admissions",
"val_var": "admit_provider_id",
"class": "col_itm",
"index_var": "admittime",
"target": "ts_tbl"
},
...
{
"table": "poe",
"val_var": "order_provider_id",
"class": "col_itm",
"target": "ts_tbl"
},
{
"table": "prescriptions",
"val_var": "order_provider_id",
"class": "col_itm",
"target": "ts_tbl",
"index_var": "starttime"
}
]
} works. For the resulting |
Yes, if you use the ICU stay as your time origin (default), negative times relate to things that happened earlier outside of ICU. Closing this issue now because I think it's resolved. |
I am interested in variables that describe possible heterogeneity in the data. One such variable is
cgid
(caregiver-id) in tablechartevents
MIMIC III:(ref).
I would like to add a concept that returns, for each hour where at least one measurement was entered into the system, the list of caregivers involved. I tried the following:
However, this raises
How should I go about adding such a concept?
The text was updated successfully, but these errors were encountered: