Sha256: 39c7a1d0ae330e1096deac7358ed0223b02f90cfc2705d9b1617935d45327403

Contents?: true

Size: 1.85 KB

Versions: 1

Compression:

Stored size: 1.85 KB

Contents

<fieldset>
  <legend>Desenvolvimento Neuropsicomotor</legend>

  <% case @consulta.desenvolvimento_neuropsicomotor %>
  <% when Consulta::DESENVOLVIMENTO_NEUROPSICOMOTOR[:adequado] %>
    <p>Desenvolvimento neuropsicomotor adequado.</p>
  <% when Consulta::DESENVOLVIMENTO_NEUROPSICOMOTOR[:inadequado] %>
    <p>Desenvolvimento neuropsicomotor inadequado.</p>
    <p>
      <strong>Observações:</strong><br>
      <% if @consulta.observacoes_desenvolvimento_neuropsicomotor.blank? %>
        Não constam observações.
      <% else %>
        <%= @consulta.observacoes_desenvolvimento_neuropsicomotor %>
      <% end %>
    </p>
  <% when Consulta::DESENVOLVIMENTO_NEUROPSICOMOTOR[:detalhado] %>
    <table class="list">
      <thead>
        <tr>
          <th width="30%">Marco</th>
          <th width="10%">Período<br>(meses)</th>
          <th width="15%">Atingido?<br>(meses)</th>
          <th width="10%">Situação</th>
          <th width="35%">Observações</th>
        </tr>
      </thead>
      <tbody>
        <% tabela_marcos(@consulta.paciente).each do |marco| %>
          <tr>
            <% if marco.is_a?(MarcoAtingido) %>
              <td><%= marco.marco.nome %></td>
              <td><%= marco.marco.inicio %> a <%= marco.marco.fim %></td>
              <td><%= marco.idade %></td>
              <td><%= label_marco(marco, @consulta.paciente).html_safe %></td>
              <td><%= marco.observacao %></td>
            <% else %>
              <td><%= marco.nome %></td>
              <td><%= marco.inicio %> a <%= marco.fim %></td>
              <td>-</td>
              <td><%= label_marco(marco, @consulta.paciente).html_safe %></td>
              <td>-</td>
            <% end %>
          </tr>
        <% end %>
      </tbody>
    </table>
  <% else %>
    <p>Não constam informações sobre o desenvolvimento neuropsicomotor.</p>
  <% end %>
</fieldset>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-sabia-1.0.1 app/views/consultas/show/pdf/_desenvolvimento_neuropsicomotor.pdf.erb