DRUG_ERA Script Issue
Open
Nobody has claimed this yet.
Bug
- Dominant language
- HTML
- Stars
- 1.1k
- Forks
- 508
- Avg merge
- 1h 30m
- Merged PRs (30d)
- 3
Description
https://ohdsi.github.io/CommonDataModel/sqlScripts.html#Drug_Eras
The output of this script doesn't match the DRUG_ERA table.

This script also doesn't calculate gap_days, just asserts it is looking for 30 days out.
@clairblacketer FYI
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Drug_Eras section of sqlScripts.html and compare its output with the DRUG_ERA table definition. Investigate the reported mismatch and the gap_days calculation; done means the script output matches the table and calculates gap_days rather than only checking for 30 days.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100