(int)$model->id, "name" => $model->name, "type" => $model->type, "type_text" => Prescription::$drugTypeMap[$model->type], "unit" => $model->unit, "area" => $model->area, "remark" => $model->remark, "letter" => $model->letter, "initial" => $model->initial, // "import_id" => $model->import_id, "sort" => $model->sort, // "commentable_id" => $model->commentable_id, // "commentable_type" => $model->commentable_type, "status" => $model->status, 'created_at' => $model->created_at, 'updated_at' => $model->updated_at ]; } }