2 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
8 require_once(dirname(__FILE__
) . "/../../../library/classes/ORDataObject.class.php");
10 define("EVENT_VEHICLE",1);
11 define("EVENT_WORK_RELATED",2);
12 define("EVENT_SLIP_FALL",3);
13 define("EVENT_OTHER",4);
17 * class FormHpTjePrimary
20 class FormPatientInstruction
extends ORDataObject
{
42 * Constructor sets all Form attributes to their default value
45 function FormPatientInstruction($id= "", $_prefix = "") {
46 if (is_numeric($id)) {
51 $this->date
= date("Y-m-d H:i:s");
54 $this->_table
= "form_patient_instruction";
56 $this->pid
= $GLOBALS['pid'];
59 //$this->date = $this->get_date();
64 //$this->temp_methods = parent::_load_enum("temp_locations",false);
67 function toString($html = false) {
69 ."ID: " . $this->id
. "\n";
72 return nl2br($string);
78 function set_id($id) {
79 if (!empty($id) && is_numeric($id)) {
86 function set_pid($pid) {
87 if (!empty($pid) && is_numeric($pid)) {
98 function set_date($dt) {
103 function get_user() {
106 function set_user($u) {
112 function get_instruction() {
113 return $this->instruction
;
115 function set_instruction($data) {
117 $this->instruction
= $data;
121 function set_activity($tf) {
122 if (!empty($tf) && is_numeric($tf)) {
123 $this->activity
= $tf;
126 function get_activity() {
127 return $this->activity
;