OHDSI / OHDSI/FeatureExtraction

Charlson Comorbidity Index - metastasis category should use measurement table

Open
#301 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
74
Forks
63
PR merge metrics
No merged PRs in 30d

Description

--Metastatic solid tumor
INSERT INTO scratch_ddymshyt.charlson_scoring (
diag_category_id,
diag_category_name,
weight
)
VALUES (
16,
'Metastatic solid tumor',
6
);

INSERT INTO scratch_ddymshyt.charlson_concepts (
diag_category_id,
concept_id
)
SELECT 16,
descendant_concept_id
FROM cdm_optum_ehr_v3323.concept_ancestor
WHERE ancestor_concept_id IN (36769180); -- Metastasis - looks into measurement table then

this concept_id is the new one that we have to use now in the definition.
And use measurement table to get it

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 in inst/sql/sql_server/CharlsonIndex.sql at the Metastatic solid tumor definition around lines 333-352. Review how the current ancestor concept is queried, then trace the referenced measurement table and update the definition to use the new metastasis concept there. Done means the category retrieves metastasis records through the measurement table using the intended concept.

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.