Sha256: 64faf9614c26467b1824276321c78cdbbf0814a1c37f6956fdfa3bf64169f900

Contents?: true

Size: 855 Bytes

Versions: 8

Compression:

Stored size: 855 Bytes

Contents

/ We try and keep cross-module dependencies in the View layer.
- access_patient = Renalware::Accesses::PatientPresenter.new(patient)
- transplant_patient = Renalware::Transplants::PatientPresenter.new(patient)

tr
  td.full-name= link_to patient, view_proc.call(patient)
  td.nowrap= patient.nhs_number
  td.nowrap= patient.hospital_identifier
  td= patient.sex.code
  td= patient.age
  td= access_patient.access_profile_type
  td= l(access_patient.access_profile_started_on)
  td= access_patient.access_plan_plan_type
  td= l(access_patient.access_plan_created_at.to_date)
  td= patient.dialysing_at_unit
  td= transplant_patient.current_registration_status
  td= patient.transport_summary
  td= patient.current_observation_set.hgb_result
  td= l(patient.current_observation_set.hgb_observed_at)
  td.actions= link_to t(".view"), view_proc.call(patient)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc10 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/hd/mdm_patients/_patient.html.slim