Governance Engine Details

Seven engines.
One deterministic rulebook.

No language model makes a governance decision at runtime. Each engine is deterministic rule logic, and every rule maps to citable public policy — CMS-published code-pair policy, coverage documentation, AMA E/M guidance. For each engine below: what it checks, the authority it maps to, and what the physician sees.


Engine 1

Code-Pair Validation

Checks every pair of procedure codes on the encounter against published bundling and mutual-exclusion policy before anything is signed.

  • What it checks: whether two codes may be billed together, whether a modifier can lawfully separate them, and whether an add-on code has its required base.
  • Authority: CMS-published code-pair (NCCI-class) policy, maintained as importable data with rule-level provenance.
  • What the physician sees: the flagged pair, a plain-language rationale, and which modifiers — if any — policy permits. Re-checked live as codes change.
Code A × Code B

Pairwise evaluation against published policy, with the deciding rule cited on every flag.


Note ↔ Policy

The engine reads the documentation itself, not just the codes.

A code can be perfectly valid and still fail a coverage review because the note never says why the service was medically necessary. This engine catches that gap before signing.

Engine 2

Coverage & Documentation Checks

Compares the encounter note against coverage-documentation requirements for the services billed.

  • What it checks: whether the documentation contains the elements coverage policy expects — medical-necessity language, relevant history, examination findings, procedure-specific requirements.
  • Authority: CMS coverage documentation (LCD-class local and national coverage requirements).
  • What the physician sees: each gap named specifically, with the documentation element that would close it — while the encounter is still open and fixable.

Engine 3

Composite Denial-Risk Scoring

Combines the code-pair and coverage signals into one weighted, advisory risk level for the whole encounter.

  • What it checks: the severity and count of code-pair conflicts and documentation gaps, weighted into a single composite score.
  • Authority: derived entirely from the two upstream engines — every contributing factor traces back to a citable rule.
  • What the physician sees: a low / medium / high / critical level with its full decomposition — which factors contributed, and by how much. Recalculated in real time as codes change. A signal for review priority, never a payment prediction.
Low
Medium
High
Critical

Every level is decomposable: the workspace shows exactly which rules fired and what each contributed to the composite.


Documented ↔ Selected

Level analysis works in both directions.

It flags a selected level the documentation does not support, and a documented complexity the selected level undersells — with the specific note passages as evidence either way.

Engine 4

E/M Level Analysis

Compares the selected evaluation-and-management level against the complexity the documentation actually supports.

  • What it checks: medical decision-making complexity signals in the documentation — problems addressed, data reviewed, management risk — against the selected office-visit level.
  • Authority: the AMA E/M guidance framework for office and outpatient visits.
  • What the physician sees: the documentation-supported level beside the selected one, with the note evidence for the assessment. The physician decides; the engine only shows its work.

Engine 5

Care-Gap Detection

Surfaces clinical actions the encounter appears to call for but does not document — before the encounter closes.

  • What it checks: trigger conditions in the documentation and codes across six categories — imaging, follow-up, referral, medication, risk-adjustment (HCC) documentation, and preventive screening.
  • How it stays quiet: every trigger is paired with excluder logic, so a documented denial or completed action suppresses the prompt. Rules are data, tenant-configurable, and reviewed under clinical-advisor sign-off.
  • What the physician sees: an advisory prompt naming the gap and the suggested next step — dismissible, never blocking.
Imaging
Follow-up
Referral
Medication
HCC
Screening

Trigger-and-excluder matching: triggers detect a possible gap; excluders suppress the prompt when the note shows the action was taken or declined.


CMS-0057-F

FHIR prior-authorization readiness

A companion module assembles Da Vinci-style FHIR prior-authorization bundles, aligned with the CMS interoperability rule and its January 1, 2027 compliance date.

Engine 6

Prior-Authorization Readiness

Assesses whether the documentation is ready for the prior-authorization request a procedure will need — while the physician can still add what's missing.

  • What it checks: procedures that commonly require prior authorization, scored against the documentation elements those requests typically demand.
  • Authority: published payer and CMS documentation expectations, maintained as data alongside the coverage rules.
  • What the physician sees: a per-procedure readiness checklist — which elements are present, which are missing — so the request leaves complete the first time.

Engine 7

Tamper-Evident Evidence Generation

Seals every attested encounter into a cryptographic record: what the AI produced, what the engines found, and what the physician decided.

  • Hash chain: a SHA-256 chain links every event in the encounter, and each sealed record to the one before it. Any alteration breaks the chain — detectably.
  • Witness signature: a keyed HMAC signature over the record's integrity hash, held separately from the data it protects.
  • Audit PDF: a 12-section report per encounter — quality scores, policy decisions, each engine's findings, coding decisions, and the attestation itself.
  • QR verification: the PDF carries a QR code; scanning it recomputes and confirms the record's integrity from any phone, no login required.

Tamper-evident is the precise claim: the design does not make alteration impossible — it makes alteration detectable, which is what an auditor needs.

AI Output Hash Governance Hash Attestation Hash Evidence Seal + HMAC

Each block hashes the previous block; a keyed witness signature covers the seal. Scan the PDF's QR code to verify from any phone.


Under the Hood

How the rulebook stays current.

From published public sources: CMS code-pair policy, CMS coverage documentation, and AMA E/M guidance. Reference data is loaded through import tooling, and every rule row carries its provenance so an auditor can trace a flag back to the policy that produced it.

Rules are data, not code. Operators author, scope, activate, and retire rules through an administrative editor at runtime; policy imports refresh the reference corpus. Every change lands in the hash-chained audit trail, and rule changes are reviewed under a named clinical-advisor sign-off process.

A dedicated behavioral-health rule corpus — psychotherapy code relationships, add-on pairings, mutual exclusions — ships staged and inactive. Activation is gated on clinical sign-off per tenant, so behavioral-health rules never fire before a qualified reviewer has approved them.

Yes — 22 medical-specialty configurations tune documentation expectations and coding rules per specialty, and each tenant can customize its own. A code outside the encounter's specialty surfaces as a governance signal for the physician to confirm or correct.


See it live

Watch all seven engines run on a live encounter.

A focused demo tailored to your specialty and EHR environment — ending with the sealed evidence record and its QR verification.