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

Please explain the "then within" part of the cohort criteria. #4

Open
kaicode opened this issue Nov 27, 2018 · 1 comment
Open

Please explain the "then within" part of the cohort criteria. #4

kaicode opened this issue Nov 27, 2018 · 1 comment
Assignees
Labels
answered question Further information is requested

Comments

@kaicode
Copy link
Member

kaicode commented Nov 27, 2018

Sharing a question from someone in the community:

I was just reviewing the slides from the data analytics demonstrator & was wondering about the background to the cohorts model and where the “then within” parts come in?

@kaicode kaicode added the question Further information is requested label Nov 27, 2018
@kaicode
Copy link
Member Author

kaicode commented Nov 27, 2018

The data model is quite simple but it does include a date in the clinical encounter.
https://github.com/IHTSDO/health-data-analytics#data-model

The "then within" part of the cohort criteria requires the clinical encounter be within a number of days since the previous clinical encounter in the criteria. For example a cohort selection criteria says "Tumor necrosis factor alpha inhibitor product" then within "180" days "Bacterial pneumonia" then only patients who have a lung infection within six months of being prescribed the TNF drug will be included in the cohort.

The idea is that this temporal criteria can help filter out irrelevant cases. For example when assessing the effect of a drug prescription on the chance of disorder occurring you would not want to include patients who got a the disorder before the drug was prescribed or, potentially, those who got a disorder many years after the drug was prescribed.

There are plenty of ways the data model could be improved but we feel this is a start in the right direction and enough to demonstrate the potential for powerful data analysis using SNOMED CT.

Here is an example of adding time between clinical encounters in the demonstration data generation logic: https://github.com/IHTSDO/health-data-analytics/blob/1.1.0/src/main/java/org/snomed/heathanalytics/ingestion/exampledata/ExampleDataGenerator.java#L105

Kind regards,
Kai

@kaicode kaicode self-assigned this Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant