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

Version Path
renalware-core-2.1.1 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.1.0 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.167 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.166 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.165 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.164 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.163 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.162 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.161 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.160 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.159 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.158 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.157 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.156 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.155 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.153 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.152 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.151 app/models/renalware/pathology/code_group_membership.rb
renalware-core-2.0.149 app/models/renalware/pathology/code_group_membership.rb