Skip to content

Add Doctor Performance Report Documentation#119

Open
sonzsara wants to merge 6 commits into
mainfrom
ENG-615
Open

Add Doctor Performance Report Documentation#119
sonzsara wants to merge 6 commits into
mainfrom
ENG-615

Conversation

@sonzsara

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 new markdown documentation pages for SSMM reporting queries so they can be used/referenced consistently within the Care/* query-docs structure.

Changes:

  • Added a “Doctor Performance Report - SSMM” query documentation page with parameters, SQL, and notes.
  • Added a “Total Stock Value Report - SSMM” query documentation page with parameters, SQL (CTEs), and notes.

Reviewed changes

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

File Description
Care/Operations/doctor_performance_report_ssmm.md Documents a per-doctor/category invoice-charge summary query, including IST handling and net amount calculation notes.
Care/Accounting/total_stock_value_report_ssmm.md Documents an as-of stock valuation query using purchase/dispense/mistake-adjustment CTEs and hardcoded “mistake” location IDs.

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

Comment thread Care/Operations/doctor_performance_report_ssmm.md
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated
Comment thread Care/Operations/doctor_performance_report_ssmm.md
Comment thread Care/Operations/doctor_performance_report_ssmm.md Outdated

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment on lines +26 to +28
emr_invoice.issue_date - INTERVAL '5 hours 30 minutes' AS issue_date,
TRIM(COALESCE(u.prefix || ' ', '') || u.first_name || ' ' || u.last_name) AS requested,
SUM(emr_chargeitem.quantity) AS total_quantity,
AND emr_invoice.status IN ('issued','balanced')
--[[AND emr_invoice.issue_date >= {{start_date}} + INTERVAL '5 hours 30 minutes']]
--[[AND emr_invoice.issue_date < {{end_date}} + INTERVAL '1 day' + INTERVAL '5 hours 30 minutes']]
--[[AND TRIM(COALESCE(u.prefix || ' ', '') || u.first_name || ' ' || u.last_name) = {{doctor}}]]
GROUP BY
emr_resourcecategory.title,
emr_invoice.issue_date,
TRIM(COALESCE(u.prefix || ' ', '') || u.first_name || ' ' || u.last_name)
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