Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for adding concepts to DEATH table #900

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

AndrewThien
Copy link
Contributor

@AndrewThien AndrewThien commented Oct 17, 2024

Changes

This PR added a setting on the ScanReport table's Details page to enable users to make an SR Table a "Death table," where all of the concepts manually added here will be mapped to the OMOP table Death (apart from Race, Gender, and Ethnicity, which will be mapped to the PERSON table to fulfil the OMOP CDM requirement).

When this setting is "ON", the newly added logic in the save_mapping_rules function will map the added concepts to the Death table in OMOP.

For now, this setting, once set, will be permanent. Therefore, a confirmation dialogue will warn users and provide more information when users click the toggle.

The delay duration of the tooltip in ShadCN has also been decreased to enhance UX.

Closes #646
Screenshot 2024-10-29 at 09 42 54

Screenshot 2024-10-30 at 11 36 47

Copy link

github-actions bot commented Oct 17, 2024

Tests Skipped Failures Errors Time
25 1 💤 6 ❌ 0 🔥 4.641s ⏱️

@AndrewThien AndrewThien marked this pull request as ready for review October 28, 2024 16:09
@AndrewThien AndrewThien requested a review from AndyRae October 29, 2024 09:44
MoizIqbal97
MoizIqbal97 previously approved these changes Oct 29, 2024
MoizIqbal97
MoizIqbal97 previously approved these changes Oct 29, 2024
Jivanam
Jivanam previously approved these changes Oct 29, 2024
@AndrewThien AndrewThien dismissed stale reviews from Jivanam and MoizIqbal97 via c1664fd October 30, 2024 10:59
AndyRae
AndyRae previously approved these changes Oct 30, 2024
MoizIqbal97
MoizIqbal97 previously approved these changes Oct 30, 2024
@AndyRae
Copy link
Member

AndyRae commented Nov 1, 2024

Just to note some feedback

  • It may be possible for us to not have to lock anything, as the Rules are "refreshed".
  • But we should check with data
  • We should remove the detail in the prompt that we can map to the Person table from the death table
  • We need to make it clear that the Carrot data standard is basically have another death.csv if you want to map this data

@AndrewThien AndrewThien dismissed stale reviews from MoizIqbal97 and AndyRae via c3d8bb2 November 21, 2024 14:21
@AndrewThien
Copy link
Contributor Author

the content of the confirmation prompt has been updated now. Please have a look @AndyRae
Screenshot 2024-11-21 at 16 33 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add DEATH table fields
4 participants