Skip to content

Documentation on Appointments count Per Patient for Pallium - #110

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

Documentation on Appointments count Per Patient for Pallium#110
sonzsara wants to merge 1 commit into
mainfrom
ENG-527

Conversation

@sonzsara

@sonzsara sonzsara commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

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 for reporting total appointment counts per patient (with MRN) for Pallium.

Changes:

  • Introduces a new markdown doc under Care/Encounter/ describing the “Appointments Per Patient - Pallium” query.
  • Adds SQL to aggregate appointment counts per patient and includes Metabase optional filters for date and MRN.

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

Comment on lines +31 to +33
LEFT JOIN emr_patientidentifier pi
ON p.id = pi.patient_id
AND pi.config_id = 4

- **Metabase filters:**
- `[[AND {{date}}]]` is a field filter — bind it to the appropriate booking/slot date column in the Metabase variable settings.
- `pi.config_id = 4` selects the MRN identifier configuration for Pallium — update if the MRN config id differs in another environment.
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