- document = Renalware::Virology.cast_patient(protocol.patient).profile&.document || Renalware::NullObject.instance table(style="text-align: left;") - %i(hiv hepatitis_b hepatitis_c).each do |attr| - if document.public_send(attr).status&.yes? tr th= attr_name(document, attr) td= document.public_send(attr).to_s