Difference between revisions of "Prescribing Module"
From OpenEMR Project Wiki
Bradymiller (talk | contribs) |
Bradymiller (talk | contribs) |
||
Line 1: | Line 1: | ||
=Proposal to clean up and add additional functionality= | |||
# | |||
=Files= | =Files= | ||
==Main Functions== | ==Main Functions== | ||
Line 63: | Line 66: | ||
==Miscellaneous== | ==Miscellaneous== | ||
===interface/patient_file/summary/rx_frameset.php=== | |||
*Sets up the Rx window | |||
**'''Left frame with interface/patient_file/summary/rx_left.php''' | |||
**'''Right frame with templates/prescription/general_list.html via call to list_action function in controllers/C_Prescription.class.php''' | |||
===interface/patient_file/summary/rx_left.php=== | ===interface/patient_file/summary/rx_left.php=== | ||
*Simple window with two links taking up left frame of Rx window | *Simple window with two links taking up left frame of Rx window |
Revision as of 20:44, 4 December 2009
Proposal to clean up and add additional functionality
Files
Main Functions
controllers/C_Prescription.class.php
- Contains all the vital functions
- is called via /openemr/controller.php
- Contains the class C_Prescription extends Controller
- Included functions:
- C_Prescription (constructor)
- default_action
- This calls the edit template screen at templates/prescription/general_edit.html
- edit_action
- This redirects to default_action
- list_action
- This calls the edit template screen at templates/prescription/general_list.html
- block_action
- lookup_action
- This calls library/classes/RXList.class.php to look up drug online
- edit_action_process
- send_action
- multiprintfax_header
- multiprint_header
- multiprintcss_header
- multiprintcss_preheader
- multiprintfax_footer
- multiprint_footer
- multiprintcss_footer
- multiprintcss_postfooter
- get_prescription_body_text
- multiprintfax_body
- multiprint_body
- multiprintfax_action
- multiprint_action
- multiprintcss_action
- send_action_process
- _print_prescription
- _print_prescription_old
- _email_prescription
- do_lookup
- _fax_prescription
- Included functions:
Main Class
library/classes/Prescription.class.php
- This is the container for each prescription
- Contains the class Prescription extends ORDataObject
- Important functions:
- Prescription (constructor)
- get_prescription_display
- A whole bunch of others, check out the file
- Important functions:
Smarty Templates
templates/prescription/general_list.html
- Main window that list prescription and allows printing of script(s) (right frame of Rx window)
- Clicking on a prescription calls edit_action function in controllers/C_Prescription.class.php
templates/prescription/general_edit.html
- This is where user types in data for a new prescription or edits an old prescription
- Clicking 'drug lookup' calls lookup_action function in controllers/C_Prescription.class.php
- Clicking 'save' calls send_action function in controllers/C_Prescription.class.php
templates/prescription/general_send.html
- This is what user see after clicking save in templates/prescription/general_edit.html
- Options here to print, email, fax the single script
Miscellaneous
interface/patient_file/summary/rx_frameset.php
- Sets up the Rx window
- Left frame with interface/patient_file/summary/rx_left.php
- Right frame with templates/prescription/general_list.html via call to list_action function in controllers/C_Prescription.class.php
interface/patient_file/summary/rx_left.php
- Simple window with two links taking up left frame of Rx window
- List Prescriptions
- Calls list_action function in controllers/C_Prescription.class.php
- Add Prescriptions
- Calls edit_action function in controllers/C_Prescription.class.php
- List Prescriptions
library/classes/RXList.class.php
- This is for online lookup of prescriptions