Sha256: fd82a8cf37b0119b6ea4c8dc1409de3a417aa309689b0858d3e81761e6de4870
Contents?: true
Size: 896 Bytes
Versions: 16
Compression:
Stored size: 896 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 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
16 entries across 16 versions & 1 rubygems