Sha256: 31a82be536df9e5ca8dccf44f6f7dfe816e455be7dce720d83f936986a0409a8

Contents?: true

Size: 906 Bytes

Versions: 6

Compression:

Stored size: 906 Bytes

Contents

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

tr
  td= link_to t(".view"), view_proc.call(patient)
  td.full-name= 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.has_transport&.text
  td= patient.transport_type&.text
  td= pathology_patient.hgb_result
  td= l(pathology_patient.hgb_observed_at&.to_date)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/hd/mdm_patients/_patient.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/hd/mdm_patients/_patient.html.slim