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

Error when enabling dropdowns in sub-concept #460

Closed
ElevnLi opened this issue Oct 15, 2021 · 4 comments
Closed

Error when enabling dropdowns in sub-concept #460

ElevnLi opened this issue Oct 15, 2021 · 4 comments

Comments

@ElevnLi
Copy link

ElevnLi commented Oct 15, 2021

Hey, this is Elevn, software engineer from University of Sydney and we are trying to fork and utilise Leaf to be the base of our clinical data management platform, Sanddi. And I'm having an issue regarding enabling dropdowns in sub-concept. Not sure if I'm using it correctly or there is a potential bug.

I created a SQL Set called fm_patient, in which I created multiple dropdowns, such as summary primary diagnosis, diagnosis certainty, etc. Then I created a concept called Patient and I'm able to enable dropdowns for this concept and it works fine. However, what I want to do is to create a sub-concept called Diagnosis and enable the dropdowns there, as I can't have all dropdowns from different perspectives all in Patient. Now I can see the dropdowns inherited from Patient in Diagnosis, but when I click a specific dropdown I want, it will run to an error like below.

Screen Shot 2021-10-15 at 12 55 08 pm

Do you know what I might be doing wrong here? Let me know. Thanks a lot!

@ndobb
Copy link
Member

ndobb commented Oct 15, 2021

Hi @ElevnLi, nice work! I think I follow but can you add a few pictures of the UI to make sure I'm understanding correctly?

Also, did you add dropdowns via the Admin UI or directly to the SQL DB?

@ElevnLi
Copy link
Author

ElevnLi commented Oct 17, 2021

Hi @ndobb,

Thanks for being so responsive! I added dropdowns via the admin UI like below
Screen Shot 2021-10-17 at 7 49 46 pm

And I'm able to enable them under Patient, which is the root concept utilising fm_patient_csv
Screen Shot 2021-10-17 at 7 52 00 pm

However, if I try to enable dropdowns from sub-concept like below, it will raise that error after I click any of the dropdowns
Screen Shot 2021-10-17 at 7 54 24 pm

@jnothman
Copy link
Contributor

This error happens when the concept is not saved.

@ndobb
Copy link
Member

ndobb commented Oct 19, 2021

Thanks @ElevnLi and @jnothman! This has been fixed in v3.10 https://github.com/uwrit/leaf/releases/tag/v3.10.0

@ndobb ndobb closed this as completed Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants