コード例 #1
0
ファイル: Note.class.php プロジェクト: juggernautsei/openemr
 /**
  * Constructor sets all Note attributes to their default value
  * @param int $id optional existing id of a specific note, if omitted a "blank" note is created 
  */
 function __construct($id = "")
 {
     //call the parent constructor so we have a _db to work with
     parent::__construct();
     //shore up the most basic ORDataObject bits
     $this->id = $id;
     $this->_table = "notes";
     $this->note = "";
     $this->date = date("Y-m-d H:i:s");
     if ($id != "") {
         $this->populate();
     }
 }
コード例 #2
0
 /**
  * Constructor sets all Insurance attributes to their default value
  */
 function __construct($id = "", $prefix = "")
 {
     parent::__construct();
     $this->id = $id;
     $this->_table = "x12_partners";
     $this->processing_format_array = $this->_load_enum("processing_format", false);
     $this->processing_format = $this->processing_format_array[0];
     //most recent x12 version mandated by HIPAA and CMS
     // $this->x12_version = "004010X098A1";
     $this->x12_version = "005010X222A1";
     $this->x12_isa05 = "ZZ";
     $this->x12_isa07 = "ZZ";
     $this->x12_isa14 = "0";
     if ($id != "") {
         $this->populate();
     }
 }
コード例 #3
0
 /**
  * Constructor sets all Document attributes to their default value
  * @param int $id optional existing id of a specific document, if omitted a "blank" document is created 
  */
 function __construct($id = "")
 {
     //call the parent constructor so we have a _db to work with
     parent::__construct();
     //shore up the most basic ORDataObject bits
     $this->id = $id;
     $this->_table = "documents";
     //load the enum type from the db using the parent helper function, this uses psuedo-class variables so it is really cheap
     $this->type_array = $this->_load_enum("type");
     $this->type = $this->type_array[0];
     $this->size = 0;
     $this->date = date("Y-m-d H:i:s");
     $this->url = "";
     $this->mimetype = "";
     $this->docdate = date("Y-m-d");
     $this->hash = "";
     $this->list_id = 0;
     $this->encounter_id = 0;
     $this->encounter_check = "";
     if ($id != "") {
         $this->populate();
     }
 }