Sha256: 2e46e410022bd8066395ffc99512b62d01e6d845d3ffb3ecb2fdac76129113be

Contents?: true

Size: 1.33 KB

Versions: 76

Compression:

Stored size: 1.33 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.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.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

76 entries across 76 versions & 1 rubygems

Version Path
renalware-core-2.0.121 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.120 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.119 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.118 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.117 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.116 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.115 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.113 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.112 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.111 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.110 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.109 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.108 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.106 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.105 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.104 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.103 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.102 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.101 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.100 app/views/renalware/hd/mdm_patients/_patient.html.slim