Skip to content

Commit

Permalink
ehreQL scipt done
Browse files Browse the repository at this point in the history
  • Loading branch information
quan14 committed Jan 23, 2025
1 parent 839f8d7 commit f16e3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis/dataset_definition_dx_to_med_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def last_matching_event(events, codelist, where=True):
)

selected_medications = medications.where(
medications.date.is_on_or_between(start_date, end_date)
medications.date.is_on_or_after(start_date)
)

has_adhd_event = selected_events.where(
Expand Down

0 comments on commit f16e3bb

Please sign in to comment.