Skip to content

Add documentation for Lab Test Revenue and Count queries at SSMM#91

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

Add documentation for Lab Test Revenue and Count queries at SSMM#91
sonzsara wants to merge 2 commits intomainfrom
ENG-179

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

Adds two new markdown query docs for SSMM lab-test dashboard metrics, covering count and revenue queries in the Care analytics SQL repository.

Changes:

  • Adds documentation for an SSMM lab test count query based on emr_chargeitem.
  • Adds documentation for an SSMM lab test revenue query joined to invoices.
  • Documents purpose, parameters, SQL, and notes for both dashboard queries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
Care/Clinical/count_of_labtest_ssmm.md New query doc for the SSMM lab test count metric.
Care/Accouting/labtest_revenue_ssmm.md New query doc for the SSMM lab test revenue metric.

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

Comment thread Care/Clinical/count_of_labtest_ssmm.md
Comment thread Care/Clinical/count_of_labtest_ssmm.md
Comment thread Care/Accouting/labtest_revenue_ssmm.md
Comment thread Care/Accouting/labtest_revenue_ssmm.md
Comment thread Care/Accouting/labtest_revenue_ssmm.md
Copy link
Copy Markdown
Collaborator

@Jacobjeevan Jacobjeevan left a comment

Choose a reason for hiding this comment

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

Minor thing, otherwise lgtm.

Comment thread Care/Accouting/labtest_revenue_ssmm.md Outdated
Comment thread Care/Clinical/count_of_labtest_ssmm.md Outdated

```sql
SELECT
COUNT(ci.id) AS total_tests_today
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.

Suggested change
COUNT(ci.id) AS total_tests_today
COUNT(ci.id) AS total_tests

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