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

Date of first occurrence DataFrame #2

Open
SpiroGanas opened this issue Nov 23, 2017 · 0 comments
Open

Date of first occurrence DataFrame #2

SpiroGanas opened this issue Nov 23, 2017 · 0 comments
Assignees

Comments

@SpiroGanas
Copy link
Owner

Create a pandas dataframe where the rows are SUBJECT_IDs, the columns are ICD 9 diagnosis codes, and the values are the earliest data where the subject has a record of having that diagnosis.

If a patient never had that illness, the values shown will be NaN.

This type of table should make it easy to create an "observation period" dataset consisting of all diagnoses that were recorded in some time period prior to an event. For example, if we are analyzing patients with heart failure, this DataFrame would allow us to easily find all of a patient's diagnoses in the two years prior to the heart failure diagnosis.

@SpiroGanas SpiroGanas self-assigned this Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant