Sha256: 75e8d501e6181cbdbe677642ecea8753ea691c4ff2c2c2ded417d158718556cf

Contents?: true

Size: 1.26 KB

Versions: 37

Compression:

Stored size: 1.26 KB

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.show-for-xlarge-up= patient.current_observation_set.phos_result
  td.show-for-xlarge-up= l(patient.current_observation_set.phos_observed_at)
  td.show-for-xlarge-up= patient.current_observation_set.pth_result
  td.show-for-xlarge-up= l(patient.current_observation_set.pth_observed_at)
  td.show-for-xlarge-up= patient.current_observation_set.urr_result
  td.show-for-xlarge-up= l(patient.current_observation_set.urr_observed_at)
  td.actions= link_to t(".view"), view_proc.call(patient)

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
renalware-core-2.0.39 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.38 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.37 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.36 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.35 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.34 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.33 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.32 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.31 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.30 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.28 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.27 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.26 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.25 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.24 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.23 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.22 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.21 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.20 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.18 app/views/renalware/hd/mdm_patients/_patient.html.slim