Sha256: 8c596a1f82fcc8fff6141a575bb080a1b1149e1051eeb35b34f2239e0571a490
Contents?: true
Size: 762 Bytes
Versions: 23
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/clinical" module Renalware module Clinical class Patient < ActiveType::Record[Renalware::Patient] has_many :allergies, dependent: :restrict_with_exception # These statuses match NHS standards for the display of recorded allergy status. # Note that # - if no_known_allergies then patient.allergies must be empty # - if known_allergies then patient.allergies must be not be empty # - unavailable is not currently used enumerize :allergy_status, in: %i(unrecorded known_allergies no_known_allergies unavailable), default: "unrecorded" end end end
Version data entries
23 entries across 23 versions & 1 rubygems