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

surface complications stats #102

Open
mooreniemi opened this issue Feb 27, 2021 · 0 comments · May be fixed by #103
Open

surface complications stats #102

mooreniemi opened this issue Feb 27, 2021 · 0 comments · May be fixed by #103

Comments

@mooreniemi
Copy link
Owner

Complications are stored as tags. They're pretty messy. It was not an ideal design. It'd be good to surface some of the information in them to users. Both at procedure and surgeon level.

Some queries:

ActsAsTaggableOn::Tagging.includes(:tag).where(context: 'complications').pluck(:taggable_id, :name).group_by {|id, name| id }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant