The Encounter Costs page (Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/pm/encounter-costs) displays cost accounting records tied to completed encounters, allowing review and status progression from draft through finalized.
Overview
The Encounter Costs page reads from thepm_encounter_costs table, scoped to the current organization and ordered by service date descending. The page displays a table with columns for Date, Service Line, Total Cost, Charge, Margin, and Status. Margin values are color-coded using semantic tokens: positive margins render in a success color; negative margins render in a destructive color. Clicking View on any row opens the EncounterCostDetailDialog.
Two dropdowns filter the table: one for cost status and one for service line. Filters are applied client-side to the currently loaded dataset (up to 200 records).
Who it’s for
Requires permission:PM_PERMISSIONS.COST_ACCOUNTING_VIEW (pm.cost_accounting.view).
Before you start
- Ensure you have the
pm.cost_accounting.viewpermission. - Cost records appear automatically once encounters are completed and costs are calculated. There is no manual creation entry point on this page.
Steps
Open Encounter Costs
Navigate to
/pm/encounter-costs. The table loads all encounter cost records for your organization, ordered by most recent service date first (up to 200 records).Filter by status
Use the All Statuses dropdown to filter the table to a single status:
Draft, Calculated, Reviewed, or Finalized.Filter by service line
Use the All Service Lines dropdown to filter to a specific service line:
Outpatient, IOP, PHP, Residential, Detox, or Telehealth.Key concepts
Cost statuses: Records progress throughdraft, calculated, reviewed, and finalized. The finalized status renders a default (primary) badge; reviewed renders secondary; calculated renders outline; draft renders secondary.
Margin: The margin column shows the difference between charge_amount and total_cost. Displayed as N/A when the margin field is null.
Service lines: outpatient, iop, php, residential, detox, telehealth.
Empty state
Empty state
When no cost records exist (or no records match the active filters): “Cost records will appear here once encounters are completed and costs are calculated.”
Related
Practice Management
Overview of the Practice Management core.
Governance & parity
Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/pm.tsx
- src/cores/pm/pages/EncounterCostsPage.tsx
- src/cores/pm/hooks/useEncounterCosts.ts