-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating TCR ERD * setting up junction tables, updating variable/column names * finishing updates to db * fixing ersd junction code, updating function names * updating documentation, doc string * fixing typo * updating tables created * updating documentation * updating with latest erd * adding VSAC FHIR API code to capture versions * optimizing code * updating comments, checking integration tests * trying different version of testcontainers * changing type_id to type * rolling back req change * we do need to change dev-reqs? * updating to db * [pre-commit.ci] auto fixes from pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
80b9b2d
commit 18a23c7
Showing
11 changed files
with
296 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
pytest | ||
httpx | ||
testcontainers[compose]==3.7.1 | ||
testcontainers[compose] | ||
mammoth==1.8.0 | ||
beautifulsoup4==4.12.3 | ||
lxml==5.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
59 changes: 59 additions & 0 deletions
59
...ners/trigger-code-reference/seed-scripts/migrations/V02_01__create_tables_add_indexes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
CREATE TABLE IF NOT EXISTS valuesets ( | ||
id TEXT PRIMARY KEY, | ||
oid TEXT, | ||
version TEXT, | ||
name TEXT, | ||
author TEXT, | ||
type TEXT | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS conditions ( | ||
id TEXT PRIMARY KEY, | ||
system TEXT, | ||
name TEXT, | ||
version TEXT | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS concepts ( | ||
id TEXT PRIMARY KEY, | ||
code TEXT, | ||
code_system TEXT, | ||
display TEXT, | ||
version TEXT | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS condition_to_valueset ( | ||
id TEXT PRIMARY KEY, | ||
condition_id TEXT, | ||
valueset_id TEXT, | ||
source TEXT, | ||
FOREIGN KEY (condition_id) REFERENCES conditions(id), | ||
FOREIGN KEY (valueset_id) REFERENCES valuesets(id) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS valueset_to_concept ( | ||
id TEXT PRIMARY KEY, | ||
valueset_id TEXT, | ||
concept_id TEXT, | ||
FOREIGN KEY (valueset_id) REFERENCES valuesets(id), | ||
FOREIGN KEY (concept_id) REFERENCES concepts(id) | ||
); | ||
|
||
|
||
-- add indexes to increase performance | ||
-- conditions | ||
CREATE INDEX IF NOT EXISTS "idx_conditions_id" ON conditions(id); | ||
|
||
-- valuesets | ||
CREATE INDEX IF NOT EXISTS "idx_valuesets_id" ON valuesets(id); | ||
|
||
-- concepts | ||
CREATE INDEX IF NOT EXISTS "idx_concepts_id" ON concepts(id); | ||
|
||
-- valueset_to_concept indexes | ||
CREATE INDEX IF NOT EXISTS "idx_valueset_to_concept_valueset_id" ON valueset_to_concept(valueset_id); | ||
CREATE INDEX IF NOT EXISTS "idx_valueset_to_concept_concept_id" ON valueset_to_concept(concept_id); | ||
|
||
-- condition_to_valueset indexes | ||
CREATE INDEX IF NOT EXISTS "idx_condition_to_valueset_condition_id" ON condition_to_valueset(condition_id); | ||
CREATE INDEX IF NOT EXISTS "idx_condition_to_valueset_valueset_id" ON condition_to_valueset(valueset_id); |
Oops, something went wrong.