示例#1
0
 public static function addNew($title, $description, $patient_id, $user_id, $type_id = 12)
 {
     $item = new PatientHistoryItem();
     $item->title = $title;
     $item->description = $description;
     $item->patient_id = $patient_id;
     $item->user_id = $user_id;
     $item->type_id = $type_id;
     $item->save();
     return $item;
 }
示例#2
0
 public function addHistoryItem($title, $description, $user_id = 0, $type_id = 12)
 {
     PatientHistoryItem::addNew($title, $description, $this->id, $user_id, $type_id);
 }