medicode / lib /mix /build_code_vectors.ex
timgremore's picture
chore: Rename app to Medicode
3f219b5
raw
history blame contribute delete
401 Bytes
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)
Medicode.Coding.VectorPrecomputation.run()
end
end