-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add foreign key on ecr_rr_conditions
to the condition_reference
table
#678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #678 +/- ##
==========================================
+ Coverage 87.74% 92.57% +4.83%
==========================================
Files 287 178 -109
Lines 14667 7956 -6711
Branches 993 990 -3
==========================================
- Hits 12869 7365 -5504
+ Misses 1780 573 -1207
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
aab819c
to
d50d5c8
Compare
containers/ecr-viewer/src/app/api/migrate-db/migrations/core/20250430160000_condition_fk.ts
Outdated
Show resolved
Hide resolved
containers/ecr-viewer/src/app/api/migrate-db/migrations/core/20250430160000_condition_fk.ts
Outdated
Show resolved
Hide resolved
[pre-commit.ci] auto fixes from pre-commit hooks
[pre-commit.ci] auto fixes from pre-commit hooks
c1ca43d
to
b4b5673
Compare
containers/ecr-viewer/src/app/api/migrate-db/migrations/core/index.ts
Outdated
Show resolved
Hide resolved
containers/ecr-viewer/src/app/api/migrate-db/migrations/core/20250430160000_condition_fk.ts
Outdated
Show resolved
Hide resolved
...ecr-viewer/src/app/api/migrate-db/migrations/core/20250506120000_backfill_condition_codes.ts
Outdated
Show resolved
Hide resolved
...ecr-viewer/src/app/api/migrate-db/migrations/core/20250506120000_backfill_condition_codes.ts
Outdated
Show resolved
Hide resolved
...ecr-viewer/src/app/api/migrate-db/migrations/core/20250506120000_backfill_condition_codes.ts
Outdated
Show resolved
Hide resolved
containers/ecr-viewer/src/app/api/migrate-db/migrations/core/20250505100700_ecr_fks.ts
Outdated
Show resolved
Hide resolved
const db = getDb<Extended>(); | ||
await db.insertInto("user").values(adminUser).execute(); | ||
await db.insertInto("program_area").values(programArea).execute(); | ||
await db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question here
@@ -18,6 +18,12 @@ const baseCoreMetadata: BundleMetadata = { | |||
rr: [], | |||
report_date: "12/20/2024", | |||
}; | |||
const condition_reference = { | |||
code: "123", | |||
concept_name: "condition (disease)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this condition reference and before each needed?
PULL REQUEST
Now that we have a consistent identifier for conditions (via the
condition_reference
table), are add a foreign key reference to those conditions in our per-eCR reportability response conditions.Summary
condition_id
toecr_rr_conditions
, as well as a foreign keyecr_rr_conditions
Related Issue
Ticket #513
Acceptance Criteria
condition_id
should be added to theecr_rr_conditions
table (both schemas). It should be a foreign key tocondition_reference
ecr_rr_conditions
it should be stamped with this ID if it can be determined