bptlab / TracEX

This bachelorproject focuses on event log extraction from patient journeys using large-language models.
5 stars 5 forks source link

Feature/105 cohort filter all trace view #128

Closed soeren227 closed 6 months ago

soeren227 commented 6 months ago

Closes #105.

This PR adds an evaluation view in which the contents of the database can be scrutinized. You can filter based on activity (like in ResultsView) and based on Cohort (gender, age, origin, condition, preexisting_condition).

For this to work and for you to test you need to

  1. have sufficient database entries preferably with complete cohort information (you get this by generating pjs with the generator or editing existing cohort information)
  2. connect traces to cohorts with a 1:1 mapping

PM me if you run into trouble :D

tkv29 commented 6 months ago

Functionality looks good, gj! Some remarks regarding the design:

soeren227 commented 6 months ago

Functionality looks good, gj! Some remarks regarding the design:

  • Could you add a space between the label and the slide please so there is no overlay:
image
  • I think using Events instead of Activities in "Filter based on Activities" is more fitting
  • Maybe it would look better if you put a divider between the Filter Activites and Filter Cohorts (https://www.w3schools.com/howto/howto_css_dividers.asp)
  • why is the select/deselect button only for the origin, I guess the naming of the button should be more declarative, so the user know that its only for the origin
image

Would you prefer a change in labeling (e.g "Select/Deselect all Origin Options), the addition of similar buttons for all other choices or the removal of that button and functionality?

Thanks for the feedback on everything else 👍

tkv29 commented 6 months ago

Functionality looks good, gj! Some remarks regarding the design:

  • Could you add a space between the label and the slide please so there is no overlay:
image
  • I think using Events instead of Activities in "Filter based on Activities" is more fitting
  • Maybe it would look better if you put a divider between the Filter Activites and Filter Cohorts (https://www.w3schools.com/howto/howto_css_dividers.asp)
  • why is the select/deselect button only for the origin, I guess the naming of the button should be more declarative, so the user know that its only for the origin image

Would you prefer a change in labeling (e.g "Select/Deselect all Origin Options), the addition of similar buttons for all other choices or the removal of that button and functionality?

Thanks for the feedback on everything else 👍

Removing the button and using a selection box like this for every cohort attribute would be nice: image

Afaik u also for the select/deselect all JS, its also possible to this with a checkbox This would be probably helpful: https://stackoverflow.com/questions/14260428/how-to-select-and-deselect-all-options-in-a-select-box

tkv29 commented 6 months ago

Is it possible to copy the code of the download button, to download the xes based on the cohort filters?

soeren227 commented 6 months ago

Is it possible to copy the code of the download button, to download the xes based on the cohort filters?

it should be possible, but i'd need to talk to @thangixd about it since he created the logic behind the download button.

thangixd commented 6 months ago

Is it possible to copy the code of the download button, to download the xes based on the cohort filters?

it should be possible, but i'd need to talk to @thangixd about it since he created the logic behind the download button.

Should be. Can u give me a brief description what exactly u want?

tkv29 commented 6 months ago

Good job, some points I noticed:

image image image image
tkv29 commented 6 months ago

Could you please rename "Gender" to "Sex", during the workshop presentation it was remarked that its the social gender and the biological sex

tkv29 commented 6 months ago

as mentioned in the weekly: could you drop the metrics columns

image
thangixd commented 6 months ago

This pr also closes #131

soeren227 commented 6 months ago

The last commit implements changes to accomodate your suggestions. Please check if everything is in order now @tkv29 @nils-schmitt Thanks :)

Edit: You need to migrate once since i needed to change gender to sex in the Cohort model