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

Version Path
renalware-core-2.0.148 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.147 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.146 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.145 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.144 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.143 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.142 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.141 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.140 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.139 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.138 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.137 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.136 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.135 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.134 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.133 app/models/renalware/pathology/code_group_membership.rb