Sha256: ba8870f4ee07a441846564d89f0825a2c90cb57460dd8f77e48be8898999e7f2

Contents?: true

Size: 1.56 KB

Versions: 27

Compression:

Stored size: 1.56 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.actions
    = link_to view_proc.call(patient), target: "_blank" do
      i.fa.fa-external-link-square-alt
      |   
      = t(".view")
  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.col-width-medium.show-for-xlarge-up= patient.schedule_definition
  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.pot_result
  td.show-for-xlarge-up= l(patient.current_observation_set.pot_observed_at)
  td.show-for-xlarge-up= patient.current_observation_set.pthi_result
  td.show-for-xlarge-up= l(patient.current_observation_set.pthi_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)

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
renalware-core-2.0.161 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.160 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.159 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.158 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.157 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.156 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.155 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.153 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.152 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.151 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.149 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.148 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.147 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.146 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.145 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.144 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.143 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.142 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.141 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.140 app/views/renalware/hd/mdm_patients/_patient.html.slim