department-of-veterans-affairs / caseflow

Caseflow is a web application that enables the tracking and processing of appealed claims at the Board of Veterans' Appeals.
Other
54 stars 18 forks source link

Determine how to backfill decision issues that were created prior to ama_decision_issues feature flag #8971

Closed anyakhvost closed 5 years ago

anyakhvost commented 5 years ago

AC: Determine how to backfill decision issues that were created prior to ama_decision_issues feature flag

lpciferri commented 5 years ago

@aroltsch I emailed you a sample spreadsheet. I wonder if we'll need more information from attorneys on which attorney magic decision issues are connected to which request issues. While investigating if a script would work, can you also investigate if there's any way for us to do this in the UI?

lpciferri commented 5 years ago

Notes:

lpciferri commented 5 years ago

Noting that we'll need to know which decision issues map back to which request issues. So maybe the spreadsheet will need to have the Request issue column filled out no matter what

lpciferri commented 5 years ago

List of things I think we need to backfill or be aware of (note that this gh issue may just be for decision_issues):

anyakhvost commented 5 years ago

@shanear could you please assist on where to find this data in VBMS?

lpciferri commented 5 years ago

Notes from convo yesterday:

AMA EPs - note: these might be being established through SHARE not VBMS

EP Claim Label 030BGR Board Grant Rating 030BGNR Board Grant Non-Rating 040BDE Board DTA Error 040BDEIMO Board DTA Error with IMO 030BGRPMC PMC Board Grant Rating 030BGNRPMC PMC Board Grant Non-Rating 040BDEIMOPMC PMC Board DTA Error - w/IMO 040BDEPMC PMC Board DTA Error

anyakhvost commented 5 years ago

For each appeal none of the EPs are processed:

shanear commented 5 years ago

Alright, the spreadsheet has been backfilled 🎆

Some of the RAMP EPs had already been processed so I wasn't able to perfectly backfill them. Most weren't, which is nice. I have the results of the backfill saved, and can send that encrypted to whoever needs it.

Did a little bit of validation:

Find any appeals with a decision doc that have request issues that have not been closed or have no decision issues:

appeals = Appeal.all.select do |appeal|
  !appeal.decision_documents.empty? && appeal.request_issues.any? do |request_issue|
    !request_issue.closed_status && request_issue.decision_issues.empty?
  end
end
appeals.count
=> 18

So there is still more backfilling to be done.

appeals.map(&:decision_documents).map(&:first).map(&:decision_date)

=> => [Wed, 13 Feb 2019, Thu, 07 Feb 2019, Thu, 07 Feb 2019, Tue, 12 Feb 2019, Tue, 29 Jan 2019, Mon, 04 Feb 2019, Fri, 08 Feb 2019, Fri, 08 Feb 2019, Fri, 01 Feb 2019, Tue, 29 Jan 2019, Fri, 08 Feb 2019, Tue, 29 Jan 2019, Tue, 29 Jan 2019, Fri, 08 Feb 2019, Mon, 07 Jan 2019, Fri, 01 Feb 2019, Tue, 29 Jan 2019, Fri, 01 Feb 2019]

Decision dates corroborate what Nicholas was saying earlier. That there were still some decisions between end of Jan and mid Feb that still need to be backfilled. Waiting on those.

anyakhvost commented 5 years ago

Wow, thanks Shane!!!

shanear commented 5 years ago

There are now only 2 appeals without decision issues, both of which are a duplicates that the board is dealing with. Closing this one.

lpciferri commented 5 years ago

Noting that when backfilling decision issues, we took the approach to append the Request issue disposition to the front of the Request issue.

So, decision issues for the RAMP appeal pilot period (Oct - ~Feb) will look something like this: image