As of Openeyes release 1.12.1, this module has been merged into the core openeyes repository.
This repository is kept for historic purposes only
This module is intended to generate applications for funding for therapies for patients. Once a therapy application event is created, it can be submitted. The submission process generates the PDF application form(s) and sends this in an email to the configured address(es).
The first release version of this module is 1.4.
See config/common.php for details of configuration variables. Setting up of therapies, email recipients etc can be managed through OpenEyes admin.
The createtherapyapplicationfilecollections command will import files from a nested directory structure.
./yiic help createtherapyapplicationfilecollections
for details
- Requires the following modules:
- OphTrIntravitrealinjection
- An email server supported by SwiftMailer
- Uses the following modules if they are present:
- OphCiExamination
- OphTrConsent
- For an application to be submitted, an Injection Management element needs to have been defined for the eye(s) to be applied for in the current episode. Similarly, visual acuity must have been recorded for both eyes. If OphTrConsent is installed an appropriate consent form for either Intravitreal Injection or PDT is required.
When an application is processed, an email is generated for each eye. the templates for the content of this email exist in
views/email/ | \---- email_compliant.php - email text for NICE Compliant therapy applications \---- email_noncomplaint.php - email text for non-NICE Compliant therapy applications \---- pdf_compliant.php - pdf template for compliant applications \---- pdf_compliant_[template_code].php - pdf template for compliant applications \---- pdf_noncompliant.php - pdf template for non compliant applications \---- pdf_noncompliant_[template_code].php - pdf template for non compliant applications
If a specific drug needs a different attachment, then it should be assigned a template code in the admin for treatments. The appropiately named template can then be included in the email directory.
The admin functionality is not wholly complete. In particular:
- Decision Tree management is not functionally complete:
- Rule Delete
- Decision Tree Delete (soft or otherwise)
- No way of viewing a whole tree in one go.
- implement template overrides for email text.
- setup gitignore appropriately to ignore custom templates that are put here.
- The dependency on OphTrIntravitrealinjection is actually inappropriate given that therapies don't have to be injections.
- The consent form dependency should be a configuration option on the application.