Skip to content

Add IP Encounter Count and List for SSMM excluding fake beds#86

Open
sonzsara wants to merge 3 commits intomainfrom
ENG-148
Open

Add IP Encounter Count and List for SSMM excluding fake beds#86
sonzsara wants to merge 3 commits intomainfrom
ENG-148

Conversation

@sonzsara
Copy link
Copy Markdown
Contributor

@sonzsara sonzsara commented May 4, 2026

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

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.

Comment thread Care/Encounter/ip_ssmm.md Outdated
Comment thread Care/Encounter/ip_ssmm.md Outdated
Comment thread Care/Encounter/iplist_ssmm.md Outdated
Comment thread Care/Encounter/iplist_ssmm.md Outdated
Comment thread Care/Encounter/iplist_ssmm.md Outdated
Comment thread Care/Encounter/iplist_ssmm.md
Comment thread Care/Encounter/ip_ssmm.md
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

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.

Comment thread Care/Encounter/ip_ssmm.md
Comment thread Care/Encounter/iplist_ssmm.md
Comment thread Care/Encounter/iplist_ssmm.md
Comment thread Care/Encounter/ip_ssmm.md
Comment thread Care/Encounter/ip_ssmm.md

| Parameter | Type | Description | Example |
|-----------|------|-------------|---------|
| `date` | DATE | Filter by encounter creation date range | `emr_encounter.created_date BETWEEN '2026-04-01' AND '2026-04-30'` |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why the change 🤔 older files all refer to created_date no?

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.

3 participants