Care Review
Prior authorization and utilization review where AI drafts page-cited summaries and criteria checks, nurses review AI work to approve or pend, only physicians deny after a peer-to-peer offer, and appeals go to a different physician.
- Resources (8)
- policy, provider, member, request, document, summary, evaluation, appeal
- Roles (4)
- intake, nurse, physician, admin
- Features (10)
- suitepermissionsstate_machinevalidationrules_engineviewsscheduled_tasksaudithistory_eventsindexes
care-review.infinity-sdg.com — prior authorization and utilization review where AI does the reading and clinicians make the calls.
member + provider + clinical policy → request (received, due by)
→ documents: clinical notes, imaging, labs, therapy notes …
→ AI drafts a clinical summary + recommendation (model, confidence)
and a criteria checklist, each criterion citing its evidence
→ nurse accepts / edits / rejects the AI work
→ approve (nurse or physician)
pend for information → info received · 14 days unanswered → closed, never denied
propose denial (physician only) → peer-to-peer offered → deny or approve
→ appeal → heard by a different physician → upheld / overturned
What it enforces
| Rule | Why |
|---|---|
| The AI summarizes only when documentation is attached | No summary from nothing |
| No determination while an AI summary is still unreviewed, and none without a criteria check | The AI recommends; a clinician decides |
| A criterion marked met must cite its evidence (document and page) | Every approval is traceable to the record |
| Missing information means pend, not approve or deny | Gaps are resolved by asking, not guessing |
| Only physicians can propose or finalize a denial, and it must cite an unmet criterion | Adverse decisions rest on clinical judgment and a stated reason |
| A denial passes through a peer-to-peer offer before it is final | The treating provider gets a conversation first |
| Unanswered pends close administratively after 14 days; a schedule never denies | Automation can’t produce an adverse decision |
| Only denials can be appealed, and never to the physician who denied | Independent review |
| Rejecting or editing AI work requires a note | Disagreements become training and evaluation data |
Every resource is audited. Requests and appeals keep a readable history with reasons.
Resources, views, roles
- Resources:
- Reference data: policy, provider, member
- The request itself
- Request records: document, summary (AI), evaluation (criteria), appeal
- Views:
worklist, by due time with an overdue flagaiWorkToReviewaiAgreement: how clinicians treated each AI recommendation (accept, edit or reject, with notes)denialsAndAppeals
- Roles:
intake: receives requests and documentsnurse: reviews AI work, approves, pendsphysician: denials, peer-to-peer, appealsadmin
Demo data
The demo has 10 clinical policies, including lumbar MRI, knee replacement, sleep study, bariatric surgery, extended physical therapy, home health, spinal cord stimulator trial, BRCA testing, cardiac rehab and oncology PET/CT. Across them are 29 requests, at least one in every state:
- 11 approved, including one approved by a physician after the peer-to-peer
- 10 denied; their appeals are 6 upheld, 3 overturned and 1 still filed
- 2 pended
- 1 closed after an unanswered pend
- 1 awaiting peer-to-peer
- 2 in review with AI work waiting for a nurse
- 2 newly received
In two cases a nurse rejected an AI “does not meet” recommendation because the AI had missed the documentation, and the request was approved.
In the demo data, expedited requests are due in 72 hours and standard ones in 7 days. Adjust these to the timeframes your plan type requires.
Every member, provider, clinician and phone number is invented, and the phone numbers use the 555 range. To regenerate the data, run python3 seeds/gen_seed.py.
Run it
scripts/kalos.sh validate # static checks
scripts/kalos.sh start # kalosd on :9213
scripts/kalos.sh verify # live checks
By default, KALOS_REPO is ../kalos.
Sign in with admin / Admin123!. The other users are intake1, nurse1, physician1 and physician2, all with password Demo123!.
Domain Resource Summary
| Resource | Purpose & Lifecycle |
|---|---|
policy | A clinical coverage policy: which service it covers and the criteria it applies. (States: draft, active, retired) |
provider | The ordering or treating provider. |
member | A health-plan member. |
request | A prior-authorization request, from receipt to determination. (States: received, in_review, pended, pending_p2p, approved, denied, closed) |
document | Clinical documentation submitted with a request. |
summary | An AI-drafted clinical summary and recommendation. It stays a draft until a nurse or physician accepts, edits or rejects it. (States: draft, accepted, edited, rejected) |
evaluation | One policy criterion checked against the record, with the evidence it rests on. |
appeal | An appeal of a denial, heard by a physician who did not make it. (States: filed, upheld, overturned) |
Domain definition
Download rawdomain.yaml (421 lines)
Inspect domain.yaml (421 lines)
# care-review/backend/domain.yaml
#
# Care Review — prior authorization and utilization review.
#
# member + provider + clinical policy → request (received, due by)
# → documents (clinical notes, imaging, labs …)
# → AI drafts a summary + a criteria checklist (model, confidence, evidence)
# → a nurse reviews the AI work (accept / edit / reject)
# → approve (nurse or physician) — criteria met, no gaps
# pend for information → info received / lapse — never an automatic denial
# propose denial (physician only) → peer-to-peer offered → deny or approve
# → appeal (heard by a different physician) → upheld / overturned
#
# The AI recommends; it never decides. Only a physician can deny, a denial must
# cite an unmet criterion, and the treating provider is always offered a
# peer-to-peer before a denial is final. Unanswered information requests close
# administratively — they are never turned into denials by a schedule.
#
# An ISDG product for health plans, TPAs and utilization-management vendors.
# All members and providers in the demo are invented.
# query() filter keys are single lowercase words.
domain:
name: carereview
version: "1.0.0"
description: >
Prior authorization and utilization review: AI-drafted clinical summaries
and criteria checks, nurse review, physician-only denials with
peer-to-peer, appeals to a different physician, full audit.
resources:
policy:
description: "A clinical coverage policy: which service it covers and the criteria it applies."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
code: { type: string, required: true, unique: true, maxLength: 20 }
title: { type: string, required: true, maxLength: 160 }
serviceCodes: { type: string, required: true, maxLength: 120 }
criteria: { type: text, required: true }
version: { type: integer, required: true, min: 1 }
status: { type: string, required: true, default: draft }
stateMachine:
field: status
initial: draft
states:
draft:
transitions:
activate: { to: active, guards: [physician, admin] }
active:
transitions:
retire: { to: retired, guards: [physician, admin] }
retired: {}
permissions:
list: [intake, nurse, physician, admin]
get: [intake, nurse, physician, admin]
create: [physician, admin]
update: [physician, admin]
delete: [admin]
features: { audit: true }
provider:
description: "The ordering or treating provider."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
npi: { type: string, required: true, unique: true, pattern: "^[0-9]{10}$" }
name: { type: string, required: true, maxLength: 120 }
specialty: { type: string, required: true, maxLength: 80 }
inNetwork: { type: boolean, required: true, default: true }
phone: { type: phone, required: true }
permissions:
list: [intake, nurse, physician, admin]
get: [intake, nurse, physician, admin]
create: [intake, admin]
update: [intake, admin]
delete: [admin]
features: { audit: true }
member:
description: "A health-plan member."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
memberNo: { type: string, required: true, unique: true, maxLength: 20 }
name: { type: string, required: true, maxLength: 120 }
birthDate: { type: date, required: true }
coverage: { type: string, required: true, enum: [commercial, medicare_advantage, medicaid, exchange] }
permissions:
list: [intake, nurse, physician, admin]
get: [intake, nurse, physician, admin]
create: [intake, admin]
update: [intake, admin]
delete: [admin]
features: { audit: true }
request:
description: "A prior-authorization request, from receipt to determination."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
number: { type: string, required: true, unique: true, maxLength: 20 }
member:
type: reference
references: "adl.carereview.carereview.member"
required: true
provider:
type: reference
references: "adl.carereview.carereview.provider"
required: true
policy:
type: reference
references: "adl.carereview.carereview.policy"
required: true
serviceCode: { type: string, required: true, maxLength: 12 }
diagnosis: { type: string, required: true, pattern: "^[A-Z][0-9][0-9A-Z](\\.[0-9A-Z]{1,4})?$" }
urgency: { type: string, required: true, enum: [standard, expedited] }
receivedAt: { type: datetime, required: true }
dueBy: { type: datetime, required: true }
nurse: { type: string, maxLength: 100 }
infoRequested: { type: text }
pendedAt: { type: datetime }
physician: { type: string, maxLength: 100 }
denialReason: { type: text }
p2pOfferedAt: { type: datetime }
decidedAt: { type: datetime }
status: { type: string, required: true, default: received }
validation:
dueAfterReceipt:
rule: "dueBy > receivedAt"
message: "The due date must be after receipt."
stateMachine:
field: status
initial: received
states:
received:
transitions:
assign: { to: in_review, guards: [intake, nurse, admin], requiredFields: [nurse] }
in_review:
transitions:
approve: { to: approved, guards: [nurse, physician, admin], sets: { decidedAt: now() } }
pend: { to: pended, guards: [nurse, physician, admin], requiredFields: [infoRequested], sets: { pendedAt: now() } }
proposeDenial: { to: pending_p2p, guards: [physician], requiredFields: [physician, denialReason], sets: { p2pOfferedAt: now() } }
pended:
transitions:
infoReceived: { to: in_review, guards: [intake, nurse, admin] }
lapse: { to: closed, guards: [admin] }
pending_p2p:
transitions:
deny: { to: denied, guards: [physician], sets: { decidedAt: now() } }
approve: { to: approved, guards: [physician], sets: { decidedAt: now() } }
approved: {}
denied: {}
closed: {}
permissions:
list: [intake, nurse, physician, admin]
get: [intake, nurse, physician, admin]
create: [intake, admin]
update: [intake, nurse, physician, admin]
delete: [admin]
features: { audit: true }
history:
events:
assigned: { trigger: transition, transition: assign, capture: [nurse], label: "Assigned to {nurse}", severity: info }
pended: { trigger: transition, transition: pend, capture: [infoRequested], label: "Pended: {infoRequested}", severity: warning }
denialProposed: { trigger: transition, transition: proposeDenial, capture: [physician], label: "Denial proposed by {physician}; peer-to-peer offered", severity: warning }
approved: { trigger: transition, transition: approve, severity: success }
denied: { trigger: transition, transition: deny, capture: [denialReason], label: "Denied: {denialReason}", severity: error }
lapsed: { trigger: transition, transition: lapse, label: "Closed administratively: no information received", severity: info }
indexes:
- { fields: [status, dueBy] }
- { fields: [member] }
- { fields: [provider] }
document:
description: "Clinical documentation submitted with a request."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
request:
type: reference
references: "adl.carereview.carereview.request"
required: true
kind: { type: string, required: true, enum: [clinical_notes, imaging_report, lab_results, prior_treatment, therapy_notes, medical_necessity_letter] }
title: { type: string, required: true, maxLength: 160 }
pages: { type: integer, required: true, min: 1 }
receivedAt: { type: datetime, required: true }
permissions:
list: [intake, nurse, physician, admin]
get: [intake, nurse, physician, admin]
create: [intake, nurse, admin]
update: [admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [request] }
summary:
description: >
An AI-drafted clinical summary and recommendation. It stays a draft
until a nurse or physician accepts, edits or rejects it.
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
request:
type: reference
references: "adl.carereview.carereview.request"
required: true
model: { type: string, required: true, maxLength: 60 }
recommendation: { type: string, required: true, enum: [meets_criteria, does_not_meet, needs_information] }
confidence: { type: percentage, required: true }
body: { type: text, required: true }
reviewNote: { type: text }
reviewedBy: { type: string, maxLength: 100 }
reviewedAt: { type: datetime }
status: { type: string, required: true, default: draft }
stateMachine:
field: status
initial: draft
states:
draft:
transitions:
accept: { to: accepted, guards: [nurse, physician], sets: { reviewedBy: $user.id, reviewedAt: now() } }
edit: { to: edited, guards: [nurse, physician], requiredFields: [reviewNote], sets: { reviewedBy: $user.id, reviewedAt: now() } }
reject: { to: rejected, guards: [nurse, physician], requiredFields: [reviewNote], sets: { reviewedBy: $user.id, reviewedAt: now() } }
accepted: {}
edited: {}
rejected: {}
permissions:
list: [nurse, physician, admin]
get: [nurse, physician, admin]
create: [nurse, admin]
update: [nurse, physician, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [request] }
evaluation:
description: "One policy criterion checked against the record, with the evidence it rests on."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
request:
type: reference
references: "adl.carereview.carereview.request"
required: true
criterion: { type: string, required: true, maxLength: 200 }
result: { type: string, required: true, enum: [met, not_met, insufficient] }
origin: { type: string, required: true, enum: [ai, nurse, physician] }
evidence: { type: string, maxLength: 200 }
validation:
metCitesEvidence:
rule: "result != 'met' || evidence != null"
message: "A met criterion must cite the evidence (document and page)."
permissions:
list: [nurse, physician, admin]
get: [nurse, physician, admin]
create: [nurse, physician, admin]
update: [nurse, physician, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [request] }
appeal:
description: "An appeal of a denial, heard by a physician who did not make it."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
request:
type: reference
references: "adl.carereview.carereview.request"
required: true
filedBy: { type: string, required: true, enum: [member, provider] }
grounds: { type: text, required: true }
reviewer: { type: string, required: true, maxLength: 100 }
outcomeNote: { type: text }
decidedAt: { type: datetime }
status: { type: string, required: true, default: filed }
stateMachine:
field: status
initial: filed
states:
filed:
transitions:
uphold: { to: upheld, guards: [physician], requiredFields: [outcomeNote], sets: { decidedAt: now() } }
overturn: { to: overturned, guards: [physician], requiredFields: [outcomeNote], sets: { decidedAt: now() } }
upheld: {}
overturned: {}
permissions:
list: [intake, nurse, physician, admin]
get: [intake, nurse, physician, admin]
create: [intake, admin]
update: [physician, admin]
delete: [admin]
features: { audit: true }
history:
events:
upheld: { trigger: transition, transition: uphold, capture: [outcomeNote], label: "Upheld: {outcomeNote}", severity: warning }
overturned: { trigger: transition, transition: overturn, capture: [outcomeNote], label: "Overturned: {outcomeNote}", severity: success }
indexes:
- { fields: [request] }
rules:
summaryNeedsDocuments:
description: "The AI summarizes the record; with no record there is nothing to summarize."
trigger: { resource: summary, events: [create] }
condition: "len(query('document', { request: $record.request })) == 0"
action: reject
severity: error
message: "Attach clinical documentation before drafting a summary."
approveAfterHumanReview:
description: "No determination while AI work is still unreviewed, and none without a criteria check."
trigger: { resource: request, events: [transition], transition: approve }
condition: "len(query('summary', { request: $record.id, status: 'draft' })) > 0
|| len(query('evaluation', { request: $record.id })) == 0"
action: reject
severity: error
message: "Review the AI summary and complete the criteria check first."
approveHasNoGaps:
description: "A criterion with insufficient information means pend, not approve."
trigger: { resource: request, events: [transition], transition: approve }
condition: "len(query('evaluation', { request: $record.id, result: 'insufficient' })) > 0"
action: reject
severity: error
message: "Some criteria lack information. Pend the request instead."
denialAfterHumanReview:
description: "A proposed denial also needs reviewed AI work and a criteria check."
trigger: { resource: request, events: [transition], transition: proposeDenial }
condition: "len(query('summary', { request: $record.id, status: 'draft' })) > 0
|| len(query('evaluation', { request: $record.id })) == 0"
action: reject
severity: error
message: "Review the AI summary and complete the criteria check first."
denialCitesUnmetCriterion:
description: "A denial must rest on at least one criterion found not met."
trigger: { resource: request, events: [transition], transition: proposeDenial }
condition: "len(query('evaluation', { request: $record.id, result: 'not_met' })) == 0"
action: reject
severity: error
message: "Cite at least one unmet criterion to propose a denial."
appealOnlyDenials:
description: "Only a denial can be appealed."
trigger: { resource: appeal, events: [create] }
condition: "some(query('request', { id: $record.request }), r => r.status != 'denied')"
action: reject
severity: error
message: "This request was not denied."
appealToADifferentPhysician:
description: "The physician who denied the request cannot hear its appeal."
trigger: { resource: appeal, events: [create] }
condition: "some(query('request', { id: $record.request }), r => r.physician == $record.reviewer)"
action: reject
severity: error
message: "Assign a physician who did not make the original denial."
schedules:
closeUnansweredPends:
description: "A request pended 14 days with no information closes administratively. A schedule never denies."
recurrence: daily at 05:00
source:
resource: request
filter: "status == 'pended' && pendedAt < dateSub(now(), 14, 'day')"
action: transition
transition: lapse
views:
worklist:
description: "Open requests by due time."
source: request
filter: "status == 'received' || status == 'in_review' || status == 'pending_p2p'"
permissions: [intake, nurse, physician, admin]
columns:
- { field: number, label: "Request" }
- { field: urgency, label: "Urgency" }
- { field: dueBy, label: "Due" }
- { field: nurse, label: "Nurse" }
- { field: status, label: "State" }
- name: overdue
label: "Overdue"
computed: "dueBy < now()"
defaultLimit: 500
aiWorkToReview:
description: "AI summaries waiting for a clinician."
source: summary
filter: "status == 'draft'"
permissions: [nurse, physician, admin]
columns:
- { field: model, label: "Model" }
- { field: recommendation, label: "Recommends" }
- { field: confidence, label: "Confidence" }
defaultLimit: 200
aiAgreement:
description: "How clinicians treated each AI summary — the data for measuring the model."
source: summary
filter: "status != 'draft'"
permissions: [physician, admin]
columns:
- { field: model, label: "Model" }
- { field: recommendation, label: "Recommended" }
- { field: confidence, label: "Confidence" }
- { field: status, label: "Clinician" }
- { field: reviewNote, label: "Note" }
defaultLimit: 500
denialsAndAppeals:
description: "Every denial, who made it, and why."
source: request
filter: "status == 'denied'"
permissions: [physician, admin]
columns:
- { field: number, label: "Request" }
- { field: physician, label: "Physician" }
- { field: denialReason, label: "Reason" }
- { field: decidedAt, label: "Decided" }
defaultLimit: 200