modules/ annotations. emr. module.php

Summary
Create an annotation.
Get annotations, if present.
Produce tooltip-friendly annotations from the output of getAnnotations.
Prepare an annotation for being embedded in a Javascript string.
Get patient from other information given.

Functions

createAnnotation

function createAnnotation ($module,  
$id,  
$text,  
$patient =  NULL)

Create an annotation.

Parameters

$moduleModule to create annotation in
$idID number
$textText to annotate
$patient(optional) Patient number

getAnnotations

function getAnnotations ($module,
$id)

Get annotations, if present.

Parameters

$moduleModule to examine for annotations
$idID number

Returns

Array of annotations, otherwise false.

outputAnnotations

function outputAnnotations ($annotations)

Produce tooltip-friendly annotations from the output of getAnnotations.

Parameters

$annotationsArray of annotations

Returns

XHTML-formatted annotation string

prepareAnnotation

function prepareAnnotation ($a)

Prepare an annotation for being embedded in a Javascript string.

Parameters

$aAnnotation text.

Returns

Javascript string formatted text.

lookupPatient

function lookupPatient ($module,
$id)

Get patient from other information given.

Parameters

$moduleModule name
$idRecord id

Returns

Patient id number

function createAnnotation ($module,  
$id,  
$text,  
$patient =  NULL)
Create an annotation.
function getAnnotations ($module,
$id)
Get annotations, if present.
function outputAnnotations ($annotations)
Produce tooltip-friendly annotations from the output of getAnnotations.
function prepareAnnotation ($a)
Prepare an annotation for being embedded in a Javascript string.
function lookupPatient ($module,
$id)
Get patient from other information given.