noahsettersten commited on
Commit
628c254
1 Parent(s): ea91b21

chore: Note highlighting is for recorded feedback and not weighting

Browse files
lib/medical_transcription_web/components/transcription_text_component.ex CHANGED
@@ -71,6 +71,9 @@ defmodule MedicalTranscriptionWeb.Components.TranscriptionTextComponent do
71
  """
72
  end
73
 
 
 
 
74
  defp response_for_code_vector(feedbacks, code_vector_id) do
75
  feedback = Enum.find(feedbacks, &(&1.code_vector_id == code_vector_id))
76
 
 
71
  """
72
  end
73
 
74
+ # At the moment, this highlights a code result iff it's for the same pair of text + code_vector.
75
+ # TODO: In the future, we may want this to instead highlight vectors that have been modified by the weighting in
76
+ # `Coding.weight_code_vectors/2`.
77
  defp response_for_code_vector(feedbacks, code_vector_id) do
78
  feedback = Enum.find(feedbacks, &(&1.code_vector_id == code_vector_id))
79