FreeMED Opensource EMR/PM Software |
FreeMED. EMRModuleElectronic Medical Record module superclass. It is descended from BaseModule. Summary
$this->widget_hashSpecifies the format of the widget method. This is formatted by having SQL field names surrounded by ‘##’s. Example$this->widget_hash = ‘##phylname##, ##phyfname##’; $this->rpc_field_mapSpecifies the format of the XML-RPC structures returned by the FreeMED.DynamicModule.picklist method. These are passed as key => value, where key is the target name of the structure item and value is the name of the SQL field. “id” is passed as “id” by default, as <$this->patient_field> is passed as “patient”. If this is not defined, FreeMED.DynamicModule.picklist will fail for the target module. Example$this->rpc_field_map = array ( ‘last_name’ => ‘ptlname’ ); locked
Determines if record id is locked or not. Parameters
ReturnsBoolean, whether the record is locked or not. Exampleif ($this->locked($id)) return false; additional_move
Stub function. Define additional EMR movement functionality per module. Note that this function does not perform the actual move, but instead moves support files, et cetera. Parameters
form_table
Builds the table used by the add/mod form methods, and returns it as an associative array which is passed to <html_form::form_table>. By default this returns NULL and needs to be overridden by child classes. It is only used if the default <form> method is used. ReturnsAssociative array describing form. See Also<form> additional_summary_icons
Callback to allow additional summary icons to be added. Each icon should be prefixed with a linefeed (\n) character to be equally spaced in the output. By default this is just a stub. Parameters
ReturnsHTML code for additional icons widget
Generic widget code to allow a picklist-based widget for simple modules. Should be overridden for more complex tasks. This function uses $this->widget_hash, which contains field names surrounded by ‘##’s. Parameters
ReturnsXHTML-compliant picklist widget. _RenderTeX
Internal TeX renderer for the record. By default this uses the <print_format> class variable to determine the proper format. If another format is to be used, override this class. Parameters
Example$this->_RenderTeX ( &$TeX, $id ); See Also_RenderField
Render out ##a:b@c## or ##a## type fields. “a” stands for the record, “b” stands for the target field, and “c” stands for the target table. Parameters
ReturnsRendered field Example$return = $this->_RenderField ( ‘##eocpatient:ptlname@patient##’ ); |
Generic widget code to allow a picklist-based widget for simple modules.
function widget ( $varname, $patient, $conditions = false, $keyfield = 'id' )
Whether or not to disable the patient box display at the top of the screen.
var $disable_patient_box
Field name that contains the date pertaining to the EMR record fragment in question.
var $date_field
Field name that describes the patient.
var $patient_field
Hash describing the format which is used to display the current record by default.
var $display_format
An SQL logical phrase which is used to pare down the results from a summary view query.
var $summary_conditional
Allows another table (or more) to be “linked” via a WHERE clause.
var $summary_query_link
The order in which the EMR summary items are displayed.
var $summary_order_by
Determines if record id is locked or not.
function locked ( $id, $quiet = false )
Stub function.
function additional_move ( $id, $from, $to )
Should be overridden by any module which needs different access checks.
function acl_access ( $type, $patient )
Builds the table used by the add/mod form methods, and returns it as an associative array which is passed to html_form::form_table.
function form_table ()
Callback to allow additional summary icons to be added.
function additional_summary_icons ( $patient, $id )
Produces the text for the EMR summary bar menu.
function summary_bar ( $patient )
function picklist ( $criteria )
Return most recent record, possibly qualified by a particular date.
function _recent_record ( $patient, $recent_date = NULL )
Render internal record for printing directly to a PDF file.
function _RenderToPDF ( $record )
Internal TeX renderer for the record.
function _RenderTeX ( $TeX, $id )
Render out ##a:b@c## or ##a## type fields.
function _RenderField ( $arg, $r = NULL )
Callback to provide information to the TeX renderer about formatting.
function _TeX_Information ( )