OHDSI / OHDSI/CommonDataModel

DRUG_ERA Script Issue

Open
#482 3 comments 0 reactions 0 assignees View on GitHub

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.

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.