EHR queries - #103
Draft
jeremyestein wants to merge 49 commits into
Draft
Conversation
Introduces new queries for airway and sputum/secretions data, and refactors the flow sheet query to consolidate multiple values into a wider format. A new README documents the overall data extraction goal and the current set of scripts.
Transforms specific lab test results (e.g., CRP, WCC) from a long format into distinct columns using `MAX() FILTER`. This enables direct consumption of lab data in a wider format, simplifying downstream analysis. Additionally, the query is updated to use parameters for `hospital_visit_id` and to include date range filtering, improving its flexibility.
…Claude Sonnet 5.0
…pository as part of deployment
jeremyestein
had a problem deploying
to
hasher
September 9, 2026 16:30 — with
GitHub Actions
Failure
jeremyestein
had a problem deploying
to
hasher
September 10, 2026 17:03 — with
GitHub Actions
Failure
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #103 +/- ##
==========================================
+ Coverage 72.71% 73.05% +0.33%
==========================================
Files 15 16 +1
Lines 722 835 +113
Branches 67 75 +8
==========================================
+ Hits 525 610 +85
- Misses 175 197 +22
- Partials 22 28 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have linearised the previous branches somewhat and removed all merges from dev (or janitoring), then done a big merge at the end. This takes us up to the equivalent of commit 061dca7 in the other branch.