Open jason-gcio opened 2 years ago
@scottymeyers @kylesoskin added refinement labels and updated AC. Please review and let me know what you think.
Looks good.
For now, these are notes to myself, but please feel free to weigh in.
SavedClaim::CoeClaim
is created when the front-end POSTs form data to /vo/coe/submit_coe_claim
.SavedClaim::CoeClaim
's base class is SavedClaim
, which contains a to_pdf
method. This method uses PdfFill::Filler#fill_form
and PdfFill::Forms::Va261880
to fill a template PDF and save it to a tmps/pdfs
directory..to_pdf
on our SavedClaim::CoeClaim
, somewhere in V0::CoeController::submit_coe_claim
.Questions
- How are we going to append attachments? Where are these attachments? Are there any existing methods for appending attachments?
Questions
- What is LGY and what is the result of sending this form to LGY?
ClaimsApi::VBMSUploader
is used to upload forms to VBMS, in SavedClaim::DependencyClaim
, and SavedClaim::VeteranReadinessEmploymentClaim
(ClaimsApi::VBMSUploader#upload
contains some code specific to SavedClaim::VeteranReadinessEmploymentClaim
, that should be generalized.
When we upload to VBMS we use VA file number and we might not have that (other services that use BGS, we can use their lookup)
file_number
is not present under veteranInformation
, file_number
is defaulted to the user's SSN. Some history on that here: https://github.com/department-of-veterans-affairs/vets-api/pull/6419 ("This PR also prioritizes VAFileNumber as the id to send to VBMS when submitting to eFolder. We were using SSN which would have worked the majority of the time but in those few instances that va file number is diff from SSN VBMS would have looked up a vet by file number with ssn and it would have failed."). See also https://github.com/department-of-veterans-affairs/vets-api/pull/7491.Questions
ssn
instead of file_number
? Need to speak with Matt Self about this.file_number
, and how does it relate to ssn
? For instance, is file_number
a stand-in for those who do not have an ssn? When a user has a file_number
, is it identical to their ssn
?SavedClaim::VeteranReadinessEmploymentClaim#send_to_vre
, which calls a send_to_central_mail!
method if an upload to VBMS fails. However, it's not immediately clear to me how, or whether, this method makes the PDF accessible to the user. ClaimsApiVBMSUploader#fetch_upload_token
suggests that filename
will always be unique to any other file, as it contains a uuid. Additionally, the filename will contain the form_id
of the form, if the form_path
from PdfFill::Filler#fill_form
.Hey Eugene! @data-doge thank you for adding questions here. Let me see if I can offer any help. See below:
ssn
instead of file_number
? Previously our PO, Matt Self, stated that the VA wants to step away from relying on SSN, so he can probably clarify this business requirement. I'll ask him. Update on this question @data-doge: Is it okay to rely on ssn instead of file_number?
Re-adding the needs-grooming
label until we get clarification on the ssn/file number requirement.
Thanks @saderagsdale! I'm ready to have that conversation with John whenever he is.
@data-doge Cool beans. Waiting for an intro from Matt. He's on PTO.
Reminded Matt to introduce us today. Should be completed shortly.
@data-doge Answer from John: Best case is to use ICN instead of File_Number or SSN as an identifier.
@John Rahaghi
@data-doge to confirm if overflow attachment work is already done.
@saderagsdale Hello! Confirming whether or not this work was implemented?
@Midge-dev Howdy. It was not completed. (Also worth noting that most of the code was written by another team before us). Let me know if you have other questions.
Value Statement
As a Veteran I want to create and store a copy of the Certificate of Eligibility PDF So that the system of record has this document on file for later use.
Background
At some point we need to fill out the PDF template with the form data from va.gov. This ticket is for that.
Considerations:
Tasks
Create a pdf for this form (source)(another ticket)Acceptance Criteria