Skip to content

Add Open Encounters Report documentation for SSMM#99

Open
sonzsara wants to merge 1 commit into
mainfrom
ENG-319
Open

Add Open Encounters Report documentation for SSMM#99
sonzsara wants to merge 1 commit into
mainfrom
ENG-319

Conversation

@sonzsara
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for the SSMM “Open Encounters” operational report query (Metabase question 66), intended to list encounters that are still considered “open” (planned / in progress / discharged) with key patient and staff fields.

Changes:

  • Introduces a new markdown query doc page for the Open Encounters report.
  • Defines report purpose/parameters and includes the SQL used to power the report.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +16
| Parameter | Type | Description | Example |
|-----------|------|-------------|---------|
| `created` | DATE / range | Metabase date filter on `e.created_date` | `'2026-05-01'` |
| `encounter_class` | TEXT | Filter by encounter class (e.g. `imp`, `amb`, `emer`) | `'imp'` |
| `status` | TEXT | Filter by encounter status | `'in_progress'` |
Comment on lines +42 to +46
OR EXISTS (
SELECT 1
FROM emr_facilitylocationencounter fle
JOIN emr_facilitylocation fl ON fle.location_id = fl.id
WHERE fle.encounter_id = e.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants