Sha256: 80d43bf0c84118fda9b533e74965369113d3d36efaa4236b797b2460d39d9a12

Contents?: true

Size: 1.01 KB

Versions: 93

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    # Responsible for defining the set of observation descriptions that
    # are relevant to pathology in the renal care domain
    #
    class RelevantObservationDescription
      # Returns an AR Relation containing e.g.:
      # [
      #    #<Renalware::Pathology::ObservationDescription id: 767, code: "HGB", name: "HGB">,
      #    #<Renalware::Pathology::ObservationDescription id: 1058, code: "MCV", name: "MCV">,
      #    #<Renalware::Pathology::ObservationDescription id: 1055, code: "MCH", name: "MCH">,
      #     ...
      #  ]
      def self.all
        ObservationDescription.for(codes)
      end

      def self.codes
        %w(
          HGB MCV MCH HYPO WBC LYM NEUT PLT RETA ESR
          CRP FER FOL B12 URE CRE EGFR NA POT BIC
          CCA PHOS PTHI TP GLO ALB URAT BIL ALT AST
          ALP GGT BGLU HBA HBAI CHOL HDL LDL TRIG TSH
          CK URR CRCL UREP AL
        )
      end
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
renalware-core-2.0.109 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.108 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.106 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.105 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.104 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.103 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.102 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.101 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.100 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.99 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.98 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.97 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.96 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.95 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.94 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.93 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.92 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.91 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.90 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.89 app/models/renalware/pathology/relevant_observation_description.rb