Sha256: 601df61bd4cc90a1f7cd0f391a0f0fdde87f0c91af97f343b85b1edf74cf8c62

Contents?: true

Size: 1005 Bytes

Versions: 20

Compression:

Stored size: 1005 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.7 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.5 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.4 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.3 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.2 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.1 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/pathology/relevant_observation_description.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/pathology/relevant_observation_description.rb