Commit
•
0bccf0e
1
Parent(s):
ac73841
fix: Formatting
Browse files
config/config.exs
CHANGED
@@ -7,8 +7,7 @@
|
|
7 |
# General application configuration
|
8 |
import Config
|
9 |
|
10 |
-
config :medicode, Medicode.Repo,
|
11 |
-
types: Medicode.PostgrexTypes
|
12 |
|
13 |
config :medicode,
|
14 |
ecto_repos: [Medicode.Repo],
|
|
|
7 |
# General application configuration
|
8 |
import Config
|
9 |
|
10 |
+
config :medicode, Medicode.Repo, types: Medicode.PostgrexTypes
|
|
|
11 |
|
12 |
config :medicode,
|
13 |
ecto_repos: [Medicode.Repo],
|
config/prod.exs
CHANGED
@@ -5,8 +5,7 @@ import Config
|
|
5 |
# manifest is generated by the `mix assets.deploy` task,
|
6 |
# which you should run after static files are built and
|
7 |
# before starting your production server.
|
8 |
-
config :medicode, MedicodeWeb.Endpoint,
|
9 |
-
cache_static_manifest: "priv/static/cache_manifest.json"
|
10 |
|
11 |
# Configures Swoosh API Client
|
12 |
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Medicode.Finch
|
|
|
5 |
# manifest is generated by the `mix assets.deploy` task,
|
6 |
# which you should run after static files are built and
|
7 |
# before starting your production server.
|
8 |
+
config :medicode, MedicodeWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
|
|
|
9 |
|
10 |
# Configures Swoosh API Client
|
11 |
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Medicode.Finch
|
lib/medical_transcription/application.ex
CHANGED
@@ -13,8 +13,7 @@ defmodule Medicode.Application do
|
|
13 |
children = [
|
14 |
MedicodeWeb.Telemetry,
|
15 |
Medicode.Repo,
|
16 |
-
{DNSCluster,
|
17 |
-
query: Application.get_env(:medicode, :dns_cluster_query) || :ignore},
|
18 |
{Phoenix.PubSub, name: :medicode_pubsub},
|
19 |
# Start the Finch HTTP client for sending emails
|
20 |
{Finch, name: Medicode.Finch},
|
|
|
13 |
children = [
|
14 |
MedicodeWeb.Telemetry,
|
15 |
Medicode.Repo,
|
16 |
+
{DNSCluster, query: Application.get_env(:medicode, :dns_cluster_query) || :ignore},
|
|
|
17 |
{Phoenix.PubSub, name: :medicode_pubsub},
|
18 |
# Start the Finch HTTP client for sending emails
|
19 |
{Finch, name: Medicode.Finch},
|
lib/medical_transcription/transcriptions.ex
CHANGED
@@ -207,7 +207,8 @@ defmodule Medicode.Transcriptions do
|
|
207 |
query =
|
208 |
from(
|
209 |
k in TranscriptionChunkKeyword,
|
210 |
-
join: c in TranscriptionChunk,
|
|
|
211 |
where: c.transcription_id == ^transcription_id,
|
212 |
group_by: k.keyword,
|
213 |
select: %{keyword: k.keyword, score: sum(k.score)},
|
|
|
207 |
query =
|
208 |
from(
|
209 |
k in TranscriptionChunkKeyword,
|
210 |
+
join: c in TranscriptionChunk,
|
211 |
+
on: k.transcription_chunk_id == c.id,
|
212 |
where: c.transcription_id == ^transcription_id,
|
213 |
group_by: k.keyword,
|
214 |
select: %{keyword: k.keyword, score: sum(k.score)},
|
storybook/components/code_select.story.exs
CHANGED
@@ -4,7 +4,8 @@ defmodule MedicodeWeb.Storybook.CodeSelect do
|
|
4 |
def component, do: MedicodeWeb.Components.CodeSelect
|
5 |
|
6 |
def variations do
|
7 |
-
text =
|
|
|
8 |
|
9 |
[
|
10 |
%Variation{
|
|
|
4 |
def component, do: MedicodeWeb.Components.CodeSelect
|
5 |
|
6 |
def variations do
|
7 |
+
text =
|
8 |
+
"This 55-year-old man with known coronary artery disease comes for a follow-up visit today."
|
9 |
|
10 |
[
|
11 |
%Variation{
|