clqms-be/app/Models/Contact/MedicalSpecialtyModel.php
OpenCode Bot 9946978487 chore: refresh CLQMS backend baseline
Re-synced controllers, configs, libraries, seeds, and docs with the latest API expectations and response helpers.
2026-04-08 16:07:19 +07:00

23 lines
622 B
PHP
Executable File

<?php
namespace App\Models\Contact;
use App\Models\BaseModel;
class MedicalSpecialtyModel extends BaseModel {
protected $table = 'medicalspecialty';
protected $primaryKey = 'SpecialtyID';
protected $allowedFields = ['SpecialtyID', 'SpecialtyText', 'Parent', 'Title', 'CreateDate', 'EndDate'];
public function getOccupations($Parent, $SpecialtyText) {
if($Parent != '') {
$this->like('Parent', $Parent, 'both');
}
if($SpecialtyText != '') {
$this->like('SpecialtyText', $SpecialtyText, 'both');
}
$rows = $this->findAll();
return $rows;
}
}