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 }
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: