Skip to content

Add Doctor Performance Report Documentation#119

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

Add Doctor Performance Report Documentation#119
sonzsara wants to merge 3 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
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 on lines +46 to +49
SELECT (elem ->> 'amount')::numeric AS amount
FROM jsonb_array_elements(emr_chargeitem.total_price_components) AS elem
WHERE elem ->> 'monetary_component_type' = 'discount'
LIMIT 1
Comment on lines +52 to +56
SELECT (elem ->> 'amount')::numeric AS amount
FROM jsonb_array_elements(emr_chargeitem.total_price_components) AS elem
WHERE elem ->> 'monetary_component_type' = 'tax'
AND elem -> 'code' ->> 'code' = 'cgst'
LIMIT 1
Comment on lines +59 to +63
SELECT (elem ->> 'amount')::numeric AS amount
FROM jsonb_array_elements(emr_chargeitem.total_price_components) AS elem
WHERE elem ->> 'monetary_component_type' = 'tax'
AND elem -> 'code' ->> 'code' = 'sgst'
LIMIT 1
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