<%= question[:id] %>{"<%= question[:label] %>"}
<% dependency = @dependencies.find { |d| d[:id] == answer[:dependency] } %>
<% if dependency[:answers].nil? %>
  <%= question[:id] %> --> |"<%= key %>"| <%= answer[:dependency] %>["<%= dependency[:label] %>"]
  <% if !@questions[index + 1].nil? %>
    <%= answer[:dependency] %>["<%= dependency[:label] %>"] --> <%= @questions[index + 1][:id] %>["<%= @questions[index + 1][:label] %>"]
  <% end %>
<% else %>
  <%= question[:id] %> --> |"<%= key %>"| <%= answer[:dependency] %>{"<%= dependency[:label] %>"}
  <% if dependency[:prerequisites].count <= 1 || (dependency[:id] == "timeSensitive" && dependency[:prerequisites].count == 2) %>
    <% dependency[:answers].each do |k,v| %>
      <% @deps << render(partial: "answer.txt", locals: { question: dependency, index: index, key: k, answer: v }) %>
    <% end %>
  <% else %>
    <% dependency[:prerequisites].shift %>
  <% end %>
<% end %>

<%= question[:id] %>{"<%= question[:label] %>"}
<% dependency = @dependencies.find { |d| d[:id] == answer[:dependency] } %>
<% if dependency[:answers].nil? %>
  <%= question[:id] %> --> |"<%= key %>"| <%= answer[:dependency] %>["<%= dependency[:label] %>"]
  <% if !@questions[index + 1].nil? %>
    <%= answer[:dependency] %>["<%= dependency[:label] %>"] --> <%= @questions[index + 1][:id] %>["<%= @questions[index + 1][:label] %>"]
  <% end %>
<% else %>
  <%= question[:id] %> --> |"<%= key %>"| <%= answer[:dependency] %>{"<%= dependency[:label] %>"}
  <% if dependency[:prerequisites].count <= 1 || (["timeSensitive","privacyImpactAssessmentExists"].include?(dependency[:id]) && dependency[:prerequisites].count == 2) %>
    <% dependency[:answers].each do |k,v| %>
      <% @deps << render(partial: "answer.txt", locals: { question: dependency, index: index, key: k, answer: v }) %>
    <% end %>
  <% else %>
    <% dependency[:prerequisites].shift %>
  <% end %>
<% end %>

Add privacyImpactAssessmentExists to list of anomolies
Add privacyImpactAssessmentExists to list of anomolies
