Skip to content

AssurCard import step

eBVAC (BVACFile) import

Pharmacy invoices are transmitted electronically to us, and made available by AssurPharma through the AssurCard API. The import_bvac_files function will fetch all invoices from AssurCard and store them in the database as BVACFile objects (with the XML content of the invoice stored on S3), without performing any validation or parsing.

Hospitalization invoices import

Hospitalization invoices are transmitted electronically to us by hospitals through the AssurCard API. The import_hospitalization_invoices function will fetch all invoices from AssurCard and store them in the database as HospitalizationInvoiceFile objects (with the XML content of the invoice stored on S3), without performing any validation or parsing.

💡 Tips

Working locally with AssurCard data

File data are anonymized by default kay template, so XML files are replaced by a dummy file. To work with real data, you can use the document_parsing profile to get real data. Please use this template only if you need to work with real data.🙏

flask kay refresh --profile document_parsing