Skip to content

Commit

Permalink
feat(results): Add results within 1 year
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Mar 6, 2024
1 parent 2d5c72c commit e37ff06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# bso-clinical-trials

[![Discord Follow](https://dcbadge.vercel.app/api/server/TudsqDqTqb?style=flat)](https://discord.gg/TudsqDqTqb)
![GitHub](https://img.shields.io/github/license/dataesr/bso-clinical-trials)
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/dataesr/bso-clinical-trials)
Expand Down
2 changes: 2 additions & 0 deletions bsoclinicaltrials/server/main/enrich_ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def enrich(all_ct):
dois_info_dict[doi] = info
for p in res:
has_publication_oa = None
p['has_results_or_publications_within_1y'] = False
p['has_results_or_publications_within_3y'] = False
publication_access = []
publications_date = []
Expand Down Expand Up @@ -69,6 +70,7 @@ def enrich(all_ct):
str):
p['delay_first_results_completion'] = (pd.to_datetime(p['first_results_or_publication_date']) - pd.to_datetime(
p['study_completion_date'])).days
p['has_results_or_publications_within_1y'] = (p['delay_first_results_completion'] <= 365)
p['has_results_or_publications_within_3y'] = (p['delay_first_results_completion'] <= 365 * 3)
p['has_publication_oa'] = has_publication_oa
p['publication_access'] = publication_access
Expand Down

0 comments on commit e37ff06

Please sign in to comment.