-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static appeals statistics #13254
Comments
FYI the |
@alisan16
Let me know if you want more. |
In thinking about appeal categorizations, I also came up with some other appeal stats:
|
AMA Appeals data collected on Feb 3rd. This table shows AMA appeal status counts grouped by docket type:
SQL query used to collect data: |
Legacy Appeals stats compiled on Feb 3rd:
Note that there are over 3.5 million legacy appeals in VACOLS. Legacy appeals are only recorded in Caseflow's DB when they are worked by Caseflow. Code used to get VACOLS ids in Caseflow's DB and query VACOLS directly (for speed): results=[]
initial=0
cursor=initial*1000 # limited to 1000 vacols ids in the WHERE clause
ActiveRecord::Base.logger.level = 1 # reduce verbosity
vcon=VACOLS::Record.connection
# loop until the status of all 1 million+ legacy appeals are retrieved
for i in initial..2000 do
vids=LegacyAppeal.limit(1000).offset(cursor).order(:id).map(&:vacols_id)
vres=vcon.execute("SELECT bfmpro, count(*) FROM brieff WHERE bfkey IN (#{vids.map{|id| "'#{id}'"}.join(', ')}) GROUP BY bfmpro ORDER BY bfmpro ")
r={}
results.append(r.values) while r=vres.fetch_hash
cursor += 1000
if vids.count < 1000
puts "Less than 1000: #{vids.count}. Completed!"
break
end
sleep 2 # don't overwhelm VACOLS
puts cursor # print progress; should be around 1 million once complete
end
stats={}
results.each{|p| stats[p.first]=stats.fetch(p.first, 0)+p.second}; |
AC 2 removed. Alisa will take the data back to the project leads. |
As a Caseflow project lead, I need to be able to understand basic metrics about the appeals process to identify bottlenecks and inform future product strategy.
Acceptance criteria
Example of chart:
Out of scope
Dynamic visualization of the data is out of scope and will be covered in a separate ticket
Background/context
As a team, Caseflow hasn't holistically looked at the appeals pipeline for years. In order to inform future work, we need to establish accurate baselines.
Technical notes
The easiest way to accomplish this will be to pull a set list of numbers for appeals and their current status from the past ~year manually and using Google sheets or similar in order to create the visualization.
The text was updated successfully, but these errors were encountered: