template

Defines template namespace.  This should be defined in any template, and all methods should do something, otherwise FreeMED may act very unpredictable.

Summary
Defines template namespace.
Produce XHTML group of links.
Creates an XHTML “button” for a link
Creates a patient information box
Creates the iconbar used by the default template in the template::patient_box method.
Creates a annotate link for the EMR summary screen
Creates a delete link for the EMR summary screen
Creates a lock link for the EMR summary screen
Creates a locked link for the EMR summary screen
Creates a modify link for the EMR summary screen
Creates a print link for the EMR summary screen
Creates a view link for the EMR summary screen

Functions

link_bar

function link_bar ($links,  
$opts =  '')

Produce XHTML group of links.

Parameters

$linksAssociative array of links, where they are in the form of the key being the link text and the value being the URL.
$opts(optional) An associative array of options.  “align” sets the alignment of the DIV for the links.

Returns

XHTML code

link_button

function link_button ($text,  
$url,  
$options =  NULL)

Creates an XHTML “button” for a link

Parameters

$textText to be displayed on the button
$urlURL for the button to access
$options(optional) Associative array of options.  “type” sets the class of the button.

Returns

XHTML code

patient_box

function patient_box ($patient_object)

Creates a patient information box

Parameters

$patient_objectFreeMED.Patient object

Returns

XHTML code

See Also

freemed::patient_box

patient_box_iconbar

function patient_box_iconbar ($patient)

Creates the iconbar used by the default template in the template::patient_box method.

Parameters

$patientid of the current patient

Returns

XHTML code

See Also

template::patient_box

summary_annotate_link

function summary_annotate_link($class,
$url)

Creates a annotate link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful

Returns

XHTML widget

summary_delete_link

function summary_delete_link($class,
$url)

Creates a delete link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful

Returns

XHTML widget

summary_lock_link

function summary_lock_link($class,
$url)

Creates a lock link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful

Returns

XHTML widget

summary_locked_link

function summary_locked_link($class,
$url)

Creates a locked link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful

Returns

XHTML widget

summary_modify_link

function summary_modify_link($class,
$url)

Creates a modify link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful

Returns

XHTML widget

summary_print_link

function summary_print_link($class,  
$url,  
$popup = true)

Creates a print link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful
$popup(optional) Boolean, whether this should be a popup window.

Returns

XHTML widget

summary_view_link

function summary_view_link($class,  
$url,  
$newwindow =  false)

Creates a view link for the EMR summary screen

Parameters

$classClass of the EMR module in question
$urlLocation that should be loaded if this is successful

Returns

XHTML widget

function link_bar ($links,  
$opts =  '')
Produce XHTML group of links.
function link_button ($text,  
$url,  
$options =  NULL)
Creates an XHTML “button” for a link
function patient_box ($patient_object)
Creates a patient information box
function patient_box_iconbar ($patient)
Creates the iconbar used by the default template in the template::patient_box method.
function summary_annotate_link($class,
$url)
Creates a annotate link for the EMR summary screen
function summary_delete_link($class,
$url)
Creates a delete link for the EMR summary screen
function summary_lock_link($class,
$url)
Creates a lock link for the EMR summary screen
function summary_locked_link($class,
$url)
Creates a locked link for the EMR summary screen
function summary_modify_link($class,
$url)
Creates a modify link for the EMR summary screen
function summary_print_link($class,  
$url,  
$popup = true)
Creates a print link for the EMR summary screen
function summary_view_link($class,  
$url,  
$newwindow =  false)
Creates a view link for the EMR summary screen
Create a “patient box” with quick access to various patient functions.