Module notify.notifier
features associated with end user notifications for reconciliation and other edge case handling
Classes
class EventType (value, names=None, *, module=None, qualname=None, type=None, start=1)-
Convenient access to predefined notification event descriptions
Ancestors
- builtins.str
- enum.Enum
Class variables
var CASE_ADDEDvar CASE_CLONEDvar CASE_CLOSED_BATCH_CLOSEDvar CASE_CLOSED_BATCH_OPENvar CASE_DOCS_UPDATEDvar DUPLICATE_BATCH_CREATED
class NotificationProto (*args, **kwargs)-
data elements required for describing a single user notification
Ancestors
- typing.Protocol
- typing.Generic
Class variables
var concerned_roles : Sequence[SubscriptionType]var facility : strvar mock : bool
class Notifier (client_name: str, notifications: Sequence[NotificationProto], output_dir: str | None = None, subject: str = 'Claim Maker Notifications - 20240828', body_text: str = 'Please review the attached notifications from Hank AI Claim Maker.', body_html: str = '<html>\n <head></head>\n <body>\n <a href="https://hank.ai"><img width="198" height="62"\n src="https://hank.ai/wp-content/uploads/2022/08/hank-logo-black-htm-white-bg-660px.png" />\n </a><br>\n <h3>{}</h3>\n <p><a href="https://claimmaker.hank.ai/app/coder">Open Claim Maker</a> (requires VPN)</p>\n </body>\n </html>\n ', encoding: str = 'utf-8')-
send a table of edge case handling notifications to client emails
Class variables
var body_html : strvar body_text : strvar client_name : strvar encoding : strvar notifications : Sequence[NotificationProto]var output_dir : str | Nonevar subject : str
Methods
def create_attachment(self) ‑> email.mime.application.MIMEApplication-
build an attachment from the provided notifications using pandas
def create_message(self) ‑> email.mime.multipart.MIMEMultipart-
build the email as a MIME multipart message
def log_summary(self)def send(self)-
construct and send a raw email for the supplied notifications
class SubscriptionType (value, names=None, *, module=None, qualname=None, type=None, start=1)-
Convenient access to valid roles
Ancestors
- builtins.str
- enum.Enum
Class variables
var ACCT_MGRvar ADMINvar AUDITORvar CHG_ENTRYvar CODERvar CODER_ADMINvar DATA_ENTRYvar DEVvar RC_ADMINvar RECONCILER