/** * 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 Note($id = "") { //call the parent constructor so we have a _db to work with parent::ORDataObject(); //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(); } }
/** * Constructor sets all Insurance attributes to their default value */ function X12Partner($id = "", $prefix = "") { parent::ORDataObject(); $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_isa05 = "ZZ"; $this->x12_isa07 = "ZZ"; $this->x12_isa14 = "0"; if ($id != "") { $this->populate(); } }
/** * 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 Document($id = "") { //call the parent constructor so we have a _db to work with parent::ORDataObject(); //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(); } }