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

analysis_id 200: stratum_1 with NULL values #50

Open
aspedrosa opened this issue Jun 8, 2022 · 2 comments
Open

analysis_id 200: stratum_1 with NULL values #50

aspedrosa opened this issue Jun 8, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@aspedrosa
Copy link

Not sure if this is the correct place to place these issues.

For some databases on the NetworkDashboard EHDEN installation, the record of analysis_id=200 has a stratum_1 value of NULL.
This affects all Visit related graphs, making these databases not show in such graphs.

However, there is a workaround that we can do on the NetworkDashboards side, I'm just not sure if it's correct. Basically assume that values of stratum_1=NULL are the same as stratum_1=0, which will display "No matching concept".

@aspedrosa aspedrosa added the bug Something isn't working label Jun 8, 2022
@MaximMoinat
Copy link

Analysis 200 is "Number of persons with at least one visit occurrence, by visit_concept_id" with stratum_1 being the visit_concept_id. Apparently in some databases the visit_concept_id is empty (NULL). This is not according to the OMOP CDM conventions (it should indeed be 0 if no visit concept applicable).

In short, I agree with your solution (adding a coalesce(stratum_1, 0) should work), but the actual solution is with the data owners to fix their data and populate the visit_concept_id.

@aspedrosa
Copy link
Author

Didn't know about the coalesce function. I updated the visit-related queries to use it, for analysis_id IN (200, 2001), and now Databases with this issue (German MS Registry for example) will show a "No matching concept" record as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants