Missing primary key for table `death`?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Start by comparing the death-table field definitions linked for OMOP CDM versions 5.3, 5.4, and 6.0. Determine whether person_id uniquely identifies rows and whether death_type_concept_id or cause_concept_id permit multiple records per event. Done means the key decision is resolved and the affected model definitions and DDLs are updated consistently across all three versions.
Written by the indexing model from the issue text.
Description
Table death does not have a primary key, although this would help with data integrity. How unique are rows in that table?
My initial thought is that person_id can be a primary key in that table -- as all can be anticipated to die at most once --, but I am unclear
about whether death_type_concept_id and cause_concept_id model a 1:1 relationship with a death event. If not the case, and a death event can be associated with multiple death types or causes, a different primary key should be used.
This is currently present in all three versions 5.3, 5.4, and 6.0.
- Dominant language
- HTML
- Stars
- 1.1k
- Forks
- 513
- Avg merge
- 8d 3h
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from OHDSI/CommonDataModel
-
Difficulty 1/5 Under an hour Newbie friendliness 74/100
OHDSI/CommonDataModel#802 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OHDSI/CommonDataModel#799 ·
-
fix: mark cohort_definition_id as primary key in cohort_definition table for v5.3 and v5.4Possibly taken @rtmalikian claimed this 137 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
OHDSI/CommonDataModel#787 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OHDSI/CommonDataModel#784 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
OHDSI/CommonDataModel#823 ·
All issues in OHDSI/CommonDataModel
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nopSolutions/nopCommerce#8439 ·
Maintainers usually reply within 1 day
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
callstackincubator/simlock#1234 · 1 comment ·
Maintainers usually reply within 1 day
-
🐛 Bug: node-sqlite3 example fails on values that contain a quotePossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
mochajs/mocha-examples#130 ·
-
`HandleEmptyInListsPlugin` / `SafeNullComparisonPlugin` skip expressions nested in `eb.selectFrom(...)` subqueriesPossibly taken @superbot-helper claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kysely-org/kysely#2216 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day