Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds two Metabase query documents for SSMM inpatient encounter reporting: one aggregate count and one encounter-level list intended to exclude fake-bed assignments. It extends the Care/Encounter reporting set with count and drill-down style views for the same dashboard use case.
Changes:
- Add an IP encounter count query for SSMM excluding fake-bed-linked encounters.
- Add an IP encounter list query with patient, staff, and bed assignment details.
- Document the query purpose, parameters, and hardcoded IDs used by each report.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
Care/Encounter/ip_ssmm.md |
Adds the aggregate SQL query and notes for the SSMM IP encounter count report. |
Care/Encounter/iplist_ssmm.md |
Adds the detailed SQL query and notes for the SSMM IP encounter list report. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| | Parameter | Type | Description | Example | | ||
| |-----------|------|-------------|---------| | ||
| | `date` | DATE | Filter by encounter creation date range | `emr_encounter.created_date BETWEEN '2026-04-01' AND '2026-04-30'` | |
There was a problem hiding this comment.
why the change 🤔 older files all refer to created_date no?
https://data-public.ssmmhospital.com/dashboard/19-ip?date=past1days&date_=2026-04-28&tab=67-ip-encounters