PBClinic Programmers Guide
×
Menu
Index

Email Patient Statements

 
 
PBClinic Statement Processing  invokes two Crystal Reports
 
1) rptStatementPrint.rpt - Prints all patient statements that are NOT designated to be sent by Email
 
2) rptStatementEmail.rpt - Exports all statements designated for Email to a File Statements.PDF
This file contains individual patient statements which has embedded into each statement the email
address of the person (patient or responsible) to whom the email will be sent.  The format of the
embeded email address is for example - Email: Lyle@PBOffice.com :Email - exactly
 
After the creation of the file Statements.PDF, which contains all patient statements that will be emailed
 
The Statements.PDF is split into individual patient PDFs using the naming convention Statement-1.pdf,
Statement-2.pdf, Statement-3 etc. 
 
For each one of the Statement-nn.pdf files a correspondingly named
file with the naming convention of Statement-1.txt, Statement-2.txt will be created which contains the
email address extracted from the Statement-1.pdf etc.
 
Finally the correspondingly named files Statement-1.pdf and Statement-1.txt are merged into an
email message sent through SendGrid.com email web service.
 
iTextSharp
PBClinic uses the iTextSharp library to split PDF files into distinct PDF patient statements.
 
 What is iTextSharp? 
 
iTtextsharp is an advanced tool library which is used for creating complex pdf reports.
 iText is used by different techonologies -- Android , .NET, Java and GAE developer use it to enhance their applications with PDF functionality.
It creates documents and reports based on data from databases or xml files and Merge or split pages from existing PDF files.
 
Within PBClinic the following class libraries use the iTextSharp library
clsPDFEmail.vb
clsPDFSplit.vb
clsPDFTextFinder.vb
 
SendGrid
PBClinic uses the SendGrid API to email the Patient Statement PDF to individual Patients
SendGrid is a Package within PBClinic
 
What is SendGrid
SendGrid is a cloud-based SMTP provider that allows you to send email without having to maintain email servers. 
SendGrid manages all of the technical details,
From scaling the infrastructure to ISP outreach and reputation monitoring to
whitelist services and real time analytics..
With It You Can Send Email From Your Application.