Class: Renalware::Pathology::ObservationsGroupedByDateTable::Row

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

Instance Method Summary collapse

Instance Method Details

#observed_onObject



47
48
49
# File 'app/models/renalware/pathology/observations_grouped_by_date_table.rb', line 47

def observed_on
  Date.parse(row[:observed_on])
end

#result_for(code) ⇒ Object



51
52
53
# File 'app/models/renalware/pathology/observations_grouped_by_date_table.rb', line 51

def result_for(code)
  results[code&.to_sym]
end

#resultsObject



55
56
57
# File 'app/models/renalware/pathology/observations_grouped_by_date_table.rb', line 55

def results
  @results = JSON.parse(row[:results]).with_indifferent_access
end