Class: Renalware::Pathology::RelevantObservationDescription

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/pathology/relevant_observation_description.rb

Overview

Responsible for defining the set of observation descriptions that are relevant to pathology in the renal care domain

Class Method Summary collapse

Class Method Details

.allObject

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">,
   ...
]


18
19
20
# File 'app/models/renalware/pathology/relevant_observation_description.rb', line 18

def self.all
  ObservationDescription.for(codes)
end

.codesObject



22
23
24
25
26
27
28
29
30
# File 'app/models/renalware/pathology/relevant_observation_description.rb', line 22

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