4 * This file contains the FormPainMap class, used to model the data contents of a clickmap based form.
7 * @link http://www.open-emr.org
8 * @copyright Copyright Medical Information Integration,LLC <info@mi-squared.com>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
12 /* include the class we are extending. */
13 require_once($GLOBALS['fileroot'] . "/interface/clickmap/AbstractClickmapModel.php");
18 * @brief This class extends the AbstractClickmapModel class, to create a class for modelling the data in a pain form.
20 class FormPainMap
extends AbstractClickmapModel
23 * The database table to place form data in/read form data from.
28 static $TABLE_NAME = "form_painmap";
30 /* Initializer. just calls parent's initializer. */
31 function __construct($id = "")
33 parent
::__construct(FormPainMap
::$TABLE_NAME, $id);
37 * @brief Return the Title of the form, Useful when calling addform().
39 public function getTitle()
41 return C_FormPainMap
::$FORM_TITLE;
45 * @brief Return the 'Code' of the form. Again, used when calling addform().
47 public function getCode()
49 return C_FormPainMap
::$FORM_CODE;