RCMbox Docs

Manifest Format

The validation rules manifest is a YAML file at validation-rules/manifest.yaml that declares all rules for the config project. The evaluate-validation-rules activity reads this file at runtime to discover and run rules.

Structure

rules:
  - id: demo-002-missing-dob
    name: Missing Date of Birth
    category: pre-bill
    level: patient
    severity: error
    message: "Patient must have a date of birth"
    script: ./require-patient-dob.ts
    dashboard: PBF
    worklist: Demographic

Rule fields

FieldRequiredDescription
idyesUnique rule identifier
nameyesHuman-readable rule name shown in the UI
categoryyesRule category — used to filter rules via the category param
levelyesWhat the rule evaluates: patient, encounter, procedure, or claim
severityyeserror, warning, or information
messageyesUser-facing message when the rule fails
scriptyesPath to the rule's TypeScript file, relative to validation-rules/
dashboardnoDashboard code for routing failed tasks (e.g., PBF)
worklistnoWorklist name for routing failed tasks (e.g., Demographic)

Categories

Group rules by the workflow step they apply to. The category param in evaluate-validation-rules lets you run only a subset:

- id: evaluate-rules
  script: "@aidbox-billing/billing-case/evaluate-validation-rules"
  params:
    context: $activities.build-draft-claim.output.context
    manifestPath: validation-rules/manifest.yaml
    category: pre-bill

Severity levels

SeverityEffect on passed
errorpassed: false
warningdoes not fail — passed can still be true
informationdoes not fail

Common worklists in the default manifest

WorklistRules it covers
DemographicPatient name, DOB, address, phone, subscriber ID
Charge EntryDate of service, CPT codes, units, charge amounts
CodingDiagnosis codes, DX pointers, modifiers
ProviderRendering provider NPI
InsurancePayer, plan type, coverage status
FacilityAdmit/discharge dates
EDI/Claim StructureDX pointer references, structural validity
PricingChargeItem count, total charge

See also

Last updated: