Sha256: 99b5ea0530f6b27e1c635515ee8784c2541794660e3de51f2acc5e88ebd829e9
Contents?: true
Size: 486 Bytes
Versions: 15
Compression:
Stored size: 486 Bytes
Contents
require_dependency "renalware/pathology" module Renalware module Pathology # A singleton exposing all defined OBX codes as an array of symbols class AllObservationCodes include Singleton # Example usage: # AllObservationCodes.include?(code) def self.include?(code) instance.all.include?(code) end def all @all ||= ObservationDescription.order(:code).pluck(:code).map(&:upcase).map(&:to_sym) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems