Sha256: 1b0ba47eb7da4f3805bd3a7d4f4bef02e0e327a9b60215a85c306e281dc254fb
Contents?: true
Size: 744 Bytes
Versions: 8
Compression:
Stored size: 744 Bytes
Contents
require_dependency "renalware/letters" module Renalware module Letters class Event::ClinicVisit < Event include ::ActionView::Helpers def initialize(event, clinical:) super(event, clinical: true) end def description "(Clinic Date #{::I18n.l(date.to_date, format: :long)})" end def part_classes super.merge!({ clinical_observations: Part::ClinicalObservations }) end def to_s "Clinic Visit" end def to_link lambda { |patient, event = self| link_to( event.to_s, ::Renalware::Engine.routes.url_helpers.edit_patient_clinic_visit_path(patient, event) ) } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems