Class: Renalware::Pathology::ObservationsGroupedByDateTable::Row
- Inherits:
-
Object
- Object
- Renalware::Pathology::ObservationsGroupedByDateTable::Row
- Defined in:
- app/models/renalware/pathology/observations_grouped_by_date_table.rb
Instance Method Summary collapse
Instance Method Details
#observed_on ⇒ Object
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 |
#results ⇒ Object
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 |