Parsing step¶
This step takes :
* BVACFile, HospitalInvoiceFile and Document objects as inputs
* and produces ParsedBVAC, ParsedHospitalInvoice and ParsedDocumentContent objects.
Document parsing¶
- Input model: Document
- Ouput model: ParsedDocumentContent
eBVAC parsing¶
- Input model: BVACFile
- Ouput model: ParsedBVAC
Decision tree¶
graph LR
BVACFile{{BVACFile}}
ParsedBVAC{{ParsedBVAC}}
Failure(Technical Failure)
Barcode(Barcode not recognized)
PatientName(Patient name doesn't match)
Duplicate(Duplicate internal reference)
Incoherent(Incoherent data)
Validated[Validated]
NextStep[Proceed with next step]
style Failure color:blue
style Barcode color:blue
style PatientName color:blue
style Duplicate color:blue
style Incoherent color:blue
BarcodeMistyped[Barcode was mistyped: update scanner insurance profile from tool]
BarcodeError[We just cannot match the barcode, and reject the ParsedBVAC fa:fa-circle-xmark]
PatientAlgo[Algorithm was wrong and names designate the same person: update beneficiary profile from tool]
PatientError[Patient name indeed doesn't match anybody in the policy: we reject the ParsedBVAC fa:fa-circle-xmark]
DuplicateTwice[Medecine was bought twice: unblock ParsedBVAC from tool]
DuplicateError[It's just a glitch: we reject the ParsedBVAC fa:fa-circle-xmark]
IncoherentFix[Fix amounts/data from tool]
style Validated color:green
style BarcodeMistyped color:green
style PatientAlgo color:green
style DuplicateTwice color:green
style IncoherentFix color:green
style BarcodeError color:red
style PatientError color:red
style DuplicateError color:red
BVACFile -- parsing -->ParsedBVAC
ParsedBVAC --> Failure
ParsedBVAC --> Barcode
ParsedBVAC --> PatientName
ParsedBVAC --> Duplicate
ParsedBVAC --> Incoherent
ParsedBVAC --> Validated
Barcode --> BarcodeMistyped
Barcode --> BarcodeError
PatientName --> PatientAlgo
PatientName --> PatientError
Duplicate --> DuplicateTwice
Duplicate --> DuplicateError
Incoherent --> IncoherentFix
Validated --> NextStep
BarcodeMistyped --> NextStep
PatientAlgo --> NextStep
DuplicateTwice --> NextStep
IncoherentFix --> NextStep
Hold "Alt" / "Option" to enable pan & zoom
Hospital Invoice parsing¶
- Input model: HospitalInvoiceFile
- Ouput model: ParsedHospitalInvoice
⚠️ For one hospital invoice file, we have several parsed hospital invoices. Indeed, the XML files contains several invoices for a same hospital.