Functional contract

Catalog and pricing

Shipped. The Organization owns one master catalog. Each Location Group and Location inherits master values unless it has an explicit override, and the Organization may lock individual attributes. Prices live in pricing groups; patient groups give per-patient prices. Do not copy the whole catalog per Location.

Shipped at /app/catalog Pricing groups, patient groups, taxes shipped Subscription enrollment not built Updated 3 Nov 2026

Master catalog

Organization-scoped list of services, products, procedures, packages, and memberships. Staff open /app/catalog (catalog.read). Organization administrators create and edit master items (catalog.manage). Location administrators override unlocked attributes at granted Locations (catalog.override).

AttributeRole
Name, SKUShared identity across the group (code column; labeled SKU in the UI)
DescriptionOptional notes; overridable; included in search
CategoryPlatform category (Procedure, Service, Package, Product, Membership, Wellness plan) with a kind: regular, bundle, or subscription. Bundles include other items with quantities (nesting allowed); the form shows each component's unit price, line total, and a reference total, and the bundle price is entered separately. Subscriptions use benefits instead (below)
Pricing groupRequired. The pricing group that holds the item's prices
Standard priceStored on the pricing group sheet (row with no patient group); inherited by Locations with no override
Price group rulelowest (default) or highest: which patient group price wins when several match
EnabledOffered by default (disabled_at). Retires everywhere; not overridable
SellableOffered for sale by default; overridable
Tax groupOptional; overridable. See Taxes
lock_sellable, lock_tax_group, lock_descriptionPer-attribute lock level. lock_price lives on each pricing group row
lock_grantsWhen true, Location group administrators cannot grant or revoke the item
stock_controlnone, quantity, or batch. Organization-owned, not overridable. New items inherit the category default. Bundles are always none; their stock is derived from components. See Inventory
batch_strategyFor batch: fifo (default), lifo, or fefo (every lot needs expires_on)

Overridable today: price, sellable, tax group, description. Not-sellable-at-Location is an override; it does not remove the item from the master catalog.

Lock levels

LevelWho may override
noneLocation Groups and Locations (“Anyone can override”)
locationsOnly Location Groups (“Only location groups can override”)
everywhereNobody (“Nobody can override”). Master value only; group and Location overrides are rejected and stale ones ignored

Location and group overrides

A Location or Location Group stores only differences, not a second catalog. Each attribute resolves independently.

ItemOrganizationLocation A (Manhattan)Location B (suburb)
General consult$100$150 (override)$100 (inherited)
Rabies vaccine$25$25 (inherited)$20 (override)
Thoracic radiograph$180, price locked$180 (locked)$180 (locked)

Resolving an attribute at a Location:

  1. No master item → not sellable (unless location-exclusive).
  2. Locked everywhere → master value.
  3. Locked for Locations (master locations, or the group locks it) → group override, else master (“Group locked”). Location override ignored.
  4. Location override → use it.
  5. Group override (group_overridden, shown “Group”) → use it.
  6. Otherwise master value.
OverrideStorageSet by
Location sellable, tax group, descriptionlocation_catalog_overridesLocation admin (catalog.override), group admin, Organization admin
Group sellable, tax group, descriptionlocation_group_catalog_overridesOrganization admin (any workspace) or Location group admin from a member Location (scope bar or All sites tab)
Location / group pricelocation_pricing_group_price_overrides, location_group_pricing_group_price_overrides (per pricing group row)Same actors, on the item page “Prices” section

At a Location each attribute and price row shows its value, source badge, and one action, with the chain in the Manage inheritance drawer (Editing overrides). How taxes resolve here follows the chain: effective tax group → whether it is enabled at the Location → each rate's effective percentage and enabled flag, each with its source.

Editing overrides

Same screens for catalog items, prices, patient groups, taxes, tax groups, commission groups and rates, and appointment types.

Pricing groups and patient groups

All prices live in pricing groups (Catalog → Pricing groups, /app/pricing_groups, catalog.manage). Organization-owned. The item form has no price field. A pricing group is a price sheet:

Patient groups (Catalog → Patient groups, /app/patient_groups) are reusable criteria any pricing group may attach:

CriterionMatch
SpeciesPatient species in the list
BreedsPatient breed in the list (case-insensitive)
Hair typesPatient hair type in the list
Weight rangemin_weight_kg <= weight < max_weight_kg, entered in the Organization's measurement system. No weight → no match

Price for a patient at a Location:

  1. Take the item's patient group prices whose group is available, enabled, and matches the patient.
  2. Resolve each one's effective price at the Location (lock, Location, group, master).
  3. No match → effective standard price. Otherwise lowest or highest per the item's rule (standard price not compared).

Treatment plan items, sales-order lines, and visit lab charges snapshot this price when created. Lines without a patient use the standard price. Visit cart and treatment plan pickers show the patient price.

Taxes and tax groups

Settings → Taxes (Tax groups and Tax rates tabs; /app/tax_groups, /app/taxes). Same inherit-or-override model as catalog items.

AspectRule
OwnershipTax rates and tax groups are owned by the Organization, a Location Group, or a Location (Scope on the form). A tax group only includes rates available in its scope. Narrowing scope is rejected while something outside uses it
Permissionstaxes.read views; taxes.manage manages any owner; Location group admins manage group-owned records; taxes.override sets Location overrides
OverridableTax rate percentage and enabled; tax group enabled. Disabled rate is skipped; disabled group applies no taxes
Location overrideslocation_tax_overrides, location_tax_group_overrides: Location admins, group admins for their Locations, Organization admins
Group overrideslocation_group_tax_overrides, location_group_tax_group_overrides: group admins or Organization admins (any workspace)
Locksnone / locations / everywhere; groups may lock for their Locations. A group row with only locks is kept; empty rows are removed. Only records owned above the override's scope can be overridden
CalculationInvoice and credit-note previews and the platform fee resolve rates at the order's Location. Issued invoice lines snapshot the effective rate
Disabled is a hard offA tax rate, tax group, patient group, commission group, or appointment type disabled on its own record is off everywhere (“Disabled at organization”). Overrides may only turn an enabled record off; new “enabled” overrides on a disabled record are rejected and older ones ignored
Override or scoped record?Use an override when the same record needs a different value at a site. Create a Location- or group-owned record when only that site has it

Tax group on an item: a master item may only use Organization tax groups. An exclusive item may use a narrower tax group only when every grant falls inside its scope; granting outside, promoting, or narrowing the tax group is rejected while the mismatch exists.

Who may change what

ActorMaster catalogLockOverride
Organization adminCreate, edit; pricing groups, patient groupsSet or clear per attribute, per price row, and for grantsAny Location's or group's override for unlocked attributes
Location group administratorNoGroup lock on attributes not locked everywhere, for their group's LocationsUnlocked attributes for their group and its Locations; grants within the group unless grants are locked
Location administratorNo (except exclusive items when the policy is on)NoUnlocked attributes, only at granted Locations
StaffNoNoNo

Workspace scope decides what the catalog shows, including for Organization administrators:

Location administrators do not see other Locations' prices or the master editor.

Location-exclusive items

Default: Location administrators cannot create items. Organization policy allow_location_exclusive_items (off by default; Settings → Hierarchy):

Tags

Subscriptions

Catalog definition for memberships and wellness plans ships. Patient enrollments, renewals, payments, and redemptions are not built. Not to be confused with SaaS plans (SaaS billing).

KindComponentsSeeded categories
regularNoneService, Product
bundleIncluded items with quantities (BOM)Procedure, Package
subscriptionBenefits with use limits and discountsMembership, Wellness plan

Acceptance

Out of scope: quantities and lots (Inventory), invoice legal header (Billing), subscription enrollment.