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

Chapter 18 (trend analysis), how to retrieve year? #14

Closed
jinjinzhou opened this issue Nov 30, 2018 · 16 comments
Closed

Chapter 18 (trend analysis), how to retrieve year? #14

jinjinzhou opened this issue Nov 30, 2018 · 16 comments

Comments

@jinjinzhou
Copy link

In the chartevents.csv table we downloaded,

one CHARTTIME, is 5/12/34 12:00

Can someone help with what does 34 mean? How to translate to 34 to a correct calendar year.

Thanks

Jin

@jraffa
Copy link
Contributor

jraffa commented Nov 30, 2018

If you're extracting this from MIMIC II or III, the dates have been shifted, and the years should be nonsensical as the shifting is necessary to protect PHI. It is possible to apply for access to get the actual years, and I would e-mail mimic-support@physionet.org to ask how.

I am not certain, but the authors likely applied for this additional access themselves, and this was how they were able to write their chapter.

Since this isn't a question related to the code, I will close the issue, but if I have misunderstood, feel free to let me know.

@jraffa jraffa closed this as completed Nov 30, 2018
@tompollard
Copy link
Member

tompollard commented Nov 30, 2018

@jinjinzhou as Jesse mentions, the dates are shifted by several hundred years for de-identification purposes. Are you looking at the raw text or using an application like Excel? Excel mashes up the shifted dates, which might explain why you are seeing a nonsensical value.

@jinjinzhou
Copy link
Author

jinjinzhou commented Nov 30, 2018 via email

@tompollard
Copy link
Member

@jinjinzhou There is no need to email us. We prefer to discuss these issues on the public repository (as noted at: https://mimic.physionet.org/help/).

You can typically treat the dates in MIMIC as standard dates. It should not be necessary to translate them. What software are you using the view the data?

@jinjinzhou
Copy link
Author

jinjinzhou commented Nov 30, 2018 via email

@tompollard
Copy link
Member

tompollard commented Nov 30, 2018

The date that you've listed above (CHARTTIME, is 5/12/34 12:00) does not occur in MIMIC-III as far as I am aware. If this date appears in your database, please provide us with a query to find this value (e.g. select charttime from chartevents where row_id = X). Please also read https://www.nature.com/articles/sdata201635 and https://mimic.physionet.org/mimicdata/time/ if you have not already done so.

@jraffa
Copy link
Contributor

jraffa commented Nov 30, 2018

How are you viewing it in R? Are you using RPostgreSQL?

@jraffa jraffa reopened this Nov 30, 2018
@jinjinzhou
Copy link
Author

jinjinzhou commented Nov 30, 2018 via email

@jraffa
Copy link
Contributor

jraffa commented Nov 30, 2018

It is difficult to diagnosis this if we can't replicate it on our end. Are you are able to find what @tompollard has asked for? (row_id)

@jinjinzhou
Copy link
Author

jinjinzhou commented Nov 30, 2018 via email

@jraffa
Copy link
Contributor

jraffa commented Nov 30, 2018

Jin, can you post the image on github.com, it's not showing up here.
#14

@jinjinzhou
Copy link
Author

screen shot 2018-11-30 at 12 58 02 pm

@jinjinzhou
Copy link
Author

screen shot 2018-11-30 at 2 55 44 pm

@MizzleChen
Copy link

Jin, can you post the image on github.com, it's not showing up here.
#14

The data set description about chartevents.csv is available from the website https://mimic.physionet.org/mimictables/chartevents/
The dates are all shifted based on the website https://mimic.physionet.org/mimicdata/time/
It seems that only year had been shifted. Month and day are from original record.
I am just wondering is there anyway to find original year for each observation.

@jinjinzhou
Copy link
Author

To echo above comment, we don't need to have exact year - just a number in the same order as the calendar year order. Thanks,

@tompollard
Copy link
Member

tompollard commented Nov 30, 2018

The year (or sequence by year) is not available in MIMIC-III unfortunately. We understand that this is a limitation and are considering alternative options for handling de-identification for the next release of MIMIC.

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

4 participants