Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Care/Operations/totalregistrationsandrevenue_ssmm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Total Registrations and Revenue

> Summary of total registration fee revenue

## Purpose

This query provides aggregate metrics for patient registrations, showing the total number of registrations and cumulative revenue from registration fees. It's useful for tracking registration volumes and revenue trends over time.

## Parameters

| Parameter | Type | Description | Example |
|-----------|------|-------------|---------|
| `date` | DATE | Filters registration charge item by creation date | `DATE = '2025-12-29'` |

---

## Query

```sql
SELECT
COUNT(*) AS total_registrations,
SUM(emr_chargeitem.total_price) AS total_revenue
FROM emr_chargeitem
WHERE emr_chargeitem.deleted = FALSE
AND emr_chargeitem.title = 'Registration Fee'
-- [[AND {{date}}]];
```


## Notes

- Only includes active charge items (deleted = FALSE)
- Filters specifically for 'Registration Fee' title

*Last updated: 2025-12-29*