Health-Informatics-UoN / Carrot-Mapper

Carrot: Convenient And Reusable Rapid Omop Transformer.
https://carrot4omop.ac.uk
MIT License
12 stars 3 forks source link

Add DEATH table fields #646

Open jbnuh opened 4 months ago

jbnuh commented 4 months ago

Is there an existing issue for this?

Is your proposal related to a problem or functionality gap?

The SDE programme has defined a minimum OMOP data model for Cohort Discovery. Death-related data is included as it is relevant to research in the domain. It would be great if the following fields were included in the capability of CaRROT-Mapper.

Describe your proposal

Please could you add the following fields from the DEATH table? person_id (key) death_date (Records the date of death for mortality-related cohorts and survival analysis.) death_type_concept_id (Identifies the type of death (e.g., natural, accidental) for cohort definition and research on specific death causes.) cause_concept_id (Identifies the underlying cause of death for mortality analysis and research on disease burden and risk factors.

Describe alternatives you've considered

No response

I'm part of a Project Team

No response

Anything else?

No response

Are you willing to contribute to developing this feature?

🎨 Yes, I'm keen to be involved in design discussions.

AndyRae commented 1 month ago

We need to confirm in the CDM, is this 121 or a 12 many. There could be multiple causes of death, possible creating multiple entries.

AndyRae commented 1 week ago

This is not just a config change, adding "death" to the tables list.

death_type_concept_id will not be used.

But cause_concept_id - this will likely look up a "condition / observation" , so therefore we "might" need to intervene. When adding a Concept we rely on using the domain of the concept to identify it for the rule, we would need to conditional checking if this is the death table, and override it accordingly.