Class: Renalware::Forms::Generic::Homecare::V1::PatientDetails

Inherits:
Base
  • Object
show all
Defined in:
lib/renalware/forms/generic/homecare/v1/patient_details.rb

Constant Summary

Constants inherited from Base

Base::TABLE_WIDTH

Constants inherited from Base

Base::CHECKBOX, Base::EMPTY_CHECKBOX

Instance Method Summary collapse

Methods inherited from Base

#heading, #table_styles

Methods inherited from Base

#borderless_table_style, #cell_with_leading_checkbox, #cell_with_trailing_checkbox, #underlined_table_style

Instance Method Details

#buildObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/renalware/forms/generic/homecare/v1/patient_details.rb', line 6

def build
  move_down 10
  font_size 10
  table(
    [
      [heading("Name"), args.patient_name],
      [heading("Modality"), args.modality],
      [heading("Date of Birth"), args.born_on],
      [heading("NHS Number"), args.nhs_number],
      [heading("Hospital no"), args.hospital_number],
      [heading("Address"), args.formatted_address_and_postcode]
    ],
    **table_styles(border_width: 0)
  )
end