Sha256: 094e3cb5fafe9854a82ad090c76768ede45e87601430c2f27ef7324665136bde
Contents?: true
Size: 935 Bytes
Versions: 19
Compression:
Stored size: 935 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/pathology" module Renalware module Pathology # An ObservationDescription can be a member of many groups (a set of descriptions used for # displaying or printing a subset of context-specific results). Within each group, # say, 'letters', a description might be in a sub group (which merely serves to pull results # together in groups on the page for clarity) and within that group might have a position wich # determines its order in the subgroup. class CodeGroupMembership < ApplicationRecord include Accountable has_paper_trail( versions: { class_name: "Renalware::Pathology::Version" }, on: [:create, :update, :destroy] ) validates :position_within_subgroup, presence: true validates :subgroup, presence: true belongs_to :code_group belongs_to :observation_description end end end
Version data entries
19 entries across 19 versions & 1 rubygems