File size: 413 Bytes
36e17a1
 
 
 
 
 
 
 
 
 
fd1b984
36e17a1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
defmodule Mix.Tasks.BuildCodeVectors do
  @moduledoc "Populate database with vector embeddings from downloaded ICD-9 code list"

  use Mix.Task

  @shortdoc "Downloads the ICD-9 codelist, calculates vector embeddings for each, and adds them to the database"
  def run(_args) do
    Mix.Task.run("app.start")
    Logger.configure(level: :info)

    MedicalTranscription.Coding.VectorPrecomputation.run()
  end
end