Skip to content

Add detailed query for discharged but incomplete IP encounters at SSMM#88

Open
sonzsara wants to merge 2 commits intomainfrom
ENG-150
Open

Add detailed query for discharged but incomplete IP encounters at SSMM#88
sonzsara wants to merge 2 commits intomainfrom
ENG-150

Conversation

@sonzsara
Copy link
Copy Markdown
Contributor

@sonzsara sonzsara commented May 4, 2026

@sonzsara sonzsara requested a review from Copilot May 5, 2026 07:33
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 a new query documentation page under Care/Encounter for identifying inpatient encounters that were discharged more than a day ago but still have a non-completed status. This fits the repository’s purpose of documenting operational SQL queries used for Care/Metabase reporting.

Changes:

  • Adds a new markdown query doc for “Discharged but Incomplete IP Encounters - SSMM”.
  • Introduces a SQL query that inspects encounter status history, patient identifier data, and latest bed assignment.
  • Documents hardcoded assumptions for patient identifier config, fake-bed exclusion, and bed-form filtering.

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

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