Sha256: 844e9db7b92710ba083246874665eefacd018bb51f9483387867acfcc27febce
Contents?: true
Size: 845 Bytes
Versions: 53
Compression:
Stored size: 845 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/virology" module Renalware module Virology class DashboardPresenter include PresenterHelper attr_reader_initialize :patient def latest_hep_b_antibody_statuses @latest_hep_b_antibody_statuses ||= begin observation_descriptions = Renalware::Pathology::ObservationDescription.for(Array("BHBS")) Renalware::Pathology::CreateObservationsGroupedByDateTable.new( patient: patient, observation_descriptions: observation_descriptions, page: 1, per_page: 5 ).call end end def latest_hep_b_antibody_statuses? latest_hep_b_antibody_statuses.rows.any? end def vaccinations Vaccination.for_patient(patient) end end end end
Version data entries
53 entries across 53 versions & 1 rubygems