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

Cohort Definition tab: Error in Resolved concepts #921

Closed
pbr6cornell opened this issue Sep 19, 2022 · 6 comments
Closed

Cohort Definition tab: Error in Resolved concepts #921

pbr6cornell opened this issue Sep 19, 2022 · 6 comments
Assignees
Labels
bug Something isn't working pr Currently in a pr

Comments

@pbr6cornell
Copy link

I believe there is an error in how Resolved concepts are being generated. Screenshot of example below:

image

For the conceptset of Anaphylaxis, which is all standard condition concepts, I am seeing the Resolved list shows source concepts, including records in Observation and Drug domain. For this example, CPRD, I verified that the drug concept shown here does not map to any of the standard concept.

My suspicion is that records shown in 'Resolved' are actually inclusive of concepts that would have been recommended as 'Orphan concepts'.

When I select 'Orphan concepts', i get the following message:

image

Steps to reproduce:
Select Anaphlyaxis cohort, select anaphylaxis conceptset, select Resolved button and look at results.

@pbr6cornell pbr6cornell added the bug Something isn't working label Sep 19, 2022
@pbr6cornell
Copy link
Author

Note:

Expected behavior of 'Resolved', should be to produce the full list of Included concepts from the conceptset expression. It should not have non-standard concepts (unless non-standards are explicitly part of conceptset expression).

'Mapped' should provide the list of all mapped source codes to the included/resolved concept list.

@azimov azimov self-assigned this Sep 19, 2022
@azimov azimov added this to the Release version 3.1.0 milestone Sep 19, 2022
@gowthamrao
Copy link
Member

Few additional comments

  1. The drop down for databases. i put that drop down before, but now would like the drop down with multi select for databases on the left menu bar like this. I think it makes the UX consistent.

image

  1. The resolved concepts is a bug.

  2. The output - given that we now have multi select for databases would be a wide table like this
    image

  3. Mapped - what do the resolved concept id's map to. one rendering would look like this. Note the first column is the conceptid from the resolved set.
    image
    (An alterative UX is the make a drill down experience with reactable. i.e. in the resolved table itself, a row select opens another table with mapped concepts)
    In the UI i rendered for the screenshot - there is a concept id in the first column that is the resolved concept id. concept id in the second column is the mapped concept id.

  4. Orphan - the orphan concepts not rendering is a bug. It should be rendered something like this
    image

The record count would have counts of occurrence of the concept in the data sources

  1. Note the additional radio button for persons/records. This is very useful
    image

Depending on what radio button is selected, the counts in the header would change
Example when both is selected - the persons would have the cohorts person count, the record count would give the records in the cohort

image

If i select the radio button for persons, then the table structure would change from two level header to one level header with person count as the value next the datasourc ename as follows

image

@gowthamrao
Copy link
Member

Also doesnt show numbers - when data exists for numbers

observed
image

Expected
image

@azimov
Copy link
Collaborator

azimov commented Sep 21, 2022

https://github.com/gowthamrao/CohortDiagnostics/blob/execute2/inst/shiny/DiagnosticsExplorer/R/Results.R to the code in develop it would be easier.

But some summary

image

@azimov
Copy link
Collaborator

azimov commented Sep 21, 2022

The UX of having the database on the side is not helpful. Multi-select is also not that useful and can wait for a future version.

Orphan concepts were also removed in this tab as only supporting a single tab reduces the chance of error/development burden.

See #943

@gowthamrao
Copy link
Member

Multi-select is also not that useful

i am fine with waiting for next version, but i disagree about the usefulness of the multi select. We need to know how the various data sources compare when resolving concept set expression. The side by side view allows us to do the comparison.

@azimov azimov added the pr Currently in a pr label Sep 23, 2022
azimov added a commit that referenced this issue Sep 23, 2022
* Removed orphan concepts to prevent duplication of functionality

* Fixed resolved concepts button, removed orphan concept code

* fixed cohort zip export button

* Cohort counts displays

* Replaced histogram function with gradient
@azimov azimov closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pr Currently in a pr
Projects
None yet
Development

No branches or pull requests

3 participants