Refactor portal template scheduling (#6613)
commite856d651d868aa895a8b336d269a88b5962dae70
authorJerry Padgett <sjpadgett@gmail.com>
Sun, 30 Jul 2023 23:49:31 +0000 (30 19:49 -0400)
committerGitHub <noreply@github.com>
Sun, 30 Jul 2023 23:49:31 +0000 (30 19:49 -0400)
treefc7b27175c10bd03aa3348b64d80f6a39f936bde
parent10ae94a5e214116b0e16a87772db0ea6305ae5f1
Refactor portal template scheduling (#6613)

* Refactor portal template scheduling
Move schedule from profile to template in profile
new function to fetch template events
add a notification day and when trigger

* add table columns to support portal notifications
service functions to support fetch template events fix

* This commit is work torwards our portal bug fix.
Plan is that on doc create save, the new rendered template is duplicated and saved separate in table
 so data version is same as template version. Any further edits will call this template but only save form data henceforth.
- create new service class from download document script as it is needed to render in php

* Many chamges for new save workflow.

* fix signature in audit for admin signing.
new flatted document fucntion for reporting

* add new style directives to allow style tags to pass purifier.
refactor style repace in render

* add allow delete for admin to clean up abandoned or deem invalid audits
allow flatten doc save from interface. have to do this for legacy, history and reports.

* add file upload to portal

* clean up and review fixes
20 files changed:
library/ajax/upload.php
library/documents.php
portal/import_template.php
portal/lib/doc_lib.php
portal/lib/download_template.php
portal/lib/portal_mail.inc.php
portal/patient/libs/Controller/OnsiteDocumentController.php
portal/patient/libs/Model/DAO/OnsiteDocumentDAO.php
portal/patient/libs/Model/DAO/OnsiteDocumentMap.php
portal/patient/libs/Reporter/OnsiteDocumentReporter.php
portal/patient/scripts/app/onsitedocuments.js
portal/patient/scripts/model.js
portal/patient/templates/OnsiteDocumentListView.tpl.php
portal/quickstart_page.php
portal/sign/assets/signer_api.js
portal/verify_session.php
sql/7_0_1-to-7_0_2_upgrade.sql
sql/database.sql
src/Services/DocumentTemplates/DocumentTemplateRender.php [new file with mode: 0644]
src/Services/DocumentTemplates/DocumentTemplateService.php