VACOLS DB Schema - department-of-veterans-affairs/caseflow GitHub Wiki

Use these updated pages instead:

--- DEPRECATED --- This page documents the VACOLS DB and its schema. * VACOLS is the source of truth for Legacy Appeals. * [VACOLS GitHub repo](https://github.com/department-of-veterans-affairs/VACOLS/tree/master/docs) * [VACOLS Data Dictionary spreadsheet](https://docs.google.com/spreadsheets/d/1I8vb7PWeDSJBQhwUFAkvywlwNXJW0KnzQQtb_rxz7j4/edit?usp=sharing) copied from VACOLS.Database.tables.pdf (Last Updated: July 12, 2016). Ask for permission to edit via Google.

Caseflow's VACOLS models

Table Joins

TABLE TABLE Join
Brieff Corres bfcorkey to stafkey
Folder Corres ticorkey to stafkey
Brieff Folder bfkey to ticknum
Brieff Attach bfkey to imgtkky
Brieff Assign bfkey to tsktknum
Brieff Mail bfkey to mlfolder
Brieff Cova bfkey to cvfolder
Brieff PriorLoc bfkey to lockey
Brieff Issues bfkey to isskey
Brieff Hearsched bfkey to folder_nr
Brieff Decass bfkey to defolder
Brieff Othdocs bfkey to ticknum
Issues Rmdrea isskey to rmdkey
issseq to rmdissseq

Also check out visualization of table relationships.

Tables

Main tables

ASSIGN (Diary Table; Notes about the claim)

ATTACH (Attachments table)

BRIEFF (Briefface table; Appeal Info, multiple per Vet): 3.5+ million legacy appeals

  • BFKEY - Appeal ID (connects to FOLDER)
  • BFCORLID - Veteran ID, SSN (VBMS ID)
  • BFCORKEY - connects to CORRES
  • BFREGOFF - Regional Office
  • BFSO - Service organization (exclude 'T')
  • BFCURLOC - Location Code (99 - Full Grant, 97 - Partial/Remand)
  • BFDEC - Decision date (just visual, but make it equals TIOCTIME)
    • Appeal Status: BFMPRO, 3 chars
      • Stats for Legacy Appeal status
      • Status code definitions
      • ACT: ACTIVE (Case currently at BVA)
      • ADV: ADVANCE (NOD Filed. Case currently at RO)
      • REM: REMAND (Case has been Remanded to RO or AMC)
      • HIS: HISTORY (BVA action is complete)
      • MOT: MOTION (appellant has filed a motion for reconsideration)
    • From Caseflow: case.rb
  • BFDC - Disposition of Appeal; see VACOLS.System.Codes.doc at VACOLS Reference Docs for Disposition Codes
    • 1: Allowed
    • 3: Remanded
    • 4: Denied
    • 5: Vacated
    • 6: Dismissed, Other
    • 8: Dismissed, Death
    • 9: Withdrawn
    • D: Designation of Record
    • M: Merged Appeal
    • R: Reconsideration by Letter
    • Above are codes for "BVA Disposition". There are other disposition codes that refer to "Field Disposition"
  • BFDLOOUT - represents how long the case has been ready to distribute

CORRES (Veteran/Appellant table)

  • SNAMEF, SNAMEL, SSN - basic Info
  • STAFKEY - connects to BRIEFF

CORRTYPS

COVA

FOLDER (More claim info)

  • TICKNUM - connects to BRIEFF
  • TIOCTIME - Outcoding date (make sure BFDEC is the same)
  • TIVBMS - Appeal in VBMS?

HEARSCHED

ISSREF (issue reference)

ISSUES (case issues; regarding claim (medical,etc), also connects to appeal type)

MAIL

PRIORLOC (prior locations; claim location history)

OTHDOCS

  • CLMFLD - 3 characters; Claims folder volumes; "for virtual appeals the value should be left null ... should only be entered for paper cases and is normally 1 or 2 volumes" ref

RMDREA

REP (representatives of veterans/claimants)

STAFF

  • VACOLS::Staff.count => 4072
  • Active/Inactive Flag: SACTIVE, 1 char, A= Active; I= Inactive
    • VACOLS::Staff.select(:sactive).distinct.pluck(:sactive) => ["A", "I", nil, "V"]
  • Attorney Number: SATTYID, 4 chars
    • VACOLS::Staff.select(:sattyid).distinct.size => 2047
  • VLJ (A or J): SVLJ, 1 char
    • VACOLS::Staff.select(:svlj).distinct.pluck(:svlj) => [nil, "I", "A", "J"]
      • svlj = "J" : Judge
      • svlj = "A" : Acting Judge
      • svlj = nil : Attorney
  • Stats for Attorneys, Judges, Acting Judges
  • Uses from Caseflow: attorney_repository.rb, judge_repository.rb, user_repository.rb

VFTYPES

Additional tables

COIN

DECREVIEW

ACTCODE

DECASS

VACOLS - VBMS Mapping

CORRES table contains most of Veteran's info (should match VBMS)

TIVBMS field allows us to determine if the claim is ready for VBMS

TIOCTIME of no greater than 3 days ago will let us pull that specific Full Grant (no time limit on Partial/Remands)

BRIEFF.BFREGOFF and BFCURLOC, PRIORLOC.LOCDIN and LOCDOUT, ASSIGN.TSKRQACT will be updated by Dispatch must be validated

⚠️ **GitHub.com Fallback** ⚠️